Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Help Reconstructing LVM array
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Barvinok
n00b
n00b


Joined: 29 Sep 2013
Posts: 28
Location: Ukraine

PostPosted: Mon Apr 21, 2014 7:00 pm    Post subject: [SOLVED] Help Reconstructing LVM array Reply with quote

Hi,

My home NAS was built from some "scrap details" such as two 250 GB IDE drives + one 1 TB SATA drive.
All drives used GPT and were LVMed in RAID0 manner to form single joined ~1.5TB partition. All worked well.

Now the mobo had died. The drives are fine though.
The replacement mobo came without an IDE interface. I've got an IDE-to-USB adapter and now I'm slowly dumping the GPT partitions from both IDE drives to some other SATA drives as binary image files.
By tomorrow, I'll have the system booted from LiveCD, seeing the aforementioned 1TB SATA natively and seeing two images of the drives used to form LVM array with the big one.

My goal is to reconstruct the LVM array to be able to copy some sensitive data which may (and will) span all three drives.

So, how do I tell LVM to use the drive image files instead of an actual drive?
_________________
Unlike reality, stupidity is inescapable


Last edited by Barvinok on Wed Apr 23, 2014 5:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 719
Location: Arrakis

PostPosted: Mon Apr 21, 2014 8:04 pm    Post subject: Reply with quote

if you want to continue to use the IDE disks, you can get ide/sata adaptors to plug an ide drive into a sata motherboard for about 10$USD each
_________________
A process cannot be understood by stopping it. Understanding must move with the flow of the process, must join it and flow with it.

-The First Law of Mentat
Back to top
View user's profile Send private message
Barvinok
n00b
n00b


Joined: 29 Sep 2013
Posts: 28
Location: Ukraine

PostPosted: Mon Apr 21, 2014 8:09 pm    Post subject: Reply with quote

djdunn wrote:
if you want to continue to use the IDE disks, you can get ide/sata adaptors to plug an ide drive into a sata motherboard for about 10$USD each

I thought I was pretty clear on what I want. Deliberately inserting the bottleneck into disk subsystem on a multimedia server is not it.
_________________
Unlike reality, stupidity is inescapable


Last edited by Barvinok on Mon Apr 21, 2014 8:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33772
Location: 56N 3W

PostPosted: Mon Apr 21, 2014 8:39 pm    Post subject: Reply with quote

Barvinok,

Your kernel will need loop support.
Now you can use losetup to get a /dev entry for each partition in the image files.

I don't know if vgchange -ay will see the loop devices though.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Barvinok
n00b
n00b


Joined: 29 Sep 2013
Posts: 28
Location: Ukraine

PostPosted: Wed Apr 23, 2014 5:39 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Barvinok,
Your kernel will need loop support.
Now you can use losetup to get a /dev entry for each partition in the image files.
I don't know if vgchange -ay will see the loop devices though.

Well it did see them and worked the way I expected.
Thank you :)
_________________
Unlike reality, stupidity is inescapable
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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