 Welcome to the afternoon session We're listening today to Gustavo Laskowski who's going to talk about cluster NFS. Thank you And I'm going to talk about NFS cluster network file system cluster A little short introduction by myself. I am Undergraduating on electronics, master of science and doctor of science in Electro engineer in this university so it's good to be back home and I'm a Linux user and developer since 2007 I work with with hardware and software projects So this one I use a lot of hardware, but US device drivers Graphical interface using Linux Another project that's very complicated, but I use a lot of digital signal processing with Octave But today and I I'm going to talk about another project That's my lab at Federal Institute of University It's about one kilometer from here And it's a Brazilian government of institution. We have a limited resource and I Didn't have any network server until this project and We former about 144 telecommunication Technicians in 90 years 2017 I received these 90 orders piece of hardware like a friend just call me and said I I have the servers Do you want to take a look? I said it's okay. Let's try to recover this project. This is web servers and first First of all, I decide to put some names so I choose Females names in alphabetical order and with a so we have her Amanda Bianca Carolina Daniela Eliza Fiorella Gabriela Elena is a Bella I think Linux mind to have something like this Male names and Have some harder procedure. So we must check some jizz harder hard drive jizz Easy memories power supply We must clean everything up. And That's the server it's work fine Amanda Carolina. It's okay. Bianca has the same hardware So it's a spare part of Amanda in the Carolina Daniela Fiorella Isabella resting this And Eliza Gabriela Elena is amazing and that's it's Elena to power supplies just a race to the Pentium 3 processors very very old, but it's work fine. And I Don't have Jkl server and I have M. It's my wife Mara It's a total different throw s to work fine either anyway and That's what I what I have So I have Amanda Caroline and Carolina same hardware. They'll power edge to processors the on its memory Eliza and Gabriela Elena is a pension 3 And gigabytes of memory and We try to put it together To work as a cluster. That's the main idea. So Amanda. It's main server Carolina, it's a failover of Amanda, but run it run together same not work Elisa Gabriela and Anna provide NFS NFS disks to this cluster Each server has a Network interfacing this network 0.3 10 10 12 That's I don't have a IPv6 only IPv4. That's a another project that I'm work for But everything is running this way today Amanda it's main servers Amanda works a lot in 24 hours every day and she provides User access by Apache web server Amanda. It's here in this heck and She mounts any effect and any FS disks from another old older servers I don't have any time but it's very simple how to run Apache on Debian. I have this example Website just to run this it's about fourth light. They're very Simple and the older servers only works when it's really necessary. That's because economical energy environment noise the reasons if I turn Other servers to noise the laboratory and Because of that, yeah, if someone tried to access Amanda at the Apache web server This mesh this message is going to show up because Just to show the user that that server does not work at the moment. I just put the IM file with this name Indicated that the server is offline at the present moment how to set up an FNF NFS services varies So just to To change this file with the SF tab This is the network address of the servers Each server has a Cluster user just to separate to manage the reasons and this is the local Local place at Apache web server In this setup, it's very easy to to mount a disk network disk Just mount and it is per meter and to amount the same idea Here I have to do something because the servers Stay offline. So when I turn a server on for example, Carolina She must send a Comments to Amanda and said hey mount my disk Something like that. I must I go show later Amanda has another servers Running And for example mini the LNA. It's a multi-media sorry It's a multi-media streaming server. I run there the Gustavo Flix Well, it's very it's very easy to to run. I think I have here you must change this file Not everything just that the name Media directory and runs. It's very very easy. I have a ftp and the NEV Server, I have some IP cameras that send photos to the servers and I have the RStudio server For advanced the statistical analysis. I think you will have two sections this conference about our It's very interesting. I have some Here how to set up. It's very very easy either just This is common Carolina, it's a fail over another server of Amanda The green one it works about 15 hours a week It has a din digas the HCP server She use upper address and Amanda lower address So I don't have any conflicted IP conflict address This idea but but in general Carolina sends some things to Amanda if Amanda does not respond She turns the server on. That's the main idea Apache multi-media ftp servers runs at a different IP Filter project it's true to make a load balance between the two servers But I must keep it Carolina on that's a little complicated So I don't know if it's gonna work and Another servers Elisa Gabriella Villelena Provides the any FS disks the common regular users can only access By Amanda or Carolina That's Elena yellow Gabriella is another rock And how to set up this clients is very very simple So we must install port map NFS kernel servers NFS comma First step and after that we must change this file So how I'm clustered met the user the address of any FS servers and I must do it in each server And after that I must I must choose a good this common because every every time that a server turns on It mounts the this directory to the main server And of course I must change some permissions and this scenario Only cluster user and routine user can change Files, but other users can read and execute And that's Gabriella another hacker. That's amazing about servers. We have just is a race So we have a great Fiver just a ray here I don't set before Amanda is here. She has six hard drivers running right one Debian it's in the first one Slash home in the second one and a posh web servers for the one So I have handguns. It's very very nice It's all this because has a hard driver very Let's do it's work fine I must do this common to send the message the message to my server Send a I wake up Put my disk on something like that So I use SS a pass This common that I just send it's not so safe because I must put the password of the server here, so You can use a Symmetrical keys, but I must use this because another device. I won't show a little later Anyway, just SSH password and the common to my server to mount the disk and after that We can put it on Chrome tab so I put this comment After reboot my servers wait 60 One minute 60 seconds It that's important because I must ensure that my server receive IP address Before mount my disk can put some fix address, but I prefer this way because I can see when my server is online I Have this this file here for example Every time a machine receive your IPM network it shows to me here, so I can control this that's because I Use this technique, so it's received IPs and mounted INF disk server Very simple to make a Cluster this way another things that I have Amanda has a Automatic test desks for dropbox and to drive for example here every 20 minutes She is a cute this that is a script. In fact I I Think I have this That's the sprits and date of time Being to another hacks devices Some some stuff here This is very nice because if you change this I Kill my network With this comment, so it's very nice But I just keep running and to drive and another comments here The output of this script is send back to dropbox In this file here log that so we have a key Time in the hard drivers I can Run every means common. So I must change this This go to dropbox and one minute later. It's gonna change my output file. So that I Gonna show later. So that's the output that is generated It is sent to do to drive Either and that this goes to my website at this link here It's very just with that comment here. I have every 20 minutes It sends the stats of the servers here. It's very very easy to set up Either I think it dropbox response It's a response here. I have some nice here. That's because I use this common sorry That's because I use this common I can read for example the temperature for a Cisco network device router switches So I send this the password and the discount and I can measure the temperature This head and it's in all my website either It's a little advanced Comments, but I have here for example the temperature of the seven last days of my switch router and the rest barely device There's some scripts here to generate this graph Here the dropbox response here lock that Reload It's going to send the death It's going to send the cameras either. I think I have something here That's my lab and I can do some stuff for example here. I have my house House, I can see everything using the same technique with Debian dropbox some scripts That's all So thank you so much Federal Institute Brazil The first of the community Debian team you always doing a great job Thank you very much We have one minute for quick questions Control here do those clusters also show scripting as my SSH What for communication those do cluster so zoo shell script SSH box Beleza Just to in English to control this Work I only use dropbox shell script and SSH Very very That's okay. Thank you so much. Thank you