The existing CentOS 5 box had some free disk space and so I decided to install FC7. Some where along the way, the bootloader was not selected during FC7 installation. At end of installation, when the box restarted, no FC7 is to be seen. This howto details steps to mount and access files from a disk having a logical volume group.
From CentOS 5 I log on as root and did the following:
1. Determine if FC7 was install on the disk
Yup I see it as /dev/sda6 the root partition and /dev/sda5 as the swapCode:#fdisk -l /dev/sda Disk /dev/sda: 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/sda1 * 1 1275 10241406 83 Linux /dev/sda2 1276 2550 10241437+ 83 Linux /dev/sda3 2551 2677 1020127+ 82 Linux swap / Solaris /dev/sda4 2678 9729 56645190 5 Extended /dev/sda5 2678 2690 104391 83 Linux /dev/sda6 2691 4602 15358108+ 8e Linux LVM
2. to determine what was the LVM details
3. Create the mount pointCode:#modprobe dm-mod #vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2 # vgchange -a y VolGroup00 # lvdisplay --- Logical volume --- LV Name /dev/VolGroup00/LogVol01 VG Name VolGroup00 . . . --- Logical volume --- LV Name /dev/VolGroup00/LogVol00 VG Name VolGroup00
4. Access and update the FC7 directory through /mnt/VolGroup00/01Code:# mkdir /mnt/VolGroup00/01 # mount /dev/VolGroup00/LogVol01 /mnt/VolGroup00/01
Reference the man pages for lvm, pvdisplay, vgdisplay, lvcreate, lvdisplay, lvextend
-Nicholas-


Reply With Quote
