Volume Group creation (SOLVE)

Stephen Liu satimis at yahoo.com
Mon Aug 7 09:07:40 UTC 2006


Hi Alexander and folks,

Finally I have VG and LVs created on GUI and got Ubuntu-6.06-amd64
installed.  I'm now posinting this email from Ubuntu box.  There was no
problem on the HD.

The trick was after having VG and LVs created, I have to activate them
allocating them as /, /home, etc.  Otherwise I was unable to finish
partitioning.  On saving it complained / not found.  It took me
sometime to dicovery this trick.

I prefer to run command lines creating VG and LVs rather than clicking
around on screen with the mouse.

What commands shall I run additional to;

# vgange -a y /dev/VG/UbunuRoot
# vgange -a y /dev/VG/UbuntuHome
etc.
to allocated them /, /home, swap, etc. respectively under VG.

Please shed me some light.  I'll have another round later.  TIA.

B.R.
SL



--- Alexander Skwar <listen at alexander.skwar.name> wrote:

> · Stephen Liu <satimis at yahoo.com>:
> 
> > Hi Alexander,
> > 
> >> What about the beginning? Did it have anything of interest?
> > 
> > I can't see the begining.  Screen moved too fast.
> 
> $command 2>&1 | less
> 
> > Did it again omiting HD partitioning here.
> > 
> > # pvcreat /dev/hda2 && vgcreate VG /dev/hda2 && \
> >> lvcreate -L8G -nUbuntuRooot VG && lvcreate -L10g -nUbuntuHome VG
> && \
> >> lvcreate -L8g -nFC5Root VG && lvcreate -L10g -nFC5Home VG && \
> >> lvcreate -L15g -nDate VG
> > /dev/hda2: Size must exceed minimum of 1024 sectors.
> > Failed to setup physical volume "/dev/hda2"
> 
> Hm. Why /dev/hda2 if there are no partitions?
> 
> pvcreate /dev/hda && vgcreate VG /dev/hda && ....
> 
> > Besides what shall I put if I want to use the remaining space on
> last
> > LV, e.g. "lvcreate -L??? -nData VG"
> 
> You normally don't do that. One of the "key techniques" of using
> LVM in a successful way, is to make the logical volumes and thus
> the file systems only as big as needed, leaving unallocated space
> in the VG which can then, later, be allocated to a logical volume.
> 
> Alexander Skwar
> -- 
> Alte Leute sind gefährlich: Sie haben keine Angst mehr vor der 
> Zukunft (o. es ist ihnen völlig egal, was aus der Welt wird).
>                 -- George Bernhard Shaw




More information about the ubuntu-users mailing list