Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Split up linear RAID
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
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Fri Sep 29, 2006 1:35 pm    Post subject: Split up linear RAID Reply with quote

Hi.

I have a linear RAID made with mdadm, but i have decided to remove it, so i wonder if its possible to split the RAID back into 2 disks.
Since its only a linear RAID, it should be possible, but the partitions is of partition type RAID, so i cant just mount the partitions as /dev/sda6 and /dev/sdb1 instead of /dev/md0

Any ideas ?
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
thyrihad
n00b
n00b


Joined: 17 Jun 2003
Posts: 45

PostPosted: Fri Sep 29, 2006 5:18 pm    Post subject: Reply with quote

It's nothing to do with the partition types. When you created a linear raid device, then created a filesystem on that device, the filesystem set itself up to span that whole device (2 disks). So, you have the initial part of the filesystem on one device, and the latter half on the other.

This may be a possibility:

If your filesystem supports resizing, you may be able to resize it down to the exact size (or less), of the smallest hard disk (or the first hard disk, if you know which one that is), then remount it as a normal disk. If mount is bitching about the partition type, simply change it to 0x83 from a livecd - you can always change it back.

I would not personally trust this method, because I believe a device created as an md device has other data at the start before the filesystem starts.
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