First create a single partition (probably c0d1p0
) using fdisk /dev/cciss/c0d1
:
- Press
n
to create a new partition,
then select the defaults that span
the whole disk.
- Press
t
to select the partition
type. Use fd
- this selects the type "Linux LVM".
Then on to configure LVM:
pvcreate /dev/cciss/c0d1p0 # creates the physical volume - akin to formatting
vgcreate vgname /dev/cciss/c0d1p0 # creates the 'vgname' volume group
lvcreate -L 7000G -n lv1 vgname # creates the first logical volume
lvcreate -L 7000G -n lv2 vgname # creates the second logical volume
mkfs.xfs /dev/vgname/lv1 # creates the first fileystem
mkfs.xfs /dev/vgname/lv2 # creates the second filesystem
You can also create the physical volume directly on top of the raw disk; in that case use c0d1
instead of c1d1p0
. It's probably better to partition it first, though, if possible.
If you want to skip LVM you can also just use fdisk to create two partitions (use +7000G when queried about the limit to only span the first half of the disk with the first partition) and create the filesystems on top of them:
mkfs.xfs /dev/cciss/c0d1p0 # creates the first fileystem
mkfs.xfs /dev/cciss/c0d1p1 # creates the second filesystem
Of course you'll lose the LVM flexibility.