Operating System - HP-UX
1820021 Members
3700 Online
109608 Solutions
New Discussion юеВ

Re: lvm Permission denied

 
nissim
New Member

lvm Permission denied

hi all!!
my problem is that when the system start
one of the mess. i got is:
"/etc/lvmconf//lvm_lock: Permission denied".
i have checked the file premission an everything was o.k.
i cant use lvm now.

thank's.
nissim
7 REPLIES 7
CHRIS_ANORUO
Honored Contributor

Re: lvm Permission denied

Hi
Your /dev should have 775 permission. The group and owner rights should be bin.
All the vg** directories should have permission of 775.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Stefan Farrelly
Honored Contributor

Re: lvm Permission denied


Is there a file called /etc/lvmconf/lvm_lock ? if so can you remove it ? (which proves you have permission to write to it). If this file doesnt exist can you create a temporary file in /etc/lvmconf (touch /etc/lvmconf/test - to prove you can write to this dir) ?
Im from Palmerston North, New Zealand, but somehow ended up in London...
nissim
New Member

Re: lvm Permission denied

to solve this problem, i have looked form file permission that anoder user took, and i have found some most importent file that he took ownership on tham. So i just chown on tham,
nissim
Stefan Farrelly
Honored Contributor

Re: lvm Permission denied


Dont forget to allocate some points to those who offered their time to help you.
Im from Palmerston North, New Zealand, but somehow ended up in London...

Re: lvm Permission denied

# mv /etc/lvmconf/lvm_lock /etc/lvmconf/lvm_lock.org
# vgdisplay or vgscan or lvdisplay will recreate this lock file .then all your lvm commands will work
Sundar
Ramesh Donti
Frequent Advisor

Re: lvm Permission denied

Hi,
The problem is that lvdisplay, lvchange and other lv commands
are not owned by root. Even if vgdisplay has the right permissions
if lvdisplay has the wrong permissions, vgdisplay will fail
Always Keep Smiling
Jeromy Gregg
Advisor

Re: lvm Permission denied

I had the same problem...it turns out that I had recently had an application which reqired root access to install the software. As part of the install process, the script changed the ownership of th vg* lv* and pv* commands in /usr/sbin from root to the application user. I changed ownership back to root:sys and made sure that permissions were set to -r-sr-xr-x, and voila! My lvm commands worked again.

You might want to check the ownership of these files too. If they're not root:sys, change them back.