The steps involved are pvcreate, vgscan, vgcreate, and lvcreate.  The
pvcreate operation labels the disks for use in a volume group.  Do not use
the UUID.  The vgscan operation finds the pv labels.  The vgcreate
operation takes those disks and adds them to a volume group.
So...
pvcreate /dev/sdc1 /dev/sdd1
vgscan
vgcreate vg01 /dev/sdc /dev/sdd

Now the fun starts, there are many options in lvcreate for striping,
mirroring, size, etc.  Read the man page.

A note about pvcreate, you can use existing partitions with pvcreate in
order to stripe some spare space into a bigger logical volume.

Also note that the disks and logical volumes will disappear after reboot.
Your OS may already have the steps built in to activate the volume groups,
but in case not here goes,
vgscan
vgchange -a y


On Fri, Feb 11, 2022 at 10:13 AM Rich Shepard <rshep...@appl-ecosys.com>
wrote:

> Two of the disks in the MediaSonic Probox have been partitioned and had
> ext4
> installed but are otherwise empty of data. Rather than having two separate
> disks for extra external storage I want to build a single LV.
>
> The LVM docs I've read use partitions on a single hdd. I did not explictly
> make a partion on each drive for the entire size; lsblk now showes them as:
> sdc      8:32   0   1.8T  0 disk  /mnt/data2
> sdd      8:48   0   1.8T  0 disk  /mnt/data3
> and the two UUIDs are:
> /dev/sdc: UUID="8f53ff0f-08cd-4bc1-888d-f6a38de11973" TYPE="ext4"
> /dev/sdd: UUID="08b2a158-a57b-4833-b6d8-9b69dfcf673b" TYPE="ext4"
>
> What steps should I take to use the UUIDs? Do I need to partition each
> group
> so there's an /dev/sdc1 and /dev/sdd1 and use the partition UUID when
> creating the Volume Group from the two hdds, or do I use the disk UUIDs?
> Are
> there other differences? I'd like to do this correctly the first time.
>
> Rich
>
>

Reply via email to