NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
dieman
May 08, 2022Aspirant
RN102: any way to access data on a 'dead or inactive' volume after factory reset?
A factory reset has been performed on RN102 with a disk pulled out of the bay. Now the RN responds again, but, the volume is, of course, not recognised anymore. The system detects it as 'dead or ina...
StephenB
May 08, 2022Guru - Experienced User
dieman wrote:
A factory reset has been performed on RN102 with a disk pulled out of the bay.
Is there any way to have the volume on that disk recognised by the RN again?
You can try powering up the NAS with only that disk inserted. Then either copy off the data, or zero the other disk and re-insert it.
FWIW, that general approach doesn't accomplish anything - the factory default just formats the disks, and does a fresh factory install on them. And there is no way to sync the old volume to the new one.
Sandshark
May 10, 2022Sensei
If you want to install both drives and copy from one to the other, there is a way via volume exportation. But if you used the default name (data) for both volumes, then that option isn't available right away. If you've not put anything of value on the new volume yet, you can just recreate the volume with a new name. These are the steps:
- Destroy and re-create the main volume on the new drive with a name other than data or the name of any volume on the old one. Skip this step if the new volume already has a unique name.
- Power down, remove that drive, and set it aside.
- Boot with the drive from the old volume.
- If there are any files in user home folders, copy or move them to a normal share. If there are any shares named the same as on the new volume, re-name them. If you forget this step, the files will be accessible via SSH, but it's easier if you do it now.
- EXPORT that volume. NOTE: After you've done this, you cannot use this volume as a primary any more, so it is best to have a backup of the files before hand, just in case things go sideways. (There is a convoluted way to get it back to primary, but let's avoid that.)
- Power down and re-insert the new volume along with the old. Upon power-on the old volume will be imported to the system as a secondary volume.
- Now you can move your files.
- Once done, power down and remove the original drive.
- Power back up. The system will complain about the missing volume, but that's OK. Because the next step is to DESTROY that volume. Note that nothing actually happens to the volume, it can be re-imported later, since the volume was removed when destroyed. (All the destroy does in this case is make the NAS "forget" the volume.)
Now you're all set.
- diemanMay 10, 2022Aspirant
Hi Sandshark,
Thank you, this looks like a solution for migrating the primary drive. I shall try it out.
Do you also have a solution for migrating the secondary drive? I mean, there is always the option of using an external USB drive as a "bucket", but is there a smarter way?
The only possibility I can think of is by somehow designating the old secondary drive a primary - this way one would arrive at a configuration in which the data can be easily copied. But is this possible at all with ReadyNAS - designate secondary drive as primary?
- SandsharkMay 10, 2022Sensei
BTW, I am assuming your old volume was RAID1/XRAID. If not, disregard.
I'm not sure I'm following what you are asking. Are you wanting the old one to be primary and the new secondary initially, then change the new one to primary? I don't see how that'll get you anywhere better than the process above. It might be a little easier to move the files, and you retain most of your configuration (installed apps excluded), but I have seen it cause issues because the OS doesn't automatically migrate any home folders or apps, and I've seen it fail to even create a new home and/or apps folder. There is another user with an open thread that seems to have just that issue with apps.
But if that's what you want, this is how:
- Boot with just the drive from the old volume. The NAS will complain that the volume is degraded (not redundant).
- Turn off XRAID. If you skip this step, it'll use the new drive to mirror the old, and you'll be back where you started.
- Insert the new drive with power on, format it, and create a secondary volume.
- Copy/move the files.
- EXPORT the old volume. This step is supposed to make the secondary the new primary, but I've seen it not work fully, so you could have to go in via SSH and fix things. How often, I don't know. But I ran a dozen or so experiments with exporting and saw it twice. Now, the fact that I didn't start fresh between each experiment might have something to do with that.
If you have apps you need to migrate, see How-to-save-your-apps-when-destroying-your-main-volume-OS6 and follow those instructions before step 5. Unless you have a big database to retain or something, it's easier to just re-install after the export. But that also gives some basic knowledge on the apps share you'll need if the export fails to create a new apps share on the new primary volume.
I should have referred to my notes, as I did make an error in my first set of instructions:
Once the old volume is imported as a secondary volume, it can then be used alone as a primary if needed. If you want to re-introduce it as a secondary, you have to do the export thing again.
Instead of destroying the removed volume, you could export it before removal. That's when it cannot be used as a primary again (unless imported by a new primary first).
I also failed to mention that with the old drive being only one from a RAID1, the NAS will complain about it being degraded. But that only means not redundant, and you probably expected that.
- diemanMay 10, 2022Aspirant
Hi,
I am in a non-RAID configuration - 2 independent drives/volumes. My ultimate goal is to replace each of the two HDDs with an SSDs and migrate all data from each HDD to respective SSD.
What you described in your previous post should work for replacing/migrating the primary drive of a two-drive NAS - I haven't tried it out yet, but by the look of it this is what I needed, so thanks again. But there is the second part to this story - replacing the secondary drive.
Suppose I've replaced the primary drive in accordance with your recommendation. Now I have:
- 1 primary SSD
- 1 primary HDD
- 1 secondary HDD
- 1 clean SSD formatted as secondary. So far so good.
So how would you go about copying data from your secondary HDD to the clean secondary SSD? You cannot insert two secondary drives - old and new - at the same time - the system won't recognise the volumes. One drive must be primary. But then you cannot copy data between the NAS drives because either your source or your destination drive is out of NAS. The simplest solution is to use an external USB drive, copy the data from the old secondary onto that USB drive, then replace the old secondary by the new secondary and pour data from the external USB to the new secondary drive.
I was just wondering whether there was a more elegant solution whereby one could copy the data directly from the old secondary to the new secondary, similarly to what we did for the primary drives.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!