Step-by-step manual to partition HD with LVM

Stephen Liu satimis at yahoo.com
Sun Jul 30 12:15:36 UTC 2006


Hi Alexander,

Tks for your advice.


My interest is creating 2 VGs; VolGroups00 and VolGroup01 of equal
size.


/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


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

B.R.
SL



> · Stephen Liu <satimis at yahoo.com>:
> 
> > Hi folks,
> 
> Hi!
> 
> > I have been googling a while searching for document to partition HD
> > with LVM.  I found many of them there.  However I'm looking for a
> > step-by-step manual for Ubuntu-6.06.
> > 
> > During installation I found the guide-partition there but
> unfortunately
> > I could not control it to partition HD according to following
> config
> 
> Did you use the installer on the Live CD? If so, then that's
> allright - for some reason, the Ubuntu devs decided to not 
> include LVM support in this installer (beats me why they did
> that). Now, if you wish to use LVM, you've GOT to use the 
> alternative CD.
> 
> > 
> > HD - 40G
> > 
> > /dev/hda1 19G approx
> > VolGroups00
> > Primary LogVol / ext3 8G
> > extended LogVol /home ext3 10G
> > extebded LogVol swap ext3 1G
> > 
> > /dev/hda2 Free space 21G approx.
> > 
> > So finally I install the OS on the whole HD
> > 
> > 
> > # fdisk -l
> > 
> > Disk /dev/hda: 40.0 GB, 40027029504 bytes
> > 255 heads, 63 sectors/track, 4866 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> >    Device Boot      Start         End      Blocks   Id  System
> > /dev/hda1   *           1        4665    37471581   83  Linux
> > /dev/hda2            4666        4866     1614532+   5  Extended
> > /dev/hda5            4666        4866     1614501   82  Linux swap
> /
> > Solaris
> 
> Which partition do you plan to use as your PV - Physical Volume?
> /dev/hda1? If so, then you should change the partition type to
> 8e. Changing the partition type does NOT require that the partition
> be deleted.
> 
> > I'm prepared to start again.  Please advise.  TIA
> > 
> > Remark:  The HD shall be for dual boot Linux/Linux
> 
> Dual boot Linux/Linux? That's correct?
> 
> If so, then I doubt that there'll be a problem.
> 
> > 
> > B.R.
> > SL
> 
> Alexander Skwar
> -- 
> Nichts ist billiger als sittliche Entrüstung.
>                 -- Karl Kraus




More information about the ubuntu-users mailing list