Forstor
Funktion | Tjänsteserver |
---|---|
Specialfunktion | NFS-fillager åt inhysningar |
Operativsystem | FreeBSD |
Arkitektur | amd64 |
CPU | Intel Xeon L5609 @ 1.87GHz |
Minne | 16 GB |
Modell | Dell R510 (2U) |
Placering | BAR-hallen |
Rack: | R4 |
SSH-fingeravtryck | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 256 SHA256:TrmOJF9oO8SW1CkR8DhOl0c8E3AXjkC1xHGjRYtblOE root@forstor.lysator.liu.se (ECDSA) 256 SHA256:9Os1NRyinoLoATt6K9tzSCnCUyFeZGQyiVGbcGb4LbY root@forstor.lysator.liu.se (ED25519) 3072 SHA256:GlD9H0yqzI5559fh32UO+v4a1ET3Tx2u2qRyC4p4zs4 root@forstor.lysator.liu.se (RSA) -----BEGIN PGP SIGNATURE----- iQGzBAEBCgAdFiEErErxcXvoUO3SxBcDkaOTy666P18FAmXGqbIACgkQkaOTy666 P1+y5QwAw5W5EPRxRfeWEy3ipyZY5jWtldk1NHr3gQCCa87QKFSyAmrb8nV65yzm N03wQ76OQf9JGh/XkCCNsso6eaY/eb0FvdHM0e/czSaoCCCgWm/hWShUURQ/L0Fy oGqfDhiJqPmK21f/jL+L8f7FXDhJhUWIOw1oNzy713mS2LzeV9XPxSi3or+mm70a IWHSC6npT0lnPQMGDlcOwbHVcmFYFMT/uiNVrYZIfs74SchQ5n1gqze1YY614Yct JFf+nu8uyFdcbOr3napX9dSNlk7UFpjaGwpW7If4FLDT2Ko0l1iziBFt6mkALJD8 mqrqJd1HKd1dG57M1TbgVh1eBt04GmV86h7VQ16CNYo1S3WHxr9HurpZaDYtbrq7 ZV1ZbWSgRh/RBdpJMozVETBsvVHJHJ93eZaRaw1HEiKCsHlI4hoyOA9rQ3D3a02v 30Wi7HlllNauqE6D/YTIuWbRRh+GBH+0RJytLOMme0zZTYKFvoXsIl4AoNukzrEw MkyVgPMl =QJ43 -----END PGP SIGNATURE----- |
Ansvarig root | littlefox |
Driftstatus | I drift |
Information
OBS: Det går endast att logga in som root.
Rotfilsystem
Rotfilsystemet är ZFS och ligger på diskarna mfid[0-1]p2.
Lagringsyta för NFS
zpool storage med draid2. ligger på diskarna mfid[3-11]. Poolen är komprimerad med zstd.
NFS exporter
- forte.lysator.liu.se (130.236.254.143) | share grupp forte-nfs:3356
- ellen.lysator.liu.se (130.236.254.233) | share grupp runeberg-nfs:3357
- lisse.lysator.liu.se (130.236.254.175) | share grupp liss-nfs:3358
NFS server (FreeBSD)
/etc/rc.conf
should contain:
nfs_server_enable="YES" nfsv4_server_enable="YES" mountd_enable="YES"
Dataset
zfs create storage/<datasetname>
zfs set quota=<size> storage/<datasetname>
Quota
Forstor uses ZFS datasets. Use zfs set quota=2T storage/<datasetname>
to set quota Get quota with zfs get quota storage/<datasetname>
NFS-exports
/etc/exports
should contain:
V4: /storage #root of nfs export /storage/<datasetname> -maproot="nobody":"nobody" I.P.ad.dr #squasing root and exporting to specific IP
NOTE: after making changes in
/etc/exports
restart mountdservice mountd restart
sometimes restartnfsd
as well for good measure.
NFS client (Ubuntu)
Install package nfs-common
Test mounting the exported file system with sudo mount -t nfs4 -o proto=tcp,port=2049 192.168.0.177:/<datasetname> /mnt
Unmount with `umount.nfs4 /mnt/<datasetname>
If everything seems to work add the following to /etc/fstab
:
192.168.0.177:/<datasetname> /mnt/<datasetname> nfs4 auto 0 0
to mount unmounted volumes from fstab do mount -a
Users and groups
All users who are to access this export need to exist both on server and client. With same IDs. They do not necessarily NEED to exist on the server, but it may be more convenient that way in case of ID conflicts later on on the servers side.
There needs to be a group set up that will be the owner of the shared directory on both sides. This also needs to have the same GID on both client and server.
I have tested on the servers side that the directory need only really have the group be correct. The directory can have root as owner and “forte” as group.