Linux LVM partition

  

Computer shop news today, a network server system problems, then re-find a machine installed Linux system, the original old machine hard disk mounted to the new system, this time The problem is coming.

First use fdisk -l to view all hard disks:

fdisk -l

Disk /dev/hdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 Cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System /dev/hdb1 * 1 13 104391 83 Linux /dev/hdb2 14 268 2048287+ 82 Linux swap /Solaris /dev/Hdb3 269 38913 310415962+ 83 Linux

Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 60801 488279610 8e Linux LVM

/dev/sda2 is the hard drive I want to mount, type LVM , I tried to mount

mount /dev/sda2 /opt

Error: mount: /dev/sda2 already mounted or /mnt busy

Actually /dev/sda2 is not mounted, then I tried to mount /dev/sda1, but it can be successful, obviously the partition type problem

Then how to mount the LVM partition, follow the steps below Come on:

# lvm pvscan //scan lvm volumns: # lvm vgchange -ay //Activate lvm volumn # ls /dev/mapper///View the partition name after activation # lvm lvs View size # mount /dev/mapper/VolGroup00-LogVol00 /opt

This will mount normally.

Copyright © Windows knowledge All Rights Reserved