How to mout LVM?
Tony Nelson
tonynelson at georgeanelson.com
Mon Nov 20 19:32:00 UTC 2006
At 9:53 AM -0200 11/20/06, Clodoaldo wrote:
>I'm running FC5 with default partitions.
>
>I installed a new disk in IDE 0 and moved the old disk to IDE 1.
>
>Then installed FC6 on the new disk with default partitions and left
>the old disk untouched. Now i can't mount the old disk to copy data.
...
>I need to learn how to mount the other disk so I can migrate to FC6. I
>suspect it is already mounted, in which case i'm afraid i can produce
>a mess.
It is not mounted unless you see it in /etc/mtab or /proc/mounts, and it
would need a line in /etc/fstab for that to happen.
>I have read this but it looks like it is not the case:
>http://www.die.net/doc/linux/HOWTO/LVM-HOWTO-16.html
>
># vgs
> VG #PV #LV #SN Attr VSize VFree
> VolGroup00 1 2 0 wz--n- 76.22G 32.00M
> VolGroup01 1 2 0 wz--n- 74.41G 32.00M
>
># pvscan
> PV /dev/hdc2 VG VolGroup01 lvm2 [74.41 GB / 32.00 MB free]
> PV /dev/hda2 VG VolGroup00 lvm2 [76.22 GB / 32.00 MB free]
> Total: 2 [150.62 GB] / in use: 2 [150.62 GB] / in no VG: 0 [0 ]
>
># fdisk -l
>Disk /dev/hda: 81.9 GB, 81964302336 bytes
>255 heads, 63 sectors/track, 9964 cylinders
>Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
>/dev/hda1 * 1 13 104391 83 Linux
>/dev/hda2 14 9964 79931407+ 8e Linux LVM
>
>Disk /dev/hdc: 80.0 GB, 80026361856 bytes
>255 heads, 63 sectors/track, 9729 cylinders
>Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
>/dev/hdc1 * 1 13 104391 83 Linux
>/dev/hdc2 14 9729 78043770 8e Linux LVM
>
>Disk /dev/dm-0: 80.7 GB, 80765517824 bytes
>255 heads, 63 sectors/track, 9819 cylinders
>Units = cylinders of 16065 * 512 = 8225280 bytes
>
>Disk /dev/dm-0 doesn't contain a valid partition table
>
>Disk /dev/dm-1: 1040 MB, 1040187392 bytes
>255 heads, 63 sectors/track, 126 cylinders
>Units = cylinders of 16065 * 512 = 8225280 bytes
>
>Disk /dev/dm-1 doesn't contain a valid partition table
What does "ls -d /dev/VolGroup*" say? If it shows both, as it should,
mount the desired volume with "mount /dev/VolGroup0x/LogVol0x
/mnt/whatever".
--
____________________________________________________________________
TonyN.:' The Great Writ <mailto:tonynelson at georgeanelson.com>
' is no more. <http://www.georgeanelson.com/>
More information about the users
mailing list