Code: Select all
root@odroid:~# sudo mount /mnt/old_hdd /dev/vg1/lv1
Code: Select all
sudo mount /dev/vg1/lv1 /mnt/old_hdd
BTW what is the model name of this QNAP?
Code: Select all
root@odroid:~# sudo mount /mnt/old_hdd /dev/vg1/lv1
Code: Select all
sudo mount /dev/vg1/lv1 /mnt/old_hdd
I actually tested it the other way around before the reboot and it said (I copied the entire SSH session to a text file):S.Haran wrote: ↑Tue Dec 10, 2019 1:16 pm Well file says there is a PV on md100 but lvdisplay and pvscan show nothing. Where before the reboot they did. So something changed. The only thing I see wrong is that you tried to use the LV Path device name as the mount point.
What you wanted was...Code: Select all
root@odroid:~# sudo mount /mnt/old_hdd /dev/vg1/lv1
At this point I would still do a scan for the data partition. If you scroll back in this thread for Niemand_01's posting you can see he used r-explorer as an alternative to testdisk to find the data partition offset to mount with. That may be faster.Code: Select all
sudo mount /dev/vg1/lv1 /mnt/old_hdd
BTW what is the model name of this QNAP?
Code: Select all
root@odroid:~# mount /dev/vg1/lv1 /mnt/old_hdd
mount: /mnt/old_hdd: special device /dev/vg1/lv1 does not exist.
Code: Select all
root@odroid:~# sudo mdadm -S /dev/md100
mdadm: stopped /dev/md100
Code: Select all
vgchange -ay
I did not, because it wasn't in the instructions.S.Haran wrote: ↑Tue Dec 10, 2019 2:18 pm Before the mount attempt did you activate the LV with...Code: Select all
vgchange -ay
Great insight! I wish these NAS vendors would warn people that data recovery is probably going to be impossible, before they configure their units using advanced RAID setups. I will continue to use RAID-1 only, thank you.philippelt wrote: ↑Tue Jan 22, 2019 3:14 am
Raid5 for home users in my opinion is just the shortest path to data disaster.
I had another attempt at this, and it seems that I cannot use the lv tools unless it is from a fresh installation; i.e. if lvm2 is currently installed on boot then I have to uninstall and reinstall it in the same session to be able to see my partition / data in the tools. When I did this and then used S.Haran's suggested command: "sudo vgchange -ay" then I was finally successful in being able to mount a readable EXT4 partition in the operating system. So I am very grateful to you S.Haran and philippelt for assisting me in recovering my data.S.Haran wrote: ↑Tue Dec 10, 2019 2:18 pm Before the mount attempt did you activate the LV with...Code: Select all
vgchange -ay
This worked for me. Don't forget to multiply the offset by the sector size to get the correct value.Niemand_01 wrote: ↑Wed Jun 19, 2019 3:12 am I also had the problem that my NAS died with a hardware failure.
What worked for me was using the program r-explorer: https://www.r-explorer.com/#ourproducts
This program manages to read through the full QNAP software stack mdadm -> drbd -> lvm -> ext4 in my case
Since I did not want to pay the licence fee, I used the following workaround. The Program displays the sector offset of the device and the sector size use this to do a mount command:
Where you need to change the offset to the value you computed and the device to the device of your hdd.Code: Select all
sudo mount -o offset=109710872576 /dev/sda /mnt/
A different option to get the correct offset is the program 'testdisk'. But this would take quite long so I could not test this, yet.
I don't agree.fredrogers wrote: ↑Tue Dec 10, 2019 2:51 pmGreat insight! I wish these NAS vendors would warn people that data recovery is probably going to be impossible, before they configure their units using advanced RAID setups.philippelt wrote: ↑Tue Jan 22, 2019 3:14 am
Raid5 for home users in my opinion is just the shortest path to data disaster.