# Using the cluster ::::::{tab-set} :sync-group: lang :class: lang-tabs :::::{tab-item} En :sync: en #### How can we use the cluster? Work on HPCFS consists of the following main areas: 1. We access the cluster daily and from various locations with the [NX client](../wiki/access.md). 2. We can use the KDE or Gnome desktop environment 3. Most often we use the Konsole, in which we type [shell commands](../projects/campus-school-2012/linux.md) 4. Additional programs are selected with the [modules](module.md) environment 5. Programs are run on the nodes with the SLURM environment 6. Computations are monitored with grafana.hpc.fs.uni-lj.si 7. Most of the time, however, is spent obtaining new results, which usually means - writing shell and SLURM scripts with which computations can easily be repeated - developing your own programs - processing and evaluating results - writing reports and papers and drawing sketches For a quick overview of usage we recommend the short instructions or a look at the following more detailed instructions: - [Logging in to the cluster](../wiki/access.md) - [Changing your password](../wiki/password.md) - [Setting up the environment](../wiki/access.md) #### Where can I store my data? Three different types of file storage are available on the cluster:: **directory** **data connectivity** **file system description and intended use** User-accessible file storage `/home/$USER = $HOME` `/home/.zfs/ = $SNAP` shared across all nodes - High-quality RAIDZ2 storage with a quota of 500 GByte. The network disks are shared via NFS to all nodes (1Gbit Ethernet) and to the prelog control node (10Gbit Ethernet). The file storage consists of four groups of 12 disks each. Each group has four redundant disks, which allow data to be restored in the event of failure of two disks. - All data in these directories is continuously captured and can be restored for a few days and a few weeks back. Data is kept using snapshots on the ZFS file system, so it is also possible to retrieve data saved at specific hours. Users can access the snapshots in the $SNAP directory, i.e. backup. - The home directory $HOME is intended for storing important data, both input data and results. It is not intended for storing derived, intermediate and temporary files. Users should keep on $HOME vitally important data that they want to keep over a longer period and whose protection is ensured by the ZFS system with its redundancy and snapshots, since these also protect against careless users. `/work/$USER = $WORK` shared across all nodes - This storage is used for data requiring large amounts of input/output by your application, which writes results simultaneously on all nodes during the run. It is also suitable for applications that save their state during the run in case of an error during computation (*checkpointing*). The file system is implemented with a dedicated LUSTRE file system over a balanced 2x1Gbit Ethernet network. $WORK has a capacity of 8TB. The upgrade of the LUSTRE servers also doubled the speed, which now practically reaches the theoretical network performance. The aggregate write speed is thus 1.17GB/s (limited by the 10GbE network). The write speed from a single node is 117MB/s. - The RAIDZ1 (RAID5) configuration ensures data protection in the event of disk failure. There are no backup copies for $WORK as there are for $HOME. Users must take care of protecting this data themselves and, of course, of cleaning up unnecessary files. - The quota on this storage is set to 1 TB. We move to the directory with the command cd $WORK or select our subdirectory in /work/$USER `/sratch/$USER = $SCRATCH` shared across all nodes - The LUSTRE network disk communicating over the Infiniband network consists of one OSS assembly of 64 iSCSI/iSER node disks. The communication speed is much higher compared to $HOME. The write speed of a single node to $SCRATCH has been measured at 567 MB/s. In general, this disk array is intended for all disk-intensive jobs. The connection to the prelog control node is limited by the 1Gbit Ethernet interface on the Lustre MDS node. - In principle, the /scratch storage is equivalent to 8xRAIDZ2 (8xRAID6), meaning that the disk system does not lose data if one or two disks fail in each of the eight groups. The reliability of the storage is nevertheless lower than on $HOME, since the disks in the nodes depend on the reliability of the nodes. 16 of the 64 disks are thus redundancy. - There is no quota on this storage until its capacity is full. Nevertheless, users must themselves make sure to copy only important files from/to this disk system and regularly delete the rest. We move to the directory with the command cd $SCRATCH or select our subdirectory in /scratch/$USER - A user who wants to use this disk space should first create their directory with the command mkdir $SCRATCH `/shadow/work/$USER` `/shadow/tmp` on the prelog control node - A shadow copy of the $WORK storage, which was wiped in May 2014. The data in these directories is available to users so they can copy old files to $WORK if they still need them. The $SHADOW files will be available at least until the end of 2014. We recommend copying larger amounts with rsync and a bandwidth limit, since the $SHADOW iSCSI disks are at ARNES. Example: cd $SHADOW ls rsync -arv --bwlimit=10000 moj\_stari\_projekt $WORK `/tmp` local on each node - This data area is intended for temporary files during job execution. - There is currently no quota on this storage. - Cluster administrators are allowed to delete files in this directory if space starts to run out. ## User accounts Approval is required for a user account to be granted. Details are on the page [http://hpc.fs.uni-lj.si/access](../wiki/access.md) User accounts are managed in NIS (Network Information Service). Regular users can change their password with the command yppasswd. Support or questions are currently possible at support @ hpc.fs.uni-lj.si or via "New tickets" at Registration on the website [http://hpc.fs.uni-lj.si/](../index.md) is only needed if you also want to publish some of your knowledge and thereby help others. This is especially welcome for special programs that will be installed, or that you will install, on the cluster. ## Installed software 1. **Operating system** The cluster runs [CentOS](http://centos.org/) 6.6, a compatible rebuild of Redhat-Enterprise Linux. 2. [**Job management system**](slurm.md) Jobs can be submitted with the SLURM workload manager (it replaced the former Load Sharing Facility (LSF)). 3. [**Programming environment**](devel/index.md) System settings (*environment*) can be configured with the Modules system. 4. [**Software packages**](module.md) For available packages such as compilers, parallelisation environments, numerical libraries and scientific applications, you can use the Modules system or the list on the website. ## Transferring files ![](../files/figs/fish.png)Users can transfer their files using the secure SCP or SFTP protocols and the programs of the same name. For copying data to the $HOME home directories, direct use of the file server forge.fs.uni-lj.si is recommended; for copying files to the $WORK and $SCRATCH working directories, use prelog.fs.uni-lj.si. For Windows clients, various graphical programs can be used. Programs such as [FileZilla](http://filezilla-project.org/) or [WinSCP](http://winscp.net/eng/download.php#download2) are recommended and are freely available. WinSCP settings: - User name and password - Host name: forge.fs.uni-lj.si - Protocol: sftp In Linux there are several graphical file managers (konqueror, dolphin, mc, ...) and all of them support file transfer with the SCP, SFTP or FISH protocol. In konqueror, simply type the address into the location bar. ## Contact support @ hpc.fs.uni-lj.si ::::: :::::{tab-item} Slo :sync: sl **Uporaba sestava** #### Kako lahko uporabljamo sestav? Delo na HPCFS je sestavljeno iz nasledjih poglavitnih področij: 1. Z [NX clientom](../wiki/access.md) dostopamo do sestava vsakodnevno in z različnih mest. 2. Uporabljamo lahko KDE ali Gnome okensko okolje 3. Najpogosteje uporabljamo Konzolo v katero tipkamo [školjčne ukaze](../projects/campus-school-2012/linux.md) 4. Dodatne programe izbiramo z okoljem [modules](module.md) 5. Programe poganjamo na vozliščih z okoljem SLURM 6. Računanje nadzorujemo z grafana.hpc.fs.uni-lj.si 7. Največ časa pa se prebije pri pridobivanju novih rezultatov, kar običajno pomeni - pisanje školjčnih in SLURM skript s katerimi lahko enostavno ponovimo izračune - razvoj lastnih programov - obdelava in ocenjevanje rezultatov - pisanje poročil, člankov in risanje skic   Za hiter pregled uporabe priporočamo kratka navodila ali vpogled v naslednja podrobneja navodila: - [Prijava v sestav](../wiki/access.md) - [Zamenjava gesla](../wiki/password.md) - [Nastavitev okolja](../wiki/access.md) #### Kje lahko hranim svoje podatke? Na sestavu so na voljo trije različni tipi datotečnih pomilnikov:: **imenik** **povezljivost podatkov** **opis datotečnega sistema in namen uporabe** Uporabniško dosegljivi datotečni pomnilniki `/home/$USER = $HOME` `/home/.zfs/ = $SNAP` deljeno na vsa vozlišča - Visoko kvalitetna RAIDZ2 hramba z omejitvijo količine na 500 GByte. Mrežni diski so deljeni s protokolom NFS na vsa vozlišča (1Gbit Ethernet) in na nadzorno vozlišče prelog (10Gbit Ethernet).  Datotečni pomnilnik je sestavljen iz štirih skupin s po 12 diski. V vsaki skupini so štirje redundančni diski, ki omogočajo restarvriranje podatkov ob okvari dveh diskov. - Vsi podatki v teh imenikih se  stalno zajemajo in omogočajo restavriranje za nekaj dni in nekaj tednov nazaj. Podatki se hranijo s principom posnetkov (snapshot) na ZFS podatkovnem sistemu. Tako je mogoče dobiti shranjene podatke tudi ob določenih urah. Uporabniki lahko posnetke dosegajo v imeniku $SNAP oziroma backup. - Domači imenik $HOME je namenjen hrambi pomembnih podatkov. Tako vhodnih podatkov, kot tudi rezultatom. Ni pa namenjen hrambi izpeljanih, vmesnih in začasnih datotek. Uporabniki naj na $HOME hranijo vitalno pomembne podatke, katere želijo imeti shranjene preko daljšega časovnega obdobja in za katere varovanje skrbi sistem ZFS s svojo redundanco in posnetki, saj se varujejo tudi pred nepazljivimi uporabniki. `/work/$USER = $WORK` deljeno na vsa vozlišča - Ta hranilnik se uporablja za podatke, ki zahtevejo velike količine vhoda/izhoda vaše aplikacije, ki med delom piše rezultate hkrati na vseh vozliščih. Primeren je tudi za aplikacije, ki shranjujejo svoje stanje med delom za primer napake med računanjem (*checkpointing*). Datotečni sistem je izveden z namenskim LUSTRE podatkovnim sistemom preko balansiranega 2x1Gbit Ethernet omrežja. $WORK je kapacitete 8TB. Z nadgradnjo LUSTRE strežnikov se je podvojila tudi hitrost, ki sedaj praktično dosega teoretične zmogljivosti omrežja. Agregatna hitrost pisanja je tako 1,17GB/s (omejena z 10GbE omrežjem). Hitrost pisanja z enega vozlišča pa 117MB/s. - RAIDZ1 (RAID5) konfiguracija zagotavlja varovanje podatkov pri okvari diskov. Za $WORK ne obstajajo rezervne kopije kot je to za $HOME. Uporabniki morajo sami skrbeti za varovanje teh podatkov in seveda za čiščenje odvečnih datotek. - Omejitve na tem pomnilniku so postavljene na 1 TB. V imenik se premaknemo z ukazom cd $WORK ali izberemo svoj podimenik v /work/$USER `/sratch/$USER = $SCRATCH`   deljeno na vsa vozlišča - Mrežni disk LUSTRE s komunikacijo po Infiniband omrežju je sestavljen iz enega OSS sestava iz 64 iSCSI/iSER diskov vozlišč. Hitrost komunikacije je v primerjavi z $HOME veliko večja. Hitrost pisanja enega vozlišča na $SCRATCH je izmerjena na 567 MB/s.  V splošnem pa je to diskovno polje namenjeno vsem diskovno intenzivnim poslom. Povezava na nadzorno vozlišče prelog je omejena z 1Gbitnim Ethernet vmesnikom na Lustre vozlišču MDS. - V principu je /scratch pomnilnik ekvivalenten 8xRAIDZ2 (8xRAID6) kar pomeni, da diskovni sistem ob okvari enega ali dveh diskov v vsaki od osmih skupin ne izgubi podatkov. Zanesljivost shrambe je vseeno manjša kot na $HOME saj so diski na vozlščih odvisni od zanesljivosti vozlišč. 16 diskov od 64 je tako redundanca. - Omejitve na tem pomnilniku, do zapolnitve kapacitet, ni. Vseeno pa morajo uporabniki sami skrbeti, da si kopirajo iz/na ta diskovni sistem le pomembne datoteke, ostale pa redno brišejo. V imenik se premaknemo z ukazom cd $SCRATCH ali izberemo svoj podimenik v /scratch/$USER - Uporabnik ki želi ta diskovni prostor uporabljati naj si prej naredi svoj imenik z ukazom mkdir $SCRATCH `/shadow/work/$USER` `/shadow/tmp` na nadzornem vozlišču prelog - Senčna kopija pomnilnika $WORK, ki se je brisal  v maju 2014.  Podatki v teh imenikih so na voljo uporabnikom, da si skopirajo stare datoteke na $WORK, če jih še potrebujejo. Datoteke $SHADOW bodo na voljo še najmanj do konca leta 2014. Priporočamo, da se večje količine kopira z rsync in omejitvijo hitrosti, saj je iSCSI diskovje $SHADOW na ARNES-u. Primer:    cd $SHADOW    ls    rsync -arv --bwlimit=10000 moj\_stari\_projekt $WORK `/tmp` lokalno na vsakem vozlišču - To podatkovno področje je namenjeno začasnim datotekam med izvajanjem del. - Trenutno ni omejitev na tem pomnilniku. - Upraviteljem sestava je dovoljeno brisanje datotek v tem imeniku v primeru, da prične primanjkovati prostora.   ## Uporabniški računi Za dodelitev uporabniškega računa je potrebna odobritev. Podrobnosti so na strani [http://hpc.fs.uni-lj.si/access](../wiki/access.md) Uporabniški računi se vodijo v NIS (Network Information Service). Navadni uporabniki si lahko zamenjajo geslo z ukazom yppasswd. Podpora ali vprašanja so zaenkrat možna kar na support @ hpc.fs.uni-lj.si ali z "Novimi zahtevki" na Registracija na spletni strani [http://hpc.fs.uni-lj.si/](../index.md) je potrebna le, če želite kaj od svojega znanja tudi objaviti in s tem pomagati drugim. Predvsem je to zaželjeno za posebne programe, ki se jih bo ali si jih boste nameščali na sestav.   ## Nameščena programska oprema 1. **Operacijski sistem** Sestav poganja  [CentOS](http://centos.org/) 6.6, ki je kompatibilna predelava  Redhat-Enterprise Linux-a. 2. [**Sistem za nadzor nalog**](slurm.md) Pošiljanje nalog je možno s sistemom SLURM (ki je nadomestil nekdanji Load Sharing Facility (LSF)). 3. [**Programsko okolje**](devel/index.md) Nastavljanje sistemsih nastavitev (*environment*) je mogoče s sistemom Modules. 4. [**Programski paketi**](module.md) Za dostopne pakete kot so prevajalniki, okolja za paralelizacijo, numerične knjižnice, znanstvene aplikacije lahko uporabite sistem Modules ali seznam na spletni strani. ## Prenašanje datotek ![](../files/figs/fish.png)Uporabniki si lahko prenašajo svoje datoteke z varnim protokolom SCP ali SFTP in enakoimenskimi programi.  Za kopiranje podatkov na domače imenike $HOME se priporoča  neposredna uporaba datotečnega strežnika forge.fs.uni-lj.si Za kopiranje datotek na delovni imenik $WORK, $SCRATCH pa prelog.fs.uni-lj.si. Za kliente iz okolja Windows je mogoče uporabiti različne grafične programe. Priporoča se uporaba programov kot sta [FileZilla](http://filezilla-project.org/) ali [WinSCP](http://winscp.net/eng/download.php#download2)  in sta prosto dostopena. Nastavitve WinSCP: - Uporabniško ime in geslo - Host name: forge.fs.uni-lj.si - Protocol: sftp V okolju linux je okenskih upravljalnikov datotek več (konqueror, dolphin, mc, ...) in vsi omogočajo prenos datotek s protokolom SCP, SFTP ali FISH. V konkquerorju naslov napišemo kar v vrstico. ## Kontakt support @ hpc.fs.uni-lj.si ::::: :::::: ```{toctree} :maxdepth: 1 devel/index module slurm visit iozone openfoam/index inkscape latex debug ansys/index eclipse elmer/index mpi mathematica nxshadow openmp pmc r obsolete/index ```