Fix robin RAID mount
This commit is contained in:
parent
d74b079d01
commit
b389ab2734
1 changed files with 17 additions and 14 deletions
|
|
@ -26,6 +26,22 @@
|
|||
openssh.enable = true;
|
||||
};
|
||||
|
||||
# RAID
|
||||
boot.swraid = {
|
||||
enable = true;
|
||||
mdadmConf = ''
|
||||
MAILADDR root
|
||||
ARRAY /dev/md0 level=raid10 num-devices=4 metadata=1.2 UUID=f94b90a5:574f242f:00596ed9:a2b369c7
|
||||
'';
|
||||
};
|
||||
|
||||
fileSystems."/mnt/raid" = {
|
||||
device = "/dev/disk/by-uuid/208bee23-4723-42c2-ac4e-c902eb530f80";
|
||||
fsType = "ext4";
|
||||
options = [ "defaults" "nofail" ];
|
||||
};
|
||||
|
||||
# NFS
|
||||
services.nfs = {
|
||||
server.enable = true;
|
||||
server.exports = ''
|
||||
|
|
@ -34,22 +50,9 @@
|
|||
'';
|
||||
};
|
||||
|
||||
# RAID
|
||||
boot.swraid = {
|
||||
enable = true;
|
||||
mdadmConf = ''
|
||||
ARRAY /dev/md0 level=raid10 num-devices=4 metadata=1.2 UUID=f94b90a5:574f242f:00596ed9:a2b369c7
|
||||
'';
|
||||
};
|
||||
|
||||
fileSystems."/mnt/raid" = {
|
||||
device = "/dev/disk/by-uuid/208bee23-4723-42c2-ac4e-c902eb530f80";
|
||||
fsType = "ext4";
|
||||
options = [ "defaults" "nofail" "_netdev" ];
|
||||
};
|
||||
|
||||
fileSystems."/export/yarr" = {
|
||||
device = "/mnt/raid/yarr";
|
||||
fsType = "ext4";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue