Operating System - HP-UX
1824993 Members
2147 Online
109678 Solutions
New Discussion юеВ

How to remove group character device file

 
carlos_83
Occasional Advisor

How to remove group character device file

Hi guys, I made a mistake trying to create a volume group. I've created the group device file using 64 0x00000c, and when I tried to create the volume group it displayed a error:

vgcreate: Cannot open the control file "/dev/vg_prod/group":
No such device or address

I guess this minor and major numbers are associated to vg00 (operating system) and I wish to remove it, so I can create the group file using the right major and minor numbers. Can you help me with this???
3 REPLIES 3
Dietmar Konermann
Honored Contributor

Re: How to remove group character device file

Just remove it with rm(1) and create a new one with mknod(1M). No problem.

Essentially you create a device file pointing to vg00/lvol12, which obviously does not exist. So the open() was rejected by the kernel.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Hoefnix
Honored Contributor

Re: How to remove group character device file

You can use rm to remove the group file.
T G Manikandan
Honored Contributor

Re: How to remove group character device file

#rm /dev/vg_prod/group
# mknod /dev/vg_prod/group c 64 0x000001
# vgcreate /dev/vg_prod /dev/dsk/cxtxdx