[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LVM and fdisk



On Fri, 2005-07-22 at 13:05 -0500, bentley rhodes wrote:
>     hey i'm trying to make an lvm with two usb flash drives (sda1 and 
> sdb1) , and i would like to use parted; i don't think parted can do it 
> though so i am not contemplating fdisk which i see has a LVM as 8e.  
> i've looked around on the net and i indeed see howto's on the matter.  
> and then i read in the lvm howto about using vgcreate, so i used it as 
> root.  so far i have seen
> 
> *# vgcreate my_volume_group /dev/hda1 /dev/hdb1
> 
> but i can't figure out how to make it work, it just says the volume doesn't exist:
>   No physical volume label read from /dev/sda1
>   /dev/sda1 not identified as an existing physical volume
>   Unable to add physical volume '/dev/sda1' to volume group 'VolGroup02'.
> 
> *
> 
> can anyone guide me through this?  the drives are going to be ext2,  
> /dev/sda1 /dev/sdb1.
> pvcreate won't let me do anything and neither will vgcreate.

Bentley,

The hierarchy of LVM objects is composed of three layers:

Highest: [LogicalVolume1] .. [LogicalVolumeN] .. <unassigned>]

Middle:  [--------------------- VolumeGroup0 ----------------]

Lowest:  [PhysicalVolume1]        ...        [PhysicalVolumeN]

In other words, you start with multiple physical volumes (partitions),
assemble them into a volume group, then create one or more logical
volumes (for filesystems) inside that vg. A volume group can be enlarged
with additional physical volumes, and logical volumes can be extended
using unassigned space in their volume group container.

The utilities for each layer begin with pv----, vg-----, and lv----. You
can get a quick list of them by running lvm at a shell prompt:

     # lvm help <utility>

where <utility>, if specified, is one of the utilities in the list. They
all have man pages.

-- Doc
Robert G. (Doc) Savage, BSE(EE), CISSP, RHCE | Fairview Heights, IL
Fedora Core 4 kernel 2.6.12-1.1398_FC4 on a P-III/M IBM Thinkpad A22p
            ** Bob Costas for Baseball Commissioner **


-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.