NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Stanman130
Apr 03, 2014Guide
OS6 Data Recovery - How to Mount BTRFS Volumes
I recently purchased a ReadyNAS 314 and 5 Seagate ST2000VN000 hard disks (one as a cold spare). I work as a system administrator, so I've been reading up on OS6 before I entrust this new system with m...
sweeney1
Jun 21, 2015Aspirant
I have been recovering data from my failed 2-bay RN102 using mdgm's suggestions above.
# apt-get update
# apt-get install mdadm btrfs-tools
# mdadm --assemble --scan
# cat /proc/mdstat
# mount -t btrfs -o ro /dev/md127 /mnt
It worked without any problems on the first disk, but when I tried to do the same with the second disk (just to try it), mdadm would not activate the data and swap partitions - only the root partition. data and swap were marked as "Inactive" and the disk was marked as 'Spare' in cat /proc/mdstat
After a lot of reading up on mdadm, what finally worked for me, was to use the "mdadm --stop ..." command after I was finished using one of the disks - that is
# mdadm --stop /dev/md127
mdadm: stopped /dev/md127
After doing this on both swap and data, "mdadm --assemble --scan" was able to activate all raid-partitions.
When a raid disk is only mounted to recover data, isn't it correct and necessary to stop the raid partitions (sorry for my wrong terminology) to be able to mount another raid disk?
Regards
Hans-Ole,
DK
# apt-get update
# apt-get install mdadm btrfs-tools
# mdadm --assemble --scan
# cat /proc/mdstat
# mount -t btrfs -o ro /dev/md127 /mnt
It worked without any problems on the first disk, but when I tried to do the same with the second disk (just to try it), mdadm would not activate the data and swap partitions - only the root partition. data and swap were marked as "Inactive" and the disk was marked as 'Spare' in cat /proc/mdstat
After a lot of reading up on mdadm, what finally worked for me, was to use the "mdadm --stop ..." command after I was finished using one of the disks - that is
# mdadm --stop /dev/md127
mdadm: stopped /dev/md127
After doing this on both swap and data, "mdadm --assemble --scan" was able to activate all raid-partitions.
When a raid disk is only mounted to recover data, isn't it correct and necessary to stop the raid partitions (sorry for my wrong terminology) to be able to mount another raid disk?
Regards
Hans-Ole,
DK
Related Content
NETGEAR Academy

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