Friday, July 11, 2014

How can I mount LVM partition in linux?



[root@akwal ~]# pvscan
it will show like this..
[root@akwal ~]# pvscan  PV /dev/sdf2   VG VolGroup00   lvm2 [232.78 GiB / 0    free]  Total: 1 [232.78 GiB] / in use: 1 [232.78 GiB] / in no VG: 0 [0   ]
Now check Volume group using this command

[root@akwal ~]# vgscan
it will show like this[root@akwal ~]# vgscan  Reading all physical volumes.  This may take a while...  Found volume group "VolGroup00" using metadata type lvm2
Now activate the  Volume
[root@akwal ~]# vgchange -ay VolGroup00
it will show like this
[root@akwal ~]# vgchange -ay VolGroup00  2 logical volume(s) in volume group "VolGroup00" now active
Now mount it on your desire Location
[root@akwal ~]# mount /dev/VolGroup00/LogVol00 /mnt

it will mount..
Enjoy!...



0 comments: