How to recover/copy data off disks that were once part of a RAID1 (LVM on MD) in a 2-disk NAS?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have got a 2-disk NAS configured by the builtin software to be a RAID1 array. On this were two volumes (LVM on MD) with data. Now I replaced the two disks and wish to copy over the old data.
I have the two disks connected to a Linux PC via USB, now I want to mount the volumes. This is how it looks like:
# lsblk | tail -11
sdp 8:240 0 3.7T 0 disk
âÂÂâÂÂsdp1 8:241 0 1.9G 0 part
âÂÂâÂÂsdp2 8:242 0 1.9G 0 part
âÂÂâÂÂsdp3 8:243 0 3.7T 0 part
sdq 65:0 0 931.5G 0 disk
âÂÂâÂÂsdq1 65:1 0 1.9G 0 part
âÂÂâÂÂsdq2 65:2 0 1.9G 0 part
âÂÂâÂÂsdq3 65:3 0 927.7G 0 part
âÂÂâÂÂmd124 9:124 0 927.6G 0 raid1
âÂÂâÂÂvg_a8765432-vg_info_area 254:9 0 100M 0 lvm
âÂÂâÂÂvg_a8765432-lv_37654321 254:10 0 927.5G 0 lvm
Since I have not enough experience with MD and LVM would someone please tell me how to mount the ext4 partitions inside MD+LVM in order to recover the files?
There is no defect or data inconsistency in/on the old drives (no repair necessary). They will later be reformatted and reused in a different context. Nonetheless if I could mount them ro
now I would prefer that.
UPDATE: The data from sdq3
has been recovered (thanks @hauke-laging), so now sdp3
(another "linux_raid_member") is the remaining of the two data partitions.
lvm data-recovery raid mdadm
add a comment |Â
up vote
0
down vote
favorite
I have got a 2-disk NAS configured by the builtin software to be a RAID1 array. On this were two volumes (LVM on MD) with data. Now I replaced the two disks and wish to copy over the old data.
I have the two disks connected to a Linux PC via USB, now I want to mount the volumes. This is how it looks like:
# lsblk | tail -11
sdp 8:240 0 3.7T 0 disk
âÂÂâÂÂsdp1 8:241 0 1.9G 0 part
âÂÂâÂÂsdp2 8:242 0 1.9G 0 part
âÂÂâÂÂsdp3 8:243 0 3.7T 0 part
sdq 65:0 0 931.5G 0 disk
âÂÂâÂÂsdq1 65:1 0 1.9G 0 part
âÂÂâÂÂsdq2 65:2 0 1.9G 0 part
âÂÂâÂÂsdq3 65:3 0 927.7G 0 part
âÂÂâÂÂmd124 9:124 0 927.6G 0 raid1
âÂÂâÂÂvg_a8765432-vg_info_area 254:9 0 100M 0 lvm
âÂÂâÂÂvg_a8765432-lv_37654321 254:10 0 927.5G 0 lvm
Since I have not enough experience with MD and LVM would someone please tell me how to mount the ext4 partitions inside MD+LVM in order to recover the files?
There is no defect or data inconsistency in/on the old drives (no repair necessary). They will later be reformatted and reused in a different context. Nonetheless if I could mount them ro
now I would prefer that.
UPDATE: The data from sdq3
has been recovered (thanks @hauke-laging), so now sdp3
(another "linux_raid_member") is the remaining of the two data partitions.
lvm data-recovery raid mdadm
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have got a 2-disk NAS configured by the builtin software to be a RAID1 array. On this were two volumes (LVM on MD) with data. Now I replaced the two disks and wish to copy over the old data.
I have the two disks connected to a Linux PC via USB, now I want to mount the volumes. This is how it looks like:
# lsblk | tail -11
sdp 8:240 0 3.7T 0 disk
âÂÂâÂÂsdp1 8:241 0 1.9G 0 part
âÂÂâÂÂsdp2 8:242 0 1.9G 0 part
âÂÂâÂÂsdp3 8:243 0 3.7T 0 part
sdq 65:0 0 931.5G 0 disk
âÂÂâÂÂsdq1 65:1 0 1.9G 0 part
âÂÂâÂÂsdq2 65:2 0 1.9G 0 part
âÂÂâÂÂsdq3 65:3 0 927.7G 0 part
âÂÂâÂÂmd124 9:124 0 927.6G 0 raid1
âÂÂâÂÂvg_a8765432-vg_info_area 254:9 0 100M 0 lvm
âÂÂâÂÂvg_a8765432-lv_37654321 254:10 0 927.5G 0 lvm
Since I have not enough experience with MD and LVM would someone please tell me how to mount the ext4 partitions inside MD+LVM in order to recover the files?
There is no defect or data inconsistency in/on the old drives (no repair necessary). They will later be reformatted and reused in a different context. Nonetheless if I could mount them ro
now I would prefer that.
UPDATE: The data from sdq3
has been recovered (thanks @hauke-laging), so now sdp3
(another "linux_raid_member") is the remaining of the two data partitions.
lvm data-recovery raid mdadm
I have got a 2-disk NAS configured by the builtin software to be a RAID1 array. On this were two volumes (LVM on MD) with data. Now I replaced the two disks and wish to copy over the old data.
I have the two disks connected to a Linux PC via USB, now I want to mount the volumes. This is how it looks like:
# lsblk | tail -11
sdp 8:240 0 3.7T 0 disk
âÂÂâÂÂsdp1 8:241 0 1.9G 0 part
âÂÂâÂÂsdp2 8:242 0 1.9G 0 part
âÂÂâÂÂsdp3 8:243 0 3.7T 0 part
sdq 65:0 0 931.5G 0 disk
âÂÂâÂÂsdq1 65:1 0 1.9G 0 part
âÂÂâÂÂsdq2 65:2 0 1.9G 0 part
âÂÂâÂÂsdq3 65:3 0 927.7G 0 part
âÂÂâÂÂmd124 9:124 0 927.6G 0 raid1
âÂÂâÂÂvg_a8765432-vg_info_area 254:9 0 100M 0 lvm
âÂÂâÂÂvg_a8765432-lv_37654321 254:10 0 927.5G 0 lvm
Since I have not enough experience with MD and LVM would someone please tell me how to mount the ext4 partitions inside MD+LVM in order to recover the files?
There is no defect or data inconsistency in/on the old drives (no repair necessary). They will later be reformatted and reused in a different context. Nonetheless if I could mount them ro
now I would prefer that.
UPDATE: The data from sdq3
has been recovered (thanks @hauke-laging), so now sdp3
(another "linux_raid_member") is the remaining of the two data partitions.
lvm data-recovery raid mdadm
edited Jan 14 at 9:53
asked Jan 13 at 16:54
Ned64
2,44411035
2,44411035
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
mkdir --mode=000 /mnt/old_volume
mount -o ro /dev/vg_a8765432/lv_37654321 /mnt/old_volume
ls -l /mnt/old_volume
Thanks, that is indeed one of those elusive data partitions! Now, where is the other one hidden? Any ideas?
â Ned64
Jan 13 at 17:34
PS: It did work on the other disk, too, after swapping the USB enclosures. Apparently the Toshiba DWC130 enclosure "hides/invalidates" the MD and/or LVM data (maybe by re-mapping the sector/cluster size?).
â Ned64
Jan 14 at 16:27
add a comment |Â
up vote
0
down vote
If you do not need raparation for now ... just mount your old LVM media use cp or rsync to copy you data ... this is the "simple" method, and secondary yes it is a good idea to mount on ReadOnly during copy operation.
If I knew how to mount the partitions I would have done it already. So: How? Please list the commands, then it's an answer.
â Ned64
Jan 13 at 17:08
only you can say that, you only have access to your machine only you can list their names from pvs vgs & lvs to list the physical volumes, volumes group & logical volumes. then mount the LVM as usual mount commandcat /etc/fstab
if you need examples. typicalmount -o ro /dev/mapper/vgname/lvname /someemptydirecroty
else edit your first post with real question within all needed informations :)
â francois P
Jan 13 at 17:10
I edited the question. So, I need commands likemdadm
, possiblymdcreate
, thenpvscan
,lvscan
and possibly more to create some/dev/mapper/yippee_almost_done1
withext4
. The rest I can do!
â Ned64
Jan 13 at 17:21
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
mkdir --mode=000 /mnt/old_volume
mount -o ro /dev/vg_a8765432/lv_37654321 /mnt/old_volume
ls -l /mnt/old_volume
Thanks, that is indeed one of those elusive data partitions! Now, where is the other one hidden? Any ideas?
â Ned64
Jan 13 at 17:34
PS: It did work on the other disk, too, after swapping the USB enclosures. Apparently the Toshiba DWC130 enclosure "hides/invalidates" the MD and/or LVM data (maybe by re-mapping the sector/cluster size?).
â Ned64
Jan 14 at 16:27
add a comment |Â
up vote
1
down vote
accepted
mkdir --mode=000 /mnt/old_volume
mount -o ro /dev/vg_a8765432/lv_37654321 /mnt/old_volume
ls -l /mnt/old_volume
Thanks, that is indeed one of those elusive data partitions! Now, where is the other one hidden? Any ideas?
â Ned64
Jan 13 at 17:34
PS: It did work on the other disk, too, after swapping the USB enclosures. Apparently the Toshiba DWC130 enclosure "hides/invalidates" the MD and/or LVM data (maybe by re-mapping the sector/cluster size?).
â Ned64
Jan 14 at 16:27
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
mkdir --mode=000 /mnt/old_volume
mount -o ro /dev/vg_a8765432/lv_37654321 /mnt/old_volume
ls -l /mnt/old_volume
mkdir --mode=000 /mnt/old_volume
mount -o ro /dev/vg_a8765432/lv_37654321 /mnt/old_volume
ls -l /mnt/old_volume
answered Jan 13 at 17:27
Hauke Laging
53.4k1282130
53.4k1282130
Thanks, that is indeed one of those elusive data partitions! Now, where is the other one hidden? Any ideas?
â Ned64
Jan 13 at 17:34
PS: It did work on the other disk, too, after swapping the USB enclosures. Apparently the Toshiba DWC130 enclosure "hides/invalidates" the MD and/or LVM data (maybe by re-mapping the sector/cluster size?).
â Ned64
Jan 14 at 16:27
add a comment |Â
Thanks, that is indeed one of those elusive data partitions! Now, where is the other one hidden? Any ideas?
â Ned64
Jan 13 at 17:34
PS: It did work on the other disk, too, after swapping the USB enclosures. Apparently the Toshiba DWC130 enclosure "hides/invalidates" the MD and/or LVM data (maybe by re-mapping the sector/cluster size?).
â Ned64
Jan 14 at 16:27
Thanks, that is indeed one of those elusive data partitions! Now, where is the other one hidden? Any ideas?
â Ned64
Jan 13 at 17:34
Thanks, that is indeed one of those elusive data partitions! Now, where is the other one hidden? Any ideas?
â Ned64
Jan 13 at 17:34
PS: It did work on the other disk, too, after swapping the USB enclosures. Apparently the Toshiba DWC130 enclosure "hides/invalidates" the MD and/or LVM data (maybe by re-mapping the sector/cluster size?).
â Ned64
Jan 14 at 16:27
PS: It did work on the other disk, too, after swapping the USB enclosures. Apparently the Toshiba DWC130 enclosure "hides/invalidates" the MD and/or LVM data (maybe by re-mapping the sector/cluster size?).
â Ned64
Jan 14 at 16:27
add a comment |Â
up vote
0
down vote
If you do not need raparation for now ... just mount your old LVM media use cp or rsync to copy you data ... this is the "simple" method, and secondary yes it is a good idea to mount on ReadOnly during copy operation.
If I knew how to mount the partitions I would have done it already. So: How? Please list the commands, then it's an answer.
â Ned64
Jan 13 at 17:08
only you can say that, you only have access to your machine only you can list their names from pvs vgs & lvs to list the physical volumes, volumes group & logical volumes. then mount the LVM as usual mount commandcat /etc/fstab
if you need examples. typicalmount -o ro /dev/mapper/vgname/lvname /someemptydirecroty
else edit your first post with real question within all needed informations :)
â francois P
Jan 13 at 17:10
I edited the question. So, I need commands likemdadm
, possiblymdcreate
, thenpvscan
,lvscan
and possibly more to create some/dev/mapper/yippee_almost_done1
withext4
. The rest I can do!
â Ned64
Jan 13 at 17:21
add a comment |Â
up vote
0
down vote
If you do not need raparation for now ... just mount your old LVM media use cp or rsync to copy you data ... this is the "simple" method, and secondary yes it is a good idea to mount on ReadOnly during copy operation.
If I knew how to mount the partitions I would have done it already. So: How? Please list the commands, then it's an answer.
â Ned64
Jan 13 at 17:08
only you can say that, you only have access to your machine only you can list their names from pvs vgs & lvs to list the physical volumes, volumes group & logical volumes. then mount the LVM as usual mount commandcat /etc/fstab
if you need examples. typicalmount -o ro /dev/mapper/vgname/lvname /someemptydirecroty
else edit your first post with real question within all needed informations :)
â francois P
Jan 13 at 17:10
I edited the question. So, I need commands likemdadm
, possiblymdcreate
, thenpvscan
,lvscan
and possibly more to create some/dev/mapper/yippee_almost_done1
withext4
. The rest I can do!
â Ned64
Jan 13 at 17:21
add a comment |Â
up vote
0
down vote
up vote
0
down vote
If you do not need raparation for now ... just mount your old LVM media use cp or rsync to copy you data ... this is the "simple" method, and secondary yes it is a good idea to mount on ReadOnly during copy operation.
If you do not need raparation for now ... just mount your old LVM media use cp or rsync to copy you data ... this is the "simple" method, and secondary yes it is a good idea to mount on ReadOnly during copy operation.
answered Jan 13 at 17:05
francois P
914114
914114
If I knew how to mount the partitions I would have done it already. So: How? Please list the commands, then it's an answer.
â Ned64
Jan 13 at 17:08
only you can say that, you only have access to your machine only you can list their names from pvs vgs & lvs to list the physical volumes, volumes group & logical volumes. then mount the LVM as usual mount commandcat /etc/fstab
if you need examples. typicalmount -o ro /dev/mapper/vgname/lvname /someemptydirecroty
else edit your first post with real question within all needed informations :)
â francois P
Jan 13 at 17:10
I edited the question. So, I need commands likemdadm
, possiblymdcreate
, thenpvscan
,lvscan
and possibly more to create some/dev/mapper/yippee_almost_done1
withext4
. The rest I can do!
â Ned64
Jan 13 at 17:21
add a comment |Â
If I knew how to mount the partitions I would have done it already. So: How? Please list the commands, then it's an answer.
â Ned64
Jan 13 at 17:08
only you can say that, you only have access to your machine only you can list their names from pvs vgs & lvs to list the physical volumes, volumes group & logical volumes. then mount the LVM as usual mount commandcat /etc/fstab
if you need examples. typicalmount -o ro /dev/mapper/vgname/lvname /someemptydirecroty
else edit your first post with real question within all needed informations :)
â francois P
Jan 13 at 17:10
I edited the question. So, I need commands likemdadm
, possiblymdcreate
, thenpvscan
,lvscan
and possibly more to create some/dev/mapper/yippee_almost_done1
withext4
. The rest I can do!
â Ned64
Jan 13 at 17:21
If I knew how to mount the partitions I would have done it already. So: How? Please list the commands, then it's an answer.
â Ned64
Jan 13 at 17:08
If I knew how to mount the partitions I would have done it already. So: How? Please list the commands, then it's an answer.
â Ned64
Jan 13 at 17:08
only you can say that, you only have access to your machine only you can list their names from pvs vgs & lvs to list the physical volumes, volumes group & logical volumes. then mount the LVM as usual mount command
cat /etc/fstab
if you need examples. typical mount -o ro /dev/mapper/vgname/lvname /someemptydirecroty
else edit your first post with real question within all needed informations :)â francois P
Jan 13 at 17:10
only you can say that, you only have access to your machine only you can list their names from pvs vgs & lvs to list the physical volumes, volumes group & logical volumes. then mount the LVM as usual mount command
cat /etc/fstab
if you need examples. typical mount -o ro /dev/mapper/vgname/lvname /someemptydirecroty
else edit your first post with real question within all needed informations :)â francois P
Jan 13 at 17:10
I edited the question. So, I need commands like
mdadm
, possibly mdcreate
, then pvscan
, lvscan
and possibly more to create some /dev/mapper/yippee_almost_done1
with ext4
. The rest I can do!â Ned64
Jan 13 at 17:21
I edited the question. So, I need commands like
mdadm
, possibly mdcreate
, then pvscan
, lvscan
and possibly more to create some /dev/mapper/yippee_almost_done1
with ext4
. The rest I can do!â Ned64
Jan 13 at 17:21
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416853%2fhow-to-recover-copy-data-off-disks-that-were-once-part-of-a-raid1-lvm-on-md-in%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password