-
Notifications
You must be signed in to change notification settings - Fork 8
add NFS export on trenderhoof #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
5f58e38 to
e98d2e0
Compare
|
These are the disks on dataloss: I'm not sure why the RAID 10 array called md126 is there. It doesn't seem to be mounted. |
|
Do we want to replicate the SSH motd saying ? |
This mirrors /etc/mdadm/mdadm.conf and /etc/fstab from dataloss.
| boot.swraid = { | ||
| enable = true; | ||
| mdadmConf = '' | ||
| MAILADDR postmaster@ocf.berkeley.edu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure which email address this should be. It's where
alerts should be sent to when mdadm is running in
--monitormode (and was given the--scanoption).1
On dataloss, /etc/mdadm/mdadm.conf says
MAILADDR root
complete /etc/mdadm/mdadm.conf
# mdadm.conf
#
# !NB! Run update-initramfs -u after updating this file.
# !NB! This will ensure that initramfs has an uptodate copy.
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
#ARRAY /dev/md/nfs metadata=1.2 UUID=4239539d:502ce95e:eb4b4e88:2c55614a name=dataloss:nfs
# This configuration was auto-generated on Sat, 13 Nov 2021 15:07:16 -0800 by mkconf
#ARRAY /dev/md/nfs metadata=1.2 UUID=4239539d:502ce95e:eb4b4e88:2c55614a name=dataloss:nfs
#ARRAY /dev/md/nfs metadata=1.2 UUID=4239539d:502ce95e:eb4b4e88:2c55614a name=dataloss:nfs
ARRAY /dev/md/nfs metadata=1.2 UUID=46b10914:9f84099b:dd54304a:917d7898 name=dataloss:nfs
#ARRAY /dev/md/nfs-old metadata=1.2 UUID=4239539d:502ce95e:eb4b4e88:2c55614a name=dataloss:nfs-old
Footnotes
|
|
||
| networking.firewall.allowedTCPPorts = [ | ||
| # sufficient for NFSv4 | ||
| 2049 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is less than what's opened in https://github.com/ocf/puppet/blob/master/modules/ocf/manifests/firewall/nfs.pp but it's sufficient for NFSv4 and we explicitly use NFSv4 in https://github.com/ocf/puppet/blob/master/modules/ocf/manifests/nfs.pp#L15-L26.
There is already an ocf.nfs module in the migrate-supernova branch.
This is supposed to recreate https://github.com/ocf/puppet/blob/master/modules/ocf_filehost/manifests/init.pp as a NixOS config, which (besides NTP and storage) is the only thing configured on dataloss: https://github.com/ocf/puppet/blob/master/hieradata/nodes/dataloss.yaml
This is what the file
/etc/exportscreated by this config looks like:That should hopefully be the exact same as the file on dataloss (please check if you have access).
fixes #68