UnixPedia : HPUX / LINUX / SOLARIS: HPUX : VGIMPORT: LVM GROUP FILE HAS THE WRONG MAJOR NUMBER; IT IS NOT AN LVM DEVICE

Wednesday, October 16, 2013

HPUX : VGIMPORT: LVM GROUP FILE HAS THE WRONG MAJOR NUMBER; IT IS NOT AN LVM DEVICE

While giving   the major number to a vg , due typo instead 64 , 4 has been supplied to the vg
#-> vgimport -vsN -m ethp_vg.mapfile /dev/ethp_vg
Beginning the import process on Volume Group "/dev/ethp_vg".
vgimport: LVM group file has the wrong major number; it is not an LVM device.
#-> ll /dev/*/group
crw-r--r--   1 root       sys         64 0x060000 Oct 16 08:51 /dev/crdp_vg/group
crw-r-----   1 root       sys         64 0x030000 Jun 12  2012 /dev/dpyp_vg/group
crw-r-----   1 root       sys         64 0x020000 Jun 12  2012 /dev/eesp_vg/group
crw-r--r--   1 root       sys          4 0x0a0000 Oct 16 08:53 /dev/ethp_vg/group
crw-r-----   1 root       sys         64 0x010000 Jun 12  2012 /dev/latp_vg/group
crw-r-----   1 root       sys         64 0x090000 Feb 13  2013 /dev/lfsp_vg/group
crw-r-----   1 root       sys         64 0x040000 Jun 13  2012 /dev/ncsp_vg/group
crw-r-----   1 root       sys         64 0x000000 Feb  8  2012 /dev/vg00/group
crw-r-----   1 root       sys         64 0x050000 Jun 19  2012 /dev/vg_lock/group
crw-r-----   1 root       sys         64 0x080000 Aug  8  2012 /dev/vg_openv/group
crw-r-----   1 root       sys         64 0x0b0000 Sep 22 13:14 /dev/vg_oraback/group
crw-r-----   1 root       sys         64 0x070000 Aug  7  2012 /dev/vg_tdmf/group
Solution
Remove the group file and re-create the file.
#-> rm /dev/ethp_vg/group
#-> mknod /dev/ethp_vg/group c 64 0x0a0000

No comments:

Post a Comment