Operating System - HP-UX
1753560 Members
5680 Online
108796 Solutions
New Discussion

/dev/lvm_private/lvm open: Permission denied

 
SOLVED
Go to solution
srayfay
Valued Contributor

/dev/lvm_private/lvm open: Permission denied

Hello,

 

I just installed HPUX 11.31 from DVD, I applied Bundles 1403 ...

I have now this error at everytime I use lvm command :

 

VM:root@MASTER1131:/root:vgdisplay
Could not open the LVM device file /dev/lvm_private/lvm .
open: Permission denied
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4121
VGDA 2
PE Size (Mbytes) 8
Total PE 4111
Alloc PE 3862
Free PE 249
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 527488m
VG Max Extents 65936

 

 

VM:root@MASTER1131:/root:lvremove /dev/vg00/lvol300
Could not open the LVM device file /dev/lvm_private/lvm .
open: Permission denied
The logical volume "/dev/vg00/lvol300" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg00/lvol300" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

 

 

Syslog doesn't say nothing (also dmesg)

VM:root@MASTER1131:/root:grep -i lvm /var/adm/syslog/syslog.log
Jun 3 15:03:42 MASTER1131 vmunix: LVM: Root VG activated
Jun 3 15:06:24 MASTER1131 lvmpud[2334]: LVM daemon started
Jun 3 15:39:40 MASTER1131 LVM[4154]: lvmadm -l
Jun 3 15:39:52 MASTER1131 LVM[4157]: vgscan
Jun 3 15:39:52 MASTER1131 LVM[4158]: vgscan
Jun 3 16:27:56 MASTER1131 LVM[4755]: lvcreate -l 3 -n lvol300 vg00
Jun 3 16:27:56 MASTER1131 LVM[4755]: Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Jun 3 16:28:24 MASTER1131 LVM[4759]: lvremove /dev/vg00/lvol300
Jun 3 16:28:24 MASTER1131 LVM[4759]: Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

 

 

VM:root@MASTER1131:/root:ll /dev/lvm_private/lvm
crw------- 1 root sys 64 0x000000 Mar 24 16:23 /dev/lvm_private/lvm

 

 

there is no vxvm installed

 

at the boot of server, i have this weird messages :

 

/sbin/ioinitrc:
fsck: execl() failed
fsck: Exec format error
fsck: read of pipe failed
fsck: Error 0
/dev/vg00/lvol1:file system is clean - log replay is not required
mount: execl() failed
mount: Exec format error
mount: read of pipe failed
mount: Error 0
vxtunefs: execl() failed
vxtunefs: Exec format error
vxtunefs: read of pipe failed
vxtunefs: Error 0
/sbin/krs_sysinit:
mount: execl() failed
mount: Exec format error
mount: read of pipe failed
mount: Error 0
* The module 'rng' has been loaded.
* The module 'pciinfo' has been loaded.
mount: execl() failed
mount: Exec format error
mount: read of pipe failed
mount: Error 0

insf: Installing special files for ipmi instance 0 address 250/0

 

 

any help is welcome

 

Regards
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: /dev/lvm_private/lvm open: Permission denied

Check the ownership and permissions on the /sbin/lvm_wrapper and /usr/sbin/lvm_wrapper files.

 

They should be:

 

# ll /sbin/lvm_wrapper /usr/sbin/lvm_wrapper
-r-sr-xr-x   1 root       sys        1089536 Dec  9  2012 /sbin/lvm_wrapper
-r-sr-xr-x   1 root       sys         192512 Dec  9  2012 /usr/sbin/lvm_wrapper

 

If the owner is incorrect, and since it is an suid executable, it will run as a user other than root which won't work.

srayfay
Valued Contributor

Re: /dev/lvm_private/lvm open: Permission denied

Hello Patrick

Thank you, it was helpfull, it works fine now, exactly

/sbin/lvm_wrapper was missing and /usr/sbin/lvm_wrapper had bad owner.

So I did a copy and change owners

 

Regards