LVM partitions are generally found in U disk, Linux systems access these partitions through the U disk. If you want Linux to access these partitions directly, you can mount them directly on a Linux system. This article will introduce the method of mounting these partitions on a Linux system.
LVM is a logical volume management tool that allows you to manage disk space using the concepts of logical volumes and volume groups. The biggest benefit of using LVM over traditional partitions is the flexibility to allocate space for users and programs regardless of the size of each physical disk.
In LVM, the physical storage that created the logical partition is a traditional partition (for example: /dev/sda2, /dev/sdb1). These partitions must be initialized to “ physical volume PV” plus the volume label (eg, "Linux LVM") to make them available in LVM. Once the partition is marked as being partitioned by LVM, you cannot mount it directly with the mount command.
If you try to mount an LVM partition (such as /dev/sdb2), you will get the following error.
$ mount /dev /sdb2 /mnt mount: unknown filesystem type & lsquo; LVM2_member & rsquo;
To properly mount the LVM partition, you must mount the partition created in & ldquo; Logical volume”. Here's how to do it.
First, check the available volume groups with the following command:
$ sudo pvs PV VG Fmt Attr PSize PFree /dev/sdb2 vg_ezsetupsystem40a8f02fadd0 lvm2 a-- 237.60g 0
The name of the physical volume and the name of the volume group are below the PV and VG columns, respectively. In this case, there is only one group created under dev/sdb2 “vg_ezsetupsystem40a8f02fadd0”.
Next, check the logical volume that exists in the volume group, use the lvdisplay command:
$ sudo lvdisplay "volume-group-name"
Use lvdisplay to display the available volumes Information (eg device name, volume name, volume size, etc.).
$ sudo lvdisplay /dev/vg_ezsetupsystem40a8f02fadd0
--- Logical volume ---
LV Path /dev/vg_ezsetupsystem40a8f02fadd0/lv_root
LV Name lv_root
VG Name vg_ezsetupsystem40a8f02fadd0
LV UUID imygta-P2rv-2SMU-5ugQ-g99D-A0Cb-m31eet
LV Write Access read/write
LV Creation Host, time livecd.centos, 2015-03-16 18:38:18 -0400
LV Status available
# open 0
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block Device 252:0 Previous12Next page Total 2 pages
Due to work needs, a user needs to install a Linux server. Since the Ubuntu U disk boot disk has bee
zoneminder is a free open source video surveillance software under Linux. Many peop
RHCS is a cluster in Red Hat system, which integrates many useful tools in RHCS. These tools of Red
In the Linux system, the top command can be used to monitor the status of the process, or to modify
Ubuntu how to access samba server without password
How to use the du and df commands to clear large files under Linux?
Summary of zypper command usage in SUSE Linux system
Linux implementation of the find command error path has done what to do?
How to install and configure Salt
Ubuntu 12.04 installation Xen FAQ and solution
Ubuntu 14.04 install java method
Ubuntu how to set up system update reminder
Linux installation of the appropriate kernel header file method
21 steps Win2008 remote management of Hyper-V server
Win7 open browser prompts "There is a runtime error" how to solve?
How to solve the invalid DOS command in the Win7 command prompt environment?
Using Windows7 disk cleaning function to improve computer performance
Solution Can not networked at Marvell NIC win10
Win10 system exception How to view the computer problem report?
Win10 upgrade tips how to close
Cortana's new feature: Scan user emails to ensure users keep their credits
XP system computer desktop icon with blue shadows how to get rid of?