NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
powellandy1
Aug 21, 2020Virtuoso
Add SSD to RN528X
Hi Following on from https://community.netgear.com/t5/New-ReadyNAS-Users-General/Add-SSD-drive-s-to-RN528X/td-p/1776859 I've just had a go at adding an M2 SSD to my new 528X. It seems have wo...
Sandshark
Aug 22, 2020Sensei
That is odd. I don't have a NAS that accepts an M2 SSD, but I know I have given that advice before and got no feedback it didn't work.
The manual commands you gave it to partition and expand the OS and swap arrays clearly did work. Before I discovered volume_util, I did the same thing for my expansion chassis. If you don't plan to also create a volume on the SSD, then that's a pretty easy thing. To remain consistent with the OS in naming of the MDADM array and BTRFS volume takes a bit more effort. I can help you there if needed. I'm assuming that once created and mounted via FSTAB, the OS will be able to see and use the new volume.
As for the boundries of the partitions, I've not tried anything other than the ones the OS uses. Re-aligning should certainly work as far as MDADM is concerned, but I have no idea if it will cause any issues when you decide to further expand the NAS and it adds still more drives to the OS and swap RAIDs. Since you seem to be doing some experimenting with the NAS not containing a volume you actively use, you trying won't hurt and it could help others who follow in your footsteps.
powellandy1
Aug 22, 2020Virtuoso
Hi
Thanks. I haven't changed any array or volume names (knowingly) but please do tell me if I should do/need to.
Regarding FSTAB, again forgive me I'm pretty new to Linux, /etc/fstab just contains:
root@MediaMaster:~# cat /etc/fstab LABEL=0a436c4c:data /data btrfs defaults 0 0
So I don't think I need to add anything there. The SSD is not visible anywhere in the GUI so it's rather difficult to know if it's being used.
Good thought about the effect of adding another drive. I'll try that and report back.
Thanks
Andy
- powellandy1Aug 22, 2020Virtuoso
Added another 2TB HDD. Interestingly it seems the changes made above are only preserved for md0 (which is the root isn't it)?
root@MediaMaster:~# cat /proc/mdstat Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] md1 : active raid1 sdc2[1] sda2[0] 523264 blocks super 1.2 [2/2] [UU] md127 : active raid1 sdc3[1] sda3[0] 1948664832 blocks super 1.2 [2/1] [U_] [>....................] recovery = 0.2% (5598592/1948664832) finish=558.9min speed=57935K/sec md0 : active raid1 sdc1[2] sda1[0](W) sdb1[1] 4190208 blocks super 1.2 [3/3] [UUU] unused devices: <none>I also made the SSD partitions on a 2048 sector boundary - this seems to be fine. The boundaries are now:
start 2048 end 8390655 start 8390656 end 9439232
Cheers
A
- SandsharkAug 22, 2020Sensei
Yes, there is no additional volume in FSTAB because you have not created a volume on the new SSD. You have simply expanded the OS (MD0) and swap (MD1) partitions to include it. If you do want to add a volume on the SSD, you need to re-do the partitioning and RAID expansions you did before, plus add a partition with the remaining space.
Note in your FSTAB listing that the existing volume is actually named 0a436c4c:data, not just data. The 0a436c4c is the NAS's HostID, and the OS uses it in naming the RAID arrays and BTRFS volumes. Once you have created the partitions on the SSD, the following will create volume M2SSD on the third partition of that SSD:
mdadm --create --verbose /dev/md126 --level=1 --raid-devices=1 --name=0a436c4c:M2SSD-0 /dev/sdb3 mkfs.btrfs -L 0a436c4c:M2SSD /dev/md126 mkdir /M2SSD mount /dev/md126 /MDSSD
Note that the full name of the RAID is 0a436c4c:M2SSD-0 and the volume is 0a436c4c:M2SSD. That's consistent with how the OS names them. You can chose your own name in place of M2SSD, you just can't duplicate the name of any existing volume or sub-volume (share).
Now, that only mounts the volume till you re-boot. So, you need to add an entry for the new volume in fstab. I recommend nano is an editor unless you really want to deal with vi (installk with apt install nano). Basically, you just mimic the other entry:
LABEL=0a436c4c:data /data btrfs defaults 0 0 LABEL=0a436c4c:M2SSD /M2SSD btrfs defaults 0 0
- SandsharkAug 22, 2020Sensei
The OS is treating the SSD like it's in another chassis. If it's on a different controller than the other drives, I can see it doing that. The OS will expand the OS (MD0, aka root) volume across drives in another chassis (such as an eSATA or SAS expansion), but it will not expand the swap partition except in the same chassis. That makes sense since the connection to the other chassis might be slow (like with eSATA). It does normally create that second partition, just not expand a volume into it. That allows you to move the volume to another NAS and it will boot.
Good to know the partition alignment doesn't seem to be an issue. Thanks for testing.
- powellandy1Aug 23, 2020Virtuoso
Interesting.
Just to note after a reboot (having added a 2nd HDD) the SSD became sdc (presumably as on a different controller).
I had to create the partition with sgdisk as mdadm failed:
sgdisk -n 3:0:0 -t 3:FD00 /dev/sdc
I also had to add --force to mdadm as it complained about a 1 disk array:
mdadm --create --verbose --force /dev/md126 --level=1 --raid-devices=1 --name=0a436c4c:M2SSD-0 /dev/sdc3
So I now have:
root@ReadyNAS528X:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8T 0 disk ├─sda1 8:1 0 4G 0 part │ └─md0 9:0 0 4G 0 raid1 / ├─sda2 8:2 0 512M 0 part │ └─md1 9:1 0 511M 0 raid1 [SWAP] └─sda3 8:3 0 1.8T 0 part └─md127 9:127 0 1.8T 0 raid1 /data sdb 8:16 0 1.8T 0 disk ├─sdb1 8:17 0 4G 0 part │ └─md0 9:0 0 4G 0 raid1 / ├─sdb2 8:18 0 512M 0 part │ └─md1 9:1 0 511M 0 raid1 [SWAP] └─sdb3 8:19 0 1.8T 0 part └─md127 9:127 0 1.8T 0 raid1 /data sdc 8:32 0 111.8G 0 disk ├─sdc1 8:33 0 4G 0 part │ └─md0 9:0 0 4G 0 raid1 / ├─sdc2 8:34 0 512M 0 part └─sdc3 8:35 0 107.3G 0 part └─md126 9:126 0 107.2G 0 raid1 /M2SSD root@ReadyNAS528X:~# cat /proc/mdstat Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] md126 : active raid1 sdc3[0] 112433600 blocks super 1.2 [1/1] [U] md127 : active raid1 sda3[0] sdb3[1] 1948664832 blocks super 1.2 [2/2] [UU] md0 : active raid1 sda1[0](W) sdb1[2](W) sdc1[1] 4190208 blocks super 1.2 [3/3] [UUU] md1 : active raid1 sda2[0] sdb2[1] 523264 blocks super 1.2 [2/2] [UU] unused devices: <none> root@ReadyNAS528X:~# df -h Filesystem Size Used Avail Use% Mounted on udev 10M 4.0K 10M 1% /dev /dev/md0 4.0G 499M 3.2G 14% / tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs 7.8G 3.8M 7.8G 1% /run tmpfs 3.9G 1.4M 3.9G 1% /run/lock tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/md127 1.9T 20M 1.9T 1% /data /dev/md127 1.9T 20M 1.9T 1% /apps /dev/md127 1.9T 20M 1.9T 1% /home /dev/md126 108G 17M 106G 1% /M2SSDBut it doesn't appear right in volume_util:
root@ReadyNAS528X:~# volume_util -s disk pool ============================================== Disks ============================================== Disk sda: HostID: 0a436c4c Flags: 0x2000 Size: 3907029168 (1863 GB) Free: 14 Controller 0 Channel: 0 Model: ST2000DM001-1CH164 Serial: W1E24PDJ Firmware: CC24 Class: SATA (3) RPM: 7200 SMART data Reallocated Sectors: 0 Reallocation Events: 0 Spin Retry Count: 0 End-to-End Errors: 0 Command Timeouts: 0 Current Pending Sector Count: 0 Uncorrectable Sector Count: 0 Temperature: 36 Start/Stop Count: 37750 Power-On Hours: 27013 Power Cycle Count: 5225 Load Cycle Count: 179002 Latest Self Test: Passed Disk sdb: HostID: 0a436c4c Flags: 0x0 Size: 3907029168 (1863 GB) Free: 14 Controller 0 Channel: 1 Model: ST2000DL003-9VT166 Serial: 5YD1JAWV Firmware: CC32 Class: SATA (2) RPM: 5900 SMART data Reallocated Sectors: 0 Reallocation Events: 0 Spin Retry Count: 0 End-to-End Errors: 0 Command Timeouts: 236 Current Pending Sector Count: 0 Uncorrectable Sector Count: 0 Temperature: 36 Start/Stop Count: 2821 Power-On Hours: 22557 Power Cycle Count: 907 Load Cycle Count: 3062 Latest Self Test: Passed ============================================== Pools ============================================== Pool root: Device: /dev/md0 Node: 9:0 HostID: 0a436c4c (native) UUID: b13fb9d8-e61f-479a-9892-9d897d787e11 Mount point: / Size: 3790720KB (3 GB) Available: 3280104KB (3 GB) RAID Level: 1 State: redundant Action: idle Flags: 0x68 Type: btrfs Tier Flag: Disable RAIDs: md0 Size: 8380416 Level: 1 Action: idle Members: 3 Type: 2 Flags: 0x28 Tier: 0 Data allocation: 0 GB Metadata allocation: 0 MB Unallocated: 0 GB Disks: sda: HostID: 0a436c4c Flags: 0x2000 Size: 3907029168 (1863 GB) Free: 14 Controller 0 Channel: 0 Model: ST2000DM001-1CH164 Serial: W1E24PDJ Firmware: CC24 Class: SATA (3) RPM: 7200 SMART data Reallocated Sectors: 0 Reallocation Events: 0 Spin Retry Count: 0 End-to-End Errors: 0 Command Timeouts: 0 Current Pending Sector Count: 0 Uncorrectable Sector Count: 0 Temperature: 36 Start/Stop Count: 37750 Power-On Hours: 27013 Power Cycle Count: 5225 Load Cycle Count: 179002 Latest Self Test: Passed sdb: HostID: 0a436c4c Flags: 0x0 Size: 3907029168 (1863 GB) Free: 14 Controller 0 Channel: 1 Model: ST2000DL003-9VT166 Serial: 5YD1JAWV Firmware: CC32 Class: SATA (2) RPM: 5900 SMART data Reallocated Sectors: 0 Reallocation Events: 0 Spin Retry Count: 0 End-to-End Errors: 0 Command Timeouts: 236 Current Pending Sector Count: 0 Uncorrectable Sector Count: 0 Temperature: 36 Start/Stop Count: 2821 Power-On Hours: 22557 Power Cycle Count: 907 Load Cycle Count: 3062 Latest Self Test: Passed Pool swap: Device: /dev/md1 Node: 9:1 HostID: 0a436c4c (native) UUID: d504d8ea-ef3f-4d5a-9257-151355384db5 Mount point: none Size: 0KB (0 GB) Available: 0KB (0 GB) RAID Level: 1 State: redundant Action: idle Flags: 0x28 Type: swap Tier Flag: Disable RAIDs: md1 Size: 1046528 Level: 1 Action: idle Members: 2 Type: 2 Flags: 0x28 Tier: 0 Disks: sda: HostID: 0a436c4c Flags: 0x2000 Size: 3907029168 (1863 GB) Free: 14 Controller 0 Channel: 0 Model: ST2000DM001-1CH164 Serial: W1E24PDJ Firmware: CC24 Class: SATA (3) RPM: 7200 SMART data Reallocated Sectors: 0 Reallocation Events: 0 Spin Retry Count: 0 End-to-End Errors: 0 Command Timeouts: 0 Current Pending Sector Count: 0 Uncorrectable Sector Count: 0 Temperature: 36 Start/Stop Count: 37750 Power-On Hours: 27013 Power Cycle Count: 5225 Load Cycle Count: 179002 Latest Self Test: Passed sdb: HostID: 0a436c4c Flags: 0x0 Size: 3907029168 (1863 GB) Free: 14 Controller 0 Channel: 1 Model: ST2000DL003-9VT166 Serial: 5YD1JAWV Firmware: CC32 Class: SATA (2) RPM: 5900 SMART data Reallocated Sectors: 0 Reallocation Events: 0 Spin Retry Count: 0 End-to-End Errors: 0 Command Timeouts: 236 Current Pending Sector Count: 0 Uncorrectable Sector Count: 0 Temperature: 36 Start/Stop Count: 2821 Power-On Hours: 22557 Power Cycle Count: 907 Load Cycle Count: 3062 Latest Self Test: Passed Pool data Device: /dev/md127 Node: 9:127 HostID: 0a436c4c (native) UUID: eb14a0f9-c989-49d4-ad8c-fe03826aa7fb Mount point: /data Size: 1946568512KB (1856 GB) Available: 1946548464KB (1856 GB) Snapshot: 17728KB (17 MB) Data allocation: 0 GB Data used: 1 MB (0 GB) Metadata allocation: 1032 MB Metadata used: 0 MB Unallocated: 1856 GB RAID Level: 1 State: redundant Action: idle Flags: 0x48 Type: btrfs Tier Flag: Disable RAIDs: md127 Size: 3897329664 Level: 1 Action: idle Members: 2 Type: 2 Flags: 0x8 Tier: 0 Data allocation: 0 GB Metadata allocation: 2064 MB Unallocated: 1856 GB Disks: sda: HostID: 0a436c4c Flags: 0x2000 Size: 3907029168 (1863 GB) Free: 14 Controller 0 Channel: 0 Model: ST2000DM001-1CH164 Serial: W1E24PDJ Firmware: CC24 Class: SATA (3) RPM: 7200 SMART data Reallocated Sectors: 0 Reallocation Events: 0 Spin Retry Count: 0 End-to-End Errors: 0 Command Timeouts: 0 Current Pending Sector Count: 0 Uncorrectable Sector Count: 0 Temperature: 36 Start/Stop Count: 37750 Power-On Hours: 27013 Power Cycle Count: 5225 Load Cycle Count: 179002 Latest Self Test: Passed sdb: HostID: 0a436c4c Flags: 0x0 Size: 3907029168 (1863 GB) Free: 14 Controller 0 Channel: 1 Model: ST2000DL003-9VT166 Serial: 5YD1JAWV Firmware: CC32 Class: SATA (2) RPM: 5900 SMART data Reallocated Sectors: 0 Reallocation Events: 0 Spin Retry Count: 0 End-to-End Errors: 0 Command Timeouts: 236 Current Pending Sector Count: 0 Uncorrectable Sector Count: 0 Temperature: 36 Start/Stop Count: 2821 Power-On Hours: 22557 Power Cycle Count: 907 Load Cycle Count: 3062 Latest Self Test: Passed Pool M2SSD: Device: Node: 0:0 HostID: 0a436c4c (native) UUID: 00000000-0000-0000-0000-000000000000 Mount point: /M2SSD Size: 0KB (0 GB) Available: 0KB (0 GB) Snapshot: 0KB (0 MB) Data allocation: 0 GB Data used: 0 MB (0 GB) Metadata allocation: 0 MB Metadata used: 0 MB Unallocated: 0 GB RAID Level: unknown State: inactive Action: idle Flags: 0x0 Type: btrfs Tier Flag: Disable Disks:And whilst M2SSD appears in the GUI it's not right and you can't manipulate it. It seems that volume_util still isn't recognising.
Thanks
Andy
- SandsharkAug 23, 2020Sensei
I'm afraid I'm out of ideas.
- SandsharkFeb 19, 2021Sensei
powellandy1 wrote:So I now have:
root@ReadyNAS528X:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8T 0 disk ├─sda1 8:1 0 4G 0 part │ └─md0 9:0 0 4G 0 raid1 / ├─sda2 8:2 0 512M 0 part │ └─md1 9:1 0 511M 0 raid1 [SWAP] └─sda3 8:3 0 1.8T 0 part └─md127 9:127 0 1.8T 0 raid1 /data sdb 8:16 0 1.8T 0 disk ├─sdb1 8:17 0 4G 0 part │ └─md0 9:0 0 4G 0 raid1 / ├─sdb2 8:18 0 512M 0 part │ └─md1 9:1 0 511M 0 raid1 [SWAP] └─sdb3 8:19 0 1.8T 0 part └─md127 9:127 0 1.8T 0 raid1 /data sdc 8:32 0 111.8G 0 disk ├─sdc1 8:33 0 4G 0 part │ └─md0 9:0 0 4G 0 raid1 / ├─sdc2 8:34 0 512M 0 part └─sdc3 8:35 0 107.3G 0 part └─md126 9:126 0 107.2G 0 raid1 /M2SSD
OK, so I checked my system, and I was mistaken about the swap partition. While it did create a partition for it on drives in my EDA500 on an RN516, though it didn't add them to the swap RAID, it has not done so on drives in my external SAS chassis. It does leave a space for it, though. So maybe try deleting the partition you created for swap.
root@RD5200A:/# lsblk sdu 65:64 0 232.9G 0 disk ├─sdu1 65:65 0 4G 0 part │ └─md0 9:0 0 4G 0 raid1 / └─sdu3 65:67 0 228.4G 0 part └─md126 9:126 0 456.5G 0 raid5 /SSD1 root@RD5200A:/# fdisk -l /dev/sds
Disk /dev/sds: 232.9 GiB, 250059350016 bytes, 488397168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 19434DD1-C91A-4FE4-9517-DCC9619A90EB Device Start End Sectors Size Type /dev/sds1 64 8388671 8388608 4G Linux RAID /dev/sds3 9437248 488397119 478959872 228.4G Linux RAID - spiperovFeb 19, 2021Guide
Strange...
There's a second discussion with the exact same title here:
(https://community.netgear.com/t5/New-ReadyNAS-Users-General/Add-SSD-drive-s-to-RN528X/m-p/1805740#M38176)but because it's from 2019 it must have been archived by NETGEAR because one cannot reply there anymore. Still, there is some quite useful info in it.
Just thought I should share this.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!