Volume Group creation
Alexander Skwar
listen at alexander.skwar.name
Sat Aug 5 08:36:01 UTC 2006
· 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