Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, January 26, 2021 9:47 AM, Rich Shepard <[email protected]>
wrote:
> On Tue, 26 Jan 2021, Reid wrote:
>
> > Combining them into one volume group with three logical volumes would be
> > reasonable. You don't want to use both drives for a single logical volume,
> > if you want them to hold three separate filesystems.
>
> Reid,
>
> I'm still not used to the appropriate terminology. There will be two
> physical volumes, one physical group, and three logical volumes (one for
> each file system).
No problem. Think of it as "combine into a pool and then split the way you
want." There are three main terms to know: physical volume (PV), volume group
(VG), logical volume (LV).
You combine one or more "physical volumes" into a "volume group." The volume
group then acts as a pool of storage; you can't do anything with it directly.
You can carve up the volume group into one or more "logical volumes" of
whatever size you choose. These logical volumes act basically like physical
disks, accessible via /dev/<vg>/<lv> or /dev/mapper/<vg>-<lv>.
For example, let's say that you have two physical disks of 4 TB each, but you
want three filesystems of 5 TB, 1 TB, and 1 TB. You would run `pvcreate` on
each of them to turn them into LVM physical volumes. Then you would run
`vgcreate my_vg /dev/disk1 /dev/disk2` to combine them into a volume group
called my_vg, with 7 TB of space. Then you'd carve up the volume group into
logical volumes with `lvcreate my_vg -n my_lv1 -L 5T; lvcreate my_vg -n my_lv2
-L 1T; lvcreate my_vg -n my_lv3 -L 1T`. Now, you have three logical volumes at
/dev/my_vg/my_lv{1,2,3} of the sizes you need. Make the filesystems and mount
'em.
> That better? :-)
>
> Thanks,
>
> Rich
>
> PLUG: https://pdxlinux.org
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
_______________________________________________
PLUG: https://pdxlinux.org
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug