problem mounting LVM
Hello
I am having a problem mounting an LVM partition. Basically , I have had to do a fresh install of centos4.2 on a new drive. I need to mount the root partition from the old drive. The old drive is not damaged in anyway and still works. I need to mount /dev/hdc2 so i can access the data. Here are my results: [root@server /]# mount /dev/hdc2 /oldroot mount: /dev/hdc2 already mounted or /oldroot busy Here is the fdisk -l info: Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 274 2096482+ 82 Linux swap /dev/hda3 275 535 2096482+ 83 Linux /dev/hda4 536 24321 191061045 5 Extended /dev/hda5 536 24321 191061013+ 83 Linux Device Boot Start End Blocks Id System /dev/hdc1 * 1 13 104391 83 Linux /dev/hdc2 14 9729 78043770 8e Linux LVM /dev/hdc1 obviously has no issue mounting. The /oldroot directory in which i am trying to mount to is completely empty and is does not have any partitions mounted to it. Any help/suggestions would be awsome. Thank Conal |
surely the old root wont be in your lvm tab? also, you dont specify a file system type in your mount command....
|
It's telling you something is already in use/busy.
Try running lsof against both the device and the mount point to see if either is in fact actually in use. |
You don't mount an LVM partition directly. You mount the logical volumes contained within the LVM partition. The error message you're getting is misleading, to say the least. But I think the root cause of your problem is the incorrect way you're attempting to use the partition.
See the LVM mounting example from my system below. I have LVM on /dev/sd8 but you can see that /dev/sd8 is NOT directly mounted anywhere. The individual LV's inside the LVM partition are mounted, e.g., /dev/mapper/vg0-usr is mounted on /usr, /dev/mapper/vg0-var is mounted on /var, etc. Code:
# fdisk -l Code:
... |
All times are GMT -5. The time now is 02:55 AM. |