Skip to contentSkip to conversation

GPT on MD raid

DISCUSSION Jeremy Sanders 4 participants 5 messages Apr 18, 2011 MD RAID

lore
Share & tools
lore
#0 lore raw

Hi - I was thinking of using a GPT partition on top of a MD raid device. It occurs to me that because GPT also puts data at the end of the device, it might get confused if the raid device is resized by adding more drives, etc.

Has anyone tried this? Should it work? How should the GPT header get moved to the end of the raid device? Will parted fix it?

Should I ditch this idea and delve into the complexities of LVM?

Thanks

Jeremy

#1 lore raw
Quoted 6 lines · Jeremy Sanders

Hi - I was thinking of using a GPT partition on top of a MD raid device. It occurs to me that because GPT also puts data at the end of the device, it might get confused if the raid device is resized by adding more drives, etc.

Has anyone tried this? Should it work? How should the GPT header get moved to the end of the raid device? Will parted fix it?

I've parted fix cases of this in the past, but I don't know how robust it is.

Quoted 1 line

Should I ditch this idea and delve into the complexities of LVM?

Yes, in my not-entirely-humble opinion. I suspect you'll find LVM isn't all that complex, at least if all you are trying to do is replace GPT. And you get some serious advantages without extra effort, like non-contiguous volumes and snapshotting.

While my copy of gparted won't work with it, there are gui tools to manage LVM. I use kvpm on my gentoo/KDE laptop.

Quoted 2 lines

Thanks

HTH,

Phil

#3 lore raw
In reply to Jeremy Sanders
Quoted 1 line · Jeremy Sanders

Should I ditch this idea and delve into the complexities of LVM?

Yes. LVM isn't all that complex and a lot more flexible, plus you can do "everything" online without having to unmount filesystems to re-partition.

Signature · 1 line
Mikael Abrahamsson    email: [email protected]
#4 lore raw
In reply to Jeremy Sanders
Quoted 8 lines · On Mon, 18 Apr 2011 17:11:56 +0100 Jeremy Sanders <[email protected]>…

Hi - I was thinking of using a GPT partition on top of a MD raid device. It occurs to me that because GPT also puts data at the end of the device, it might get confused if the raid device is resized by adding more drives, etc.

Has anyone tried this? Should it work? How should the GPT header get moved to the end of the raid device? Will parted fix it?

Should I ditch this idea and delve into the complexities of LVM?

I'd suggest that you reconsider if you really need to partition a single mdraid device, or maybe it would be better to create several mdraid devices (on regular partitions) for different needs, possibly with differing shapes and settings. E.g. over the same set of disks I use three RAIDs, two small arrays for boot and root FS, and the rest for data.

Signature · 2 lines
With respect,
Roman
#2 lore raw
In reply to Phil Turmel
Quoted 8 lines · Phil Turmel
Quoted 6 lines · Jeremy Sanders

Hi - I was thinking of using a GPT partition on top of a MD raid device. It occurs to me that because GPT also puts data at the end of the device, it might get confused if the raid device is resized by adding more drives, etc.

Has anyone tried this? Should it work? How should the GPT header get moved to the end of the raid device? Will parted fix it?

Quoted 7 lines

I've parted fix cases of this in the past, but I don't know how robust it is.

Quoted 1 line

Should I ditch this idea and delve into the complexities of LVM?

Yes, in my not-entirely-humble opinion. I suspect you'll find LVM isn't all that complex, at least if all you are trying to do is replace GPT. And you get some serious advantages without extra effort, like non-contiguous volumes and snapshotting.

While my copy of gparted won't work with it, there are gui tools to manage LVM. I use kvpm on my gentoo/KDE laptop.

Thanks for all the replies - I will look at lvm...

Jeremy