Bob and the Knowledge Factory / Linux / Installations & service configurations / Steps to mount a linux LVM volume
Steps to mount a linux LVM volume |
|||||
The "Linux LVM" partition is NOT mounted in the same way as you mount a partition using a standard Linux file system(eg. ext2, ext3). In this example we are going to see how to mount the Linux LVM partition "/dev/sdd2". # You can check the disk that is using the LVM volume by using the command fdisk -l [root@xxx ~]# fdisk -l Device Boot Start End Blocks Id System /dev/sdd1 * 1 13 104391 83 Linux /dev/sdd2 14 91201 732467610 8e Linux LVM # You can run the command "pvs" to get the volume group. [root@xxx ~]# pvs PV VG Fmt Attr PSize PFree /dev/sdd2 VolGroup00 lvm2 a- 698.53G 352.00M The volume group here is VolGroup00 # Then you can run "lvdisplay /dev/<volume group>" This will display the list of logical volumes in the volume group [root@xxx ~]# lvdisplay /dev/VolGroup00 --- Logical volume --- LV Name /dev/VolGroup00/LogVol00 VG Name VolGroup00 LV UUID lw3n97-QEcu-BnRD-OeS8-2KdO-orG7-wIIKJf LV Write Access read/write LV Status available # open 0 LV Size 696.25 GB Current LE 22280 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:0 --- Logical volume --- LV Name /dev/VolGroup00/LogVol01 VG Name VolGroup00 LV UUID dcAuav-MX42-ixLh-sXU2-nX1s-KwIz-7rLWej LV Write Access read/write LV Status available # open 0 LV Size 1.94 GB Current LE 62 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:1 # Mount the partition There are two volumes here: LogVol00 and LogVol01. Usually the second volume will be for swap. If LogVol01 is a swap space, you will get an error while mounting "/dev/VolGroup00/LogVol01". mount /dev/VolGroup00/LogVol00 /test The syntax is mount <LV Name> mountpoint |
|||||