Operating System - HP-UX
1833832 Members
2168 Online
110063 Solutions
New Discussion

block device for volume missing, character device in use

 
SOLVED
Go to solution
Carsten Hennig
Occasional Advisor

block device for volume missing, character device in use

Hi all,

I found a volume, which currently is in use by sybase (using the character device), but is not recognized by LVM. For unknown reasons the block device for that volume is missing in /dev/vgXX. What should or could I do now to make LVM recognize the volume again ? Is it safe to use mknod ? Should I stop sybase before doing anything with the volume ?

Thanks and regards,
Carsten
6 REPLIES 6
Prashant Zanwar_4
Respected Contributor

Re: block device for volume missing, character device in use

yes mknod shall be taking care of this..
What pvdisplay of the disk stating, are they alright.

Hope it helps
Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
A. Clay Stephenson
Acclaimed Contributor

Re: block device for volume missing, character device in use

Yes, it is safe to use mknod to create the lvol node. It's possible that some rm'ed the node. Make certain that the minor device number is unique. Hopefully the raw volume name matches the blk volume name (e.g rlvol2 -> lvol2).
If it ain't broke, I can fix that.
Prashant Zanwar_4
Respected Contributor

Re: block device for volume missing, character device in use

mknod name b major minor

mknod name b 64 0x0n000x
n=uniq
x=match with charcter special device 1,2,3,4,5,6.... ,=or


Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Carsten Hennig
Occasional Advisor

Re: block device for volume missing, character device in use

some more details:

ls -al /dev/vg05/*D03

brw-r----- 1 sybase sybase 64 0x050048 name_D03
crw-r----- 1 sybase sybase 64 0x050048 rname_D03

ls -al /dev/vg05/*D04

crw-r----- 1 sybase sybase 64 0x050025 rname_D04

melvyn burnard
Honored Contributor
Solution

Re: block device for volume missing, character device in use

ls -al /dev/vg05/*D03

brw-r----- 1 sybase sybase 64 0x050048 name_D03
crw-r----- 1 sybase sybase 64 0x050048 rname_D03

ls -al /dev/vg05/*D04

crw-r----- 1 sybase sybase 64 0x050025 rname_D04


so do:
mknod /dev/vg05/name_D04 b 64 0x050025

then ll /dev/vg05/*D04 to check
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Carsten Hennig
Occasional Advisor

Re: block device for volume missing, character device in use

I will create that block device as soon as this box has a scheduled downtime. Production is running on it, and I want to be on the safe side... :-)

Thanks to all for your help.

Carsten