Logical volumes are symlinks instead of block devices
Hi,
I'm setting up a backup agent on a recent Linux install (CentOS 6) and the backup server wouldn't recognize my logical volumes. Instead, it recognizes the following:
/dev/dm-0
/dev/dm-1
/dev/dm-2
/dev/dm-3
/dev/dm-4
/dev/dm-5
Normally the backup server would show the Logical Volumes under the Volume Group, like so:
/dev/mapper/VolGroup1-LogVol_home
/dev/mapper/VolGroup1-LogVol_root
So, in searching for the difference between this and other set ups, I came accross the following. The messed up box yields:
# ls -lah /dev/mapper/VolGroup1-*
lrwxrwxrwx 1 root root 7 Sep 20 13:57 /dev/mapper/VolGroup1-LogVol_home -> ../dm-5
lrwxrwxrwx 1 root root 7 Sep 20 13:57 /dev/mapper/VolGroup1-LogVol_root -> ../dm-1
lrwxrwxrwx 1 root root 7 Sep 20 13:57 /dev/mapper/VolGroup1-LogVol_tmp -> ../dm-4
lrwxrwxrwx 1 root root 7 Sep 20 13:57 /dev/mapper/VolGroup1-LogVol_usr -> ../dm-2
lrwxrwxrwx 1 root root 7 Sep 20 13:57 /dev/mapper/VolGroup1-LogVol_var -> ../dm-3
lrwxrwxrwx 1 root root 7 Sep 20 13:57 /dev/mapper/VolGroup1-swap -> ../dm-0
While a working box yields:
# ls -lah /dev/mapper/VolGroup1-*
brw-rw---- 1 root disk 253, 3 Sep 12 08:15 /dev/mapper/VolGroup1-LogVol_home
brw-rw---- 1 root disk 253, 0 Sep 12 08:15 /dev/mapper/VolGroup1-LogVol_root
brw-rw---- 1 root disk 253, 5 Sep 12 08:14 /dev/mapper/VolGroup1-LogVol_shm
brw-rw---- 1 root disk 253, 2 Sep 12 08:15 /dev/mapper/VolGroup1-LogVol_tmp
brw-rw---- 1 root disk 253, 1 Sep 12 08:15 /dev/mapper/VolGroup1-LogVol_usr
brw-rw---- 1 root disk 253, 4 Sep 12 08:15 /dev/mapper/VolGroup1-LogVol_var
brw-rw---- 1 root disk 253, 6 Sep 12 08:14 /dev/mapper/VolGroup1-swap
For some reason the Logical Volumes on the CentOS6 box were set up as symlinks to dm-* which are block devices. The correct box has no /dev/dm-* entries and the Logical Volumes are themselves block devices.
Can I fix this online or will I need a maintenance window? And how do I fix this?
Thanks for your help. If you need more information to help me out, please feel free to ask.
Last edited by FonHN; 09-20-2011 at 06:14 PM.
|