Step-by-step manual to partition HD with LVM

Alexander Skwar listen at alexander.skwar.name
Sun Jul 30 13:40:14 UTC 2006


Hello!

· Stephen Liu <satimis at yahoo.com>:

> Hi Alexander,
> 
> Tks for your advice.
> 
> 
> My interest is creating 2 VGs; VolGroups00 and VolGroup01 of equal
> size.

Okay - but why do you want to do that? Do you have different hard drives?

> /dev/hda1 /boot/grub /boot ext3 255MB
> 
> /dev/hda2
> Linux-1
> VolGroups00
> Primary LogVol / 8G ext3
> extended LogVol /home ext3 10G
> extended LogVol swap 1G
> 
> /dev/hda3
> Linux-2
> VolGroups00
> Primary LogVol / 8G ext3
> extended LogVol /home ext3 10G
> swap partition will be shared

I don't understand that. What's that supposed to show? hda3 and
then something about a Primary LogVol? I don't get it.

> In my present situation I can tolerate as follows if not necessary to
> delete the partitions;
> 
> /dev/hda1 /boot/grub /boot ext3 255MB
> 
> /dev/hda2
> VolGroups00
> (for Linux-1)
> Primary LogVol / 8G ext3 
> extended LogVol /home ext3 10G
> extended LogVol swap 1G
> 
> (for Linux-2)
> Primary LogVol / 8G ext3
> extended LogVol /home ext3 10G
> swap partition will be shared
> 
> Please advise.  TIA

I don't understand.

You said, you want to  dual boot linux/linux. In this case, I'd 
create *ONE* Volume Group. I'd make this VG out of just ONE Physical
Volume /dev/hda2.

In the VG, I'd then create Logical Volumes as necessary.

Suppose you'd install Fedora Core 5 and Ubuntu, I'd create the
following LVs:

- FC5Root
- FC5USR
- FC5Var
- FC5Opt

- UbuntuRoot
- UbuntuUSR
- UbuntuVar
- UbuntuOpt

- Home
- Swap

I'd actually name them EXACTLY this way. 

Alexander Skwar
-- 
Ein Dichter hat zwar die schnellsten Irrtümer, aber auch dafür die
schnellsten Bekehrungen. Andere haben keinen Standort, um ihre Fehler
zu übersehen, die sich von einem Tal ins andere verlieren.
                -- Jean Paul (eig. Johann Paul Friedrich Richter)






More information about the ubuntu-users mailing list