Contact Us
 
 
 
 
  Browse by category :
 

Bob and the Knowledge Factory / Linux / Installations & service configurations / Steps to mount a linux LVM volume

Steps to mount a linux LVM volume

Add comment
Views: 4022
Votes: 5
Comments: 0
Posted: 01 Aug, 2008
by: Helen S.
Updated: 30 Dec, 2008
by: Brijesh B.

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
Others in this Category
document Mount LVM Partitioned Disk
document Password Protect Directory in Lighttpd
document Lighty Installation:-
document How to install VNC Server.
document Uninstalling VMware Workstation on a Linux Host.
document Tomcat Installation
document Reinstall Grub Boot Loader
document Enable IPTABLES support in Kernel(2.6.18)
document "ffmpeg headers not found" error while installing ffmpeg in cPanel servers.
document Install Memcache
document Install VNC in VPS server with Gnome
document Create a swap file in Linux partition
document Resizing partitions using LVM
document Zabbix produced error after its installation
document Round Cube Installation
document Install Mytop in Plesk servers
document Useful Kernel manipulation commands
document Installing Xen in CentOS
document Change priority of swap files
document Disable journaling in ext3 file system
document Install X window system using Yum
document FFmpeg showing sws_getContext error
document Install java 1.4.0 or 1.5.0 as per your choice in Linux
document Installing XCache on Linux machines
document Fixing time drift in the servers (syncing with time servers)
document Managing the package manager in Debian/Ubuntu
document Enable quota in the server
document Postgresql Installation in CentOS/RHEL linux server
document Turn on DMA mode on a hard drive
document Install Shoutcast
document FileSystem Recovery Methods
document How do I set up a pop3 server in Red Hat Enterprise Linux 4?
document Extracting a single file from a tar.gz
document How to disable ping to a server?
document Is free a clear indication of memory usage ?
document Increasing the number of semaphores on a Linux box
document Disable direct root login via ssh
document Problem with mounting USB flash drive
document SAR or Sysstat
document SNMP community user
document Yum errors
document FFmpeg error
document How to SFTP if the default ssh port is changed
document How to Create WAP Server
document Network Information System
document How to configure shoutcase Service
document Sqlite Installation for php4
document How to install Cpanel Proxy
document How to install APC (Alternative PHP Cache)
document WebCalendar Error
document Mambo Error
document [Solved] How to install nrpe client
document [Solved] How to install YUM using rpm



RSS
Content is available under Creative Commons Attribution-Share Alike 3.0 License.