System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

LVM configuration files clarrification

 
gany59
Regular Advisor

LVM configuration files clarrification

Hello All,

I have a concern on the LVM configuration files, that PV_lock. what is the use of that file, the contains is look like the serial number. And also i have 2 Vg's on my server. I have checked the /etc/lvmconf/vg00.conf and dbvg.conf file.

The first 2 lines contains the VG name and the respective PV's. What is the last 3 lines on that. Please see the below file and clarify me on that.

bash-4.1# strings pv_lock
LVMPVID1H
bash-4.1# strings vg00.conf
CONFIG01
/dev/vg00
/dev/rdsk/c3t2d0s2
LVMREC01y
HPLVMBDRH
VGDA0001
VGSA0001H
bash-4.1# strings dbvg.conf
CONFIG01

Thanks in advance!!

/dev/dbvg
/dev/rdsk/c3t3d0
LVMREC01y
qVGDA0001
VGSA0001H
2 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: LVM configuration files clarrification

HI:

> I have a concern on the LVM configuration files

Why, what bothers you?

The '/etc/lvmconf/lvm_lock' file is used when one-only access is needed to access or update the '/etc/lvmtab'.

The 'etc/lvmconf/pv_lock' file is used by the 'pvcreate' command.

Using 'strings' on binary files may divulge some information correctly but it will certainly mislead you otherwise!

The 'strings' command (by default) will expose sequences of four or more printable characters; no more no less. Don't place any great value in what you see from it's output.

Regards!

...JRF..
Hiren N Dave
Valued Contributor

Re: LVM configuration files clarrification

The purpose of the lvm_lock file... when lvm commands run, they need to access the lvmtab file in exclusive mode so lvm_lock file used to prevent other lvm commands from changing lvm configuration at the same time.
I am an HP Employee

Was this post useful? - You may click the KUDOS! star to say thank you.