NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Desmoquattro83
Apr 18, 2016Aspirant
RN31600 and RAID1 with 5 disks
Hello all. I just bought a RN31600 and need to use it with 5 disks in RAID1 mode. However, as long as i put more than 2 disks in, the option only allows to create raid5 or raid6 with my 5 drives. I...
- Retired_MemberApr 18, 2016
Creating a RAID1 on 5 HDDs is possible from SSH though.
Don't know if I should advise that, it depends on your experience in Linux systems.
I tried it on my unit and it worked:
## Switch to Flex-RAID from GUI ## Destroy the current volume from GUI (obviously, this wipes all data there is on it) # mdadm --create --verbose /dev/md127 --level=mirror --raid-devices=5 /dev/sd[a-e]3 [...] # cat /proc/mdstat Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] md127 : active raid1 sde3[4] sdd3[3] sdc3[2] sdb3[1] sda3[0] 483536832 blocks super 1.2 [5/5] [UUUUU] [>....................] resync = 1.4% (6895616/483536832) finish=114.8min speed=69136K/sec # mkfs.btrfs -L `hostid`:data /dev/md127 [...] # mount /dev/md127 /data mount: mount point /data is not a directory # ls -al /data lrwxrwxrwx 1 root root 9 Apr 18 03:50 /data -> /dev/null # rm /data # mkdir /data # mount /dev/md127 /data # mount | grep md127 [...] # df -h [...] ## Check that volume is seen from GUI ## Reboot gracefully from GUI to finalize procedure (so ReadyNAS OS mounts everything it needs,
Retired_Member
Apr 18, 2016oh wow, I can't believe I missed that point!
cs_giuseppe, you're absolutely right!
RAID6 does NOT allow to do what op is trying to achieve
I was arguing about RAID levels, and completely forgot about it, so sorry
Retired_Member
Apr 18, 2016Creating a RAID1 on 5 HDDs is possible from SSH though.
Don't know if I should advise that, it depends on your experience in Linux systems.
I tried it on my unit and it worked:
## Switch to Flex-RAID from GUI ## Destroy the current volume from GUI (obviously, this wipes all data there is on it) # mdadm --create --verbose /dev/md127 --level=mirror --raid-devices=5 /dev/sd[a-e]3 [...] # cat /proc/mdstat Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] md127 : active raid1 sde3[4] sdd3[3] sdc3[2] sdb3[1] sda3[0] 483536832 blocks super 1.2 [5/5] [UUUUU] [>....................] resync = 1.4% (6895616/483536832) finish=114.8min speed=69136K/sec # mkfs.btrfs -L `hostid`:data /dev/md127 [...] # mount /dev/md127 /data mount: mount point /data is not a directory # ls -al /data lrwxrwxrwx 1 root root 9 Apr 18 03:50 /data -> /dev/null # rm /data # mkdir /data # mount /dev/md127 /data # mount | grep md127 [...] # df -h [...] ## Check that volume is seen from GUI ## Reboot gracefully from GUI to finalize procedure (so ReadyNAS OS mounts everything it needs,
- Desmoquattro83Apr 18, 2016Aspirant
Many thanks for this information regarding SSH you rock mate !
- mdgm-ntgrApr 18, 2016NETGEAR Employee Retired
RAID-1 isn't a backup and why treating it as such is bad is explained here: Preventing Catastrophic Data Loss
Treating RAID as a backup rather than preventing data loss can actually cause data loss. RAID provides redundancy not backup.
Also if you create custom volumes using SSH and run into issues with them support will be unable to help. - Desmoquattro83Apr 18, 2016Aspirant
I know this :)
However, the SSH script worked very well and my 5 disks are now in RAID1 just like I wanted.
That's great. Thank you again !
- Desmoquattro83Apr 18, 2016Aspirant
** edited due to my error, forgot to reboot the nas **
everything works as planned. I assume hotplug and autorebuild are still enabled after doing this ?
Cheers again ! - mdgm-ntgrApr 18, 2016NETGEAR Employee Retired
Sure, but if you run into issues support can't be expected to help with a volume that couldn't be created using any of our UI options.
Your latest post indicates just why what you've done is something that support would deny help for.
You may need to enter an entry for the data volume to /etc/fstab doing e.g.
echo 'LABEL='`hostid`':data /data btrfs defaults 0 0' >> /etc/fstab
You may then need to do e.g.
# systemctl restart readynasd
and hope that the necessary entries in the database are created. - Desmoquattro83Apr 18, 2016Aspirant
Thanks but actually everything regarding creating shares works perfectly from the GUI now i've rebooted the unit.
- mdgm-ntgrApr 18, 2016NETGEAR Employee Retired
Ah, could be that simply doing
# systemctl restart readynasd
Would have been enough. readynasd probably scans for data volumes when it starts and automatically creates what is needed (e.g. entry in /etc/fstab file) to work with it. - Desmoquattro83Apr 18, 2016Aspirant
I imagine so :)
That's cool by now. Still wondering a last thing regarding if hotplug and autorebuild will still work after this (don't know why they wouldn't, but hey ...)
- mdgm-ntgrApr 18, 2016NETGEAR Employee Retired
It probably would work fine, but this RAID-1 configuration with 5 disks is untested by us so we don't know whether you may run into some weird issues or not, not necessarily with the RAID, but perhaps an issue in the UI or something else.
- Retired_MemberApr 18, 2016
You can test that very easily.
Leave the volume resync complete.
Replace a HDD, confirm if it resyncs ;)
(if you can't replace the HDD, just reset it, like put it into a PC and delete all partitions, or mark it as failed in all three RAIDs with mdadm, delete the partitions with sgdisk -Z, and reboot the unit)
Unfortunately Flex-RAID is actually very inFlexible... RAID possibilities are very limited, expansion is even worse.
For your backup solution, as said before, there are much better ways of doing it.
But if you want a multiple mirror RAID1, that's the way ;)
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!