View previous topic :: View next topic |
Author |
Message |
robinmarlow Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Mar 2004 Posts: 167
|
Posted: Tue Dec 04, 2007 7:39 am Post subject: LVM recovery - will this work? (solved) |
|
|
Hello?
My poor Myth box's nice new Samsung 500Gb spinpoint is failing.
I am awaiting a new one in the post this morning to replace it, but am trying to figure out how to get at the data.
The samsung 500 is part of an LVM with one other disk & is partitioned (i think) into two 250Gb parts. (sdb1 sdb2)
I got a bit carried away when buying the new disk & got a 750Gb one.
I was planning to partition that into 250Gb chunks then ddrescue sdb1 & sdb2 straight over to.
Then make a third lvm partition in the space left over.
Do you think this will work?
The alternative is to add the new drive to the volume group and then migrate the data off the dodgy drive,
but i'm not sure about how well this will cope with errors. Also annoyingly my myth box only has 2 sata
ports so i'll have to migrate the volume to a different PC beofre doing it!
Many Thanks,
Robin
Last edited by robinmarlow on Wed Dec 05, 2007 10:43 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
robinmarlow Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Mar 2004 Posts: 167
|
Posted: Wed Dec 05, 2007 10:42 pm Post subject: |
|
|
Well to answer my ovn question... yes.
I partitioned the 750Gb drive into 500 & 250. then just ddrescue /dev/sd(broken)1 to /dev/sd(new)1
then it worked. it complained a bit about duplicate volumes, but not too hard.
But i felt that it was a bit ugly dividing the drive up that way,
so then deleted it all and added the new drive as an extra physical volume.
Then simply migrated the stuff off the broken drive and removed it from the volume group.
Now just need to figure out why the size of the volume group is so much bigger that what df says it is.....
Robin |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|