Operating System - HP-UX
1843660 Members
3845 Online
110223 Solutions
New Discussion

Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

 
Unix-Support
Advisor

Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

I created new VG on HP-UX v3 and later want to rename the vgda1 to vgxa1.
So I used vgexport –s –m /tmp/vgda1.map /dev/vgda1 to export the vg.
Then created new directory for new vgname as
#mkdir /dev/vgxa1
And then tried to create node file using
#mknod /dev/vgxa1/group c 64 0x020000 .

But it’s not creating the group file and even not throwing any error message after executed mknod command.


xxxx:root/dev>mkdir /dev/vgtest
xxxx:root/dev>mknod /dev/vgtest/group c 64 0x020000
xxxx:root/dev>ll /dev/vgtest/group
/dev/vgtest/group not found
xxxx:root/dev>cd /dev/vgtest/
xxxxroot/dev/vgtest>ll

Same problem if I try creating new node file using mknod command

Could you please assist in order to get create the group file under /dev/vg**/ ?
29 REPLIES 29
Torsten.
Acclaimed Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

I still have problems to find the appropriate manuals on BSC

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1425824


but I'm sure the vgimport command will create the group file automagically (since 2008 or 2009 release).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

see

http://docs.hp.com/en/5992-6576/ch03s03.html#bajhhfje



Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Unix-Support
Advisor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

below is the error if do vgimport without having group file.
xxxx:root/dev>vgimport -s -m /tmp/vgda1.map /dev/vgxa1
vgimport: "/dev/vgxa1/group": not a character device.
xxxx:root/dev>
Prasanth Thomas
Valued Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

Hi,

please let me know th eout put of the below command.
ll /dev/*/group

Regrads,
Prasanth Thomas.
Laurent Menase
Honored Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

you should try a ls -l /dev/vgtest to check if there is no hidden characters
else probably a tusc.
Unix-Support
Advisor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

please find the output
xxxx:root/>ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Feb 22 16:58 /dev/vg00/group
crw-r----- 1 root sys 64 0x030000 May 14 14:43 /dev/vgda2/group
xxxx:root/>
Torsten.
Acclaimed Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

What is your 11.31 release?

Did you try the vgimport as mentioned in the link above?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Unix-Support
Advisor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3


xxxx:root/>vgimport -v -N -m /tmp/vgda1.map /dev/vgxa1
Usage: vgimport
[-p]
[-v]
[-s]
[-m MapFile]
[-N]
VolumeGroupName PhysicalVolumePath...
or: vgimport [-p] [-v] [-m MapFile] -f InFile VolumeGroupName
xxxx:root/>
James R. Ferguson
Acclaimed Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

Hi:

I agree with Laurent's thinking: look for special characters that mask finding the name you expect:

# ls -lb /dev/vg*

...will show non-printing characters as octal.

Regards!

...JRF...
Unix-Support
Advisor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

xxxx:root/dev/vgxa1>ls -lb /dev/vg*

/dev/vg00:
total 0
crw-r----- 1 root sys 64 0x000000 Feb 22 16:58 group
brw-r----- 1 root sys 64 0x000001 Mar 26 15:32 lvol1
brw-r----- 1 root sys 64 0x000002 Feb 22 16:58 lvol2
brw-r----- 1 root sys 64 0x000003 Feb 22 16:58 lvol3
brw-r----- 1 root sys 64 0x000004 Feb 22 16:58 lvol4
brw-r----- 1 root sys 64 0x000005 Feb 22 16:58 lvol5
brw-r----- 1 root sys 64 0x000006 Feb 22 16:58 lvol6
brw-r----- 1 root sys 64 0x000007 Feb 22 16:58 lvol7
crw-r----- 1 root sys 64 0x000001 Feb 22 16:58 rlvol1
crw-r----- 1 root sys 64 0x000002 Feb 22 16:58 rlvol2
crw-r----- 1 root sys 64 0x000003 Feb 22 16:58 rlvol3
crw-r----- 1 root sys 64 0x000004 Feb 22 16:58 rlvol4
crw-r----- 1 root sys 64 0x000005 Feb 22 16:58 rlvol5
crw-r----- 1 root sys 64 0x000006 Feb 22 16:58 rlvol6
crw-r----- 1 root sys 64 0x000007 Feb 22 16:58 rlvol7

/dev/vgda2:
total 0
crw-r----- 1 root sys 64 0x030000 May 14 14:43 group
brw-r----- 1 root sys 64 0x030001 May 17 14:05 lvtss6
crw-r----- 1 root sys 64 0x030001 May 17 14:05 rlvtss6

/dev/vgtest:
total 0

/dev/vgxa1:
total 0
xxxx:root/dev/vgxa1>
Torsten.
Acclaimed Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

What is your 11.31 update release?

Is this a LVM 1.0 or 2.x group?

"...
major is the major number for the group device file. For a Version 1.0 volume group, it is 64. For a Version 2.x volume group, it is 128."

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Prasanth Thomas
Valued Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

Hi,
please run the below commands and let me know the o/p

#cd /
#mkdir /dev/vgxx
#mknod /dev/vgxx/group c 64 0x010000

xx- vg extension which you need.

Rgds,
PT.
Laurent Menase
Honored Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

also check a
# which mknod
# what /usr/sbin/mknod
use
/usr/sbin/mknod in place of a simple mknod
to be sure there is no alias
singh sanjeev
Trusted Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

did you note the minor before exporting the vgda1.

if not then try wiht minor number consecutive of vg00, as i can see 0x030000 is assign to vgda2.

First remove what you have created :

#mkdir /dev/vgxa1
#mknod /dev/vgxa1/group c 64 0x010000

then do
vgimport -sv -m vgax1

All the best....



Sanjeev Singh
Unix-Support
Advisor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

Hi Torsen,
this is for your reply.
Below have attached the LVM, kernel Bundle and patch verison on my server.
Vgdisplay and lvmadm command doesn't show the LVM verison,

xxxx:root/dev>swlist -l product|grep LVM
LVM B.11.31 LVM
LVM-Core B.11.31 HP-UX Kernel support for the logical volume manager
LVM-MirrorDisk B.11.31 MirrorDisk/UX
PHKL_39606 1.0 PRM/FSS cumulative patch with LVM enhancement
xxxx:root/dev>swlist | grep -E "gold|qpk|Bundle"
# Bundle(s):
BUNDLE B.2010.05.08 Patch Bundle
Base-VXFS B.11.31 Base VxFS File System 4.1 Bundle for HP-UX
Base-VXVM B.4.10.032 Base VERITAS Volume Manager Bundle 4.1 for HP-UX
OnlineDiag B.11.31.01.03 HPUX 11.31 Support Tools Bundle, February 2007
QPKBASE B.11.31.1003.347a Base Quality Pack Bundle for HP-UX 11i v3, March 2010
# Product(s) not contained in a Bundle:
Unix-Support
Advisor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

Hi Laurent,

This for your reply
xxxx:root/dev>which mknod
/sbin/mknod
xxxx:root/>/sbin/mknod /dev/vgxa1/group c 64 0x020000
xxxx:root/>ll /dev/vgxa1/group
/dev/vgxa1/group not found
xxxx:root/>
Prasanth Thomas
Valued Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

for lvm version please run the vgdisplay command.
Prasanth Thomas
Valued Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

what is the o/p of ls -ltr /dev ?
stephen peng
Valued Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

how to find out the LVM version? vgdisplay does not tell anything about it
Unix-Support
Advisor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

Hi Prasanth & Sanjeev

I tried with new minor number and vgname but still having same issue.
xxxx:root/dev>mkdir /dev/vgtest1

xxxx:root/dev>ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Feb 22 16:58 /dev/vg00/group
crw-r----- 1 root sys 64 0x030000 May 14 14:43 /dev/vgda2/group

xxxx:root/dev>/sbin/mknod /dev/vgtest1/group c 64 0x050000

xxxx:root/dev>ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Feb 22 16:58 /dev/vg00/group
crw-r----- 1 root sys 64 0x030000 May 14 14:43 /dev/vgda2/group
xxxx:root/dev>

Vgdisplay command doesn't show the LVM verison.please see below
xxxx:root/dev>vgdisplay -v vgda2
--- Volume groups ---
VG Name /dev/vgda2
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 8
Act PV 8
Max PE per PV 1717
VGDA 16
PE Size (Mbytes) 64
Total PE 13736
Alloc PE 13736
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Prasanth Thomas
Valued Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

for more details about lvm version please reffer the below link.
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=BaseLVM

rgds,
PT.
Unix-Support
Advisor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

Hi Prasanth,

please find attached list of files under /dev directory.
Laurent Menase
Honored Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

you should also check a what /sbin/mknod and a tusc of it.
Prasanth Thomas
Valued Contributor

Re: Doesn't create /dev/vg*/group file mknod command on hp-ux11i v3

vg version

unix:/root# lvmadm -t
rgds,
PT