Operating System - HP-UX
1748180 Members
4145 Online
108759 Solutions
New Discussion юеВ

Re: need to do this without reboot

 
DeafFrog
Valued Contributor

need to do this without reboot

Dear Gurus ,

Lvextedn shows /etc/lvmconf/lvm_lock . ..and process locking it is not getting killed ...any suggestion so that this can be done without reboot.

fixxxx:/#lvcreate -L 97200 -n rmanTest /dev/vg01

Cannot lock "/etc/lvmconf/lvm_lock" still trying .....
fixxxx:/#fuser /etc/lvmconf/lvm_lock
/etc/lvmconf/lvm_lock: 26843o

fixxxx:/#fuser /etc/lvmconf/lvm_lock
/etc/lvmconf/lvm_lock: 26843o

fixxxx:/#ps -ef | grep -i 26843
root 26843 1 0 13:58:14 ? 0:00 /usr/sbin/lvcreate -L 51200 -p w -s y -A y -n ixxxxkup vg01
root 425 29244 0 17:05:58 pts/9 0:00 grep -i 26843
fixxxx:/#kill -9 26843
fixxxx:/#ps -ef | grep -i 26843
root 26843 1 0 13:58:14 ? 0:00 /usr/sbin/lvcreate -L 51200 -p w -s y -A y -n ixxxxkup vg01

reagrds ,
Rahul
FrogIsDeaf
6 REPLIES 6
TTr
Honored Contributor

Re: need to do this without reboot

The first lvcreate has been running for 3 hours already and has not used any cpu time. Check if there is a problem with the disks in vg01. Lvcreate should not take that long. If there are no disk errors, check if you need LVM patches. I think rebooting is the only option here, you can leave it running until you can schedule downtime to reboot. I doubt it will complete.
Torsten.
Acclaimed Contributor

Re: need to do this without reboot

Any LVM command that changes anything will set this lock.
Next command will wait until this lock is cleared.

Check for other running LVM commands (e.g. vgsync or whatever).

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!   
Matti_Kurkela
Honored Contributor

Re: need to do this without reboot

The fact that lvcreate is taking a long time and will not die with kill -9 suggests you have hardware problems. Most likely one of the PVs in vg01 has failed or has connectivity problems.

Check syslog and dmesg for SCSI errors.

Search the docs.hp.com website for "When Good Disks go Bad" to find a good document about disk replacement procedures.

MK
MK
DeafFrog
Valued Contributor

Re: need to do this without reboot

Hi ,
TTr :as per the patch assesment done on itrc--
"There are no patch issues.
Your assessment resulted in 0 recommended items and 0 unresolved issue(s)"
Torsten : whad if i remove the lock file manually and then try to kill the process.
Matii : there are no stale extents or lbolt errors
FrogIsDeaf
TTr
Honored Contributor

Re: need to do this without reboot

>there are no stale extents or lbolt errors

A disk can fail without these errors. Check with "ioscan -fn". Check the disks or the disk array (and the SAN/fiber) if you are using a SAN.
DeafFrog
Valued Contributor

Re: need to do this without reboot

After reboot , the problem was solved.Thanks once again!
FrogIsDeaf