1820117 Members
2966 Online
109619 Solutions
New Discussion юеВ

Re: lvm error

 
Darren Murray_1
Frequent Advisor

lvm error

I am currently getting the following error when trying to run a newfs on a logical volume that has been created
Device name cannot determine name of device major number minor number
8 REPLIES 8
Sudeesh
Respected Contributor

Re: lvm error

looks like some issue with device file.
Can you check the device file in /dev//.

Try to see whether the lvol is shown in vgdisplay.

vgdisplay -v /dev/



Sudeesh
The most predictable thing in life is its unpredictability
john korterman
Honored Contributor

Re: lvm error

Hi,
check if patches PHCO_7817 and PHCO_20330 are relevant to your situation.

regards,
John K.
it would be nice if you always got a second chance
Ranjith_5
Honored Contributor

Re: lvm error

Hi Murray,

try insf -e

try rebooting..

just try this ..many funny problems of mine have got resolved after a reboot.

Also pls Cross check the commands that you have given.

regards,
Syam
Panuwat
Advisor

Re: lvm error

case vg01
#pvcreate /dev/rdsk/cxdxtx
#mkdir /dev/vg01
#cd /dev/vg01
#mknod group c 64 0x010000
#vgcreate /dev/vg01 /dev/dsk/cxdxtx
#lvcreate -L /dev/vg01
#newfs -F vxfs /dev/vg01/rvol1
#mount /dev/vg01/vol1 /

case vg00
#lvcreate -L -n /dev/vg00
#newfs -F vxfs /dev/vg00/r
#mount /dev/vg01/ /


Suraj Singh_1
Trusted Contributor

Re: lvm error

HI Darren,

What is the o/p of "ll /dev/vgxx". (Use your vg name).

The output should be similar to:

ll /dev/vg00
total 0
crw-r----- 1 root sys 64 0x000000 Jan 29 08:21 group
brw-r----- 1 root sys 64 0x000001 Jan 29 08:21 lvol1
brw-r----- 1 root sys 64 0x000002 Jan 29 08:21 lvol2
brw-r----- 1 root sys 64 0x000003 Jan 29 08:21 lvol3
brw-r----- 1 root sys 64 0x000004 Jan 29 08:21 lvol4
brw-r----- 1 root sys 64 0x000005 Jan 29 08:21 lvol5
brw-r----- 1 root sys 64 0x000006 Jan 29 08:21 lvol6
brw-r----- 1 root sys 64 0x000007 Jan 29 08:21 lvol7
brw-r----- 1 root sys 64 0x000008 Jan 29 08:21 lvol8
crw-r----- 1 root sys 64 0x000001 Jan 29 08:21 rlvol1
crw-r----- 1 root sys 64 0x000002 Jan 29 08:21 rlvol2
crw-r----- 1 root sys 64 0x000003 Jan 29 08:21 rlvol3
crw-r----- 1 root sys 64 0x000004 Jan 29 08:21 rlvol4
crw-r----- 1 root sys 64 0x000005 Jan 29 08:21 rlvol5
crw-r----- 1 root sys 64 0x000006 Jan 29 08:21 rlvol6
crw-r----- 1 root sys 64 0x000007 Jan 29 08:21 rlvol7
crw-r----- 1 root sys 64 0x000008 Jan 29 08:21 rlvol8

If some discrepancy is noticed, than check whether you can display CG and LV (vgdisplay and lvdisplay).

Regards
What we cannot speak about we must pass over in silence.
Senthil Kumar .A_1
Honored Contributor

Re: lvm error

Hi darren,

The ll of /dev/vg* directory would have helped us understand this issue more better. But never the less, I guess the files meant for LV's in the concerned /dev/vg* dir in your box is a regular file and not a Block or Character file. May be thats the reason why the error message says.."failed to get major and minor" number.. Please be aware i was racking my grey matter about this from my residence and had no access to a HPUX box. So i couldn't simulate the error.

Anyway...i think , you need to check the /dev/vg* dir as others have suggested...

Kind regards
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Bharat Katkar
Honored Contributor

Re: lvm error

HI Darren,
See if you r able to see the information of newly created lv.

# lvdisplay /dev/vgxx/lvname

It shoudl display somethign like this:

LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 5096
Current LE 637
Allocated PE 637
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

See the LV Status here which should be available.

In case it is unavailable for any reasons try doing:

# lvchange -a y /dev/vgxx/lvname

Hope that works.
Regards,
You need to know a lot to actually know how little you know
Sumit Ghoshal
Occasional Advisor

Re: lvm error

Hi Darren,

Check the output of ll /dev/vg* it shud give the major and minor no. for all logical volumes.

also check :- pvdisplay -v /dev/vgxx/
lvstatus in the above o/p shud give available

make sure that you r creating the file system on the new lvol by using the below command-
newfs -F vxfs /dev/vg00/rlvolx

hope this will help u.

bye
Sumit