Volume Group creation

Alexander Skwar listen at alexander.skwar.name
Fri Aug 4 15:38:40 UTC 2006


Stephen Liu <satimis at yahoo.com>:

> Hi folks,
> 
> I tried to create a VG (Volume Group) with;
> 
> # vgcreate VG /dev/hda2
> it always complained 'No physical volume lable read from /dev/hda2'

Ok.

> Whether tab /dev/hda2 with '8e' will be the solution, by running;

Nope. You /should/ set part. type to 8e. But you *MUST* create a
"PV label" on the part. by running pvcreate

        pvcreate /dev/hda2

After that's done, you can "vgcreate VG /dev/hda2".

LVM doesn't care (much) about the part. types - it cares about
the label. The partition type is only in so far important, as it
allows (allowed?) Linux to automatically load the necessary modules
and all that. Ie. it is not STRICTLY required (but it's a damn
good idea to have a 8e part. type on a PV *G*).

Alexander Skwar
-- 
Too ripped.  Gotta go.






More information about the ubuntu-users mailing list