NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

tmr0's avatar
tmr0
Aspirant
Aug 27, 2019
Solved

Recover Destroyed Volume

Hello   I had a single 8TB disk in channel 1 which provided a single volume. Yesterday I added three new disks each 3TB in size. I disabled X-RAID and created a new volume with the three new disks ...
  • tmr0's avatar
    tmr0
    Aug 28, 2019

    If you are reading this post because the same situation has happened to you, fear not; the RAID1 data (BTRFS) is still on the disk intact even after you DESTROY the volume. Here is the solution that enabled me to recover all data from the deleted volume which was surprisingly simple:

     

    Note that I used an external SATA dock to connect the disk containing the deleted volume as I wanted to use the four disk trays for a new RAID5 volume. If you only have two disks, the original disk with the deleted volume and a replacement disk for data recovery, then you do not need to use an external SATA dock and can skip steps 4-7.

     

    1. Don't panic.

    2. Don't expect NETGEAR technical support to provide any data recovery services or provide any information that would enable you to recover the data yourself.

    3. Insert replacement disk(s) and create new volume with sufficient capacity for the recovered data and make sure you name the new volume differently to the name of the deleted volume. Important: when creating a new volume with replacement disk(s) do not include the disk containing the deleted volume. This process will also create a copy of the NAS boot partition (including NAS system configuration) on replacement disk(s). 

    4. Remove the disk containing the deleted volume from the NAS.

    5. Shut down the NAS.

    6. Insert the disk containing the deleted volume into a SATA dock (I used something like this) and connect the dock to the NAS using an eSATA cable (much quicker than a USB2 connection).

    7. Boot up the NAS.

    8. Enable SSH service.

    9. Connect to NAS via SSH (I used PuTTY) and login with NAS admin account.

    10. Elevate to root privilages using the "su" command and the admin password. 

    11. List the contents of the root with the command "ls -al /" you should see both the new volume and the deleted volume which for this example I will call "NewVolume" and "DeletedVolume" respectively.

    12. Simply copy the contents of "DeletedVolume" to "NewVolume" with a command like "cp -v -p -R /DeletedVolume/* /NewVolume"
      Note that file and directory names are case-sensitive.

    13. The copy time will vary according to how much data you have. For example 7.5TB of files took approximately 9 hours.
      You can estimate the transfer time using this calculator and a transfer rate of 220MBps for SATA connection.

    14. After the data copy is complete, shut down the NAS.

    15. Remove the external disk connected via eSATA cable.

    16. Boot up the NAS.

    17. All of your files and directories are restored on the new volume.

    18. Recreate any non-default shares using NAS managment GUI.

     

    That's it... happy days :)

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More