How to Mount SDB directly or using LVM partitions on SDA?

How to Mount SDB directly or using LVM partitions on SDA?

You can directly create a file system on /dev/sdb and then mount it in your desired directory. Basically: If you want to use LVM anyway, you can create a new physical volume, then add it to the volume group present in your system (VolGroup), create a logical volume and then use it the same way explained above:

How do you create a LVM in vgcreate?

To create a LVM, we need to run through the following steps. Select the physical storage devices for LVM; Create the Volume Group from Physical Volumes; Create Logical Volumes from Volume Group; Select the Physical Storage Devices for LVM – Use pvcreate, pvscan, pvdisplay Commands

How to create a volume group in Linux with LVM?

First, we will need to name the group. For test purposes, I will call our group LVMvgTEST. Now that we have decided on a name, let’s use a single command to add both physical volumes to the new volume group. This command needs to be run as root or with sudo. You can see in the output that the volume group was successfully created.

Which is the easiest way to use LVM?

If you want to use LVM anyway, you can create a new physical volume, then add it to the volume group present in your system (VolGroup), create a logical volume and then use it the same way explained above: The first approach is the easy one, and the second one gives you the advantages of LVM.

How to create LVM volume groups for multiple devices?

You can pass in multiple devices at once: This should write an LVM header on all of the target devices to mark them as LVM physical volumes. To create a new volume group from LVM physical volumes, use the vgcreate command. You will have to provide a volume group name, followed by at least one LVM physical volume:

How to mark storage devices as LVM physical volumes?

To mark the storage devices as LVM physical volumes, use pvcreate. You can pass in multiple devices at once: This should write an LVM header on all of the target devices to mark them as LVM physical volumes. To create a new volume group from LVM physical volumes, use the vgcreate command.

Do you need to create logical volume to Mount SDB?

I think that what you’re asking for is to know if you need to create a logical volume in order to use the device /dev/sdb. If that’s the question, no, you don’t need to use LVM at all. You can directly create a file system on /dev/sdb and then mount it in your desired directory. Basically: