LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2011, 04:09 AM   #1
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 629

Rep: Reputation: 174Reputation: 174
LVM locking problem on boot; is my solution OK?


Background:

I've got my /var directory set up as an LVM2 logical volume. During system boot, the lvm lock file in /var/lock/ gets nuked when the logical volume gets mounted on the /var mountpoint, LVM has a fit about this and refuses to mount any logical volumes.

My solution:

I edited /etc/lvm/lvm.conf to use locking type 2 (external shared library locking_library) rather than the default file-based locking.

It seems to be working OK for me, but I wonder if anyone out there can foresee that this would cause a problem.

Note:

Yes, I know that /var as a logical volume does screw me a bit with not being able to have boot logs under /var, but I really do need for /var to be on a logical volume.
 
Old 03-04-2011, 01:42 PM   #2
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 629

Original Poster
Rep: Reputation: 174Reputation: 174
${BADWORD}, my above solution didn't quite work out like I thought.

So, I edited /etc/lvm/lvm.conf again and reverted back to using file-based locking, and for the time being I am having the LVM lockfile live under /lock/lvm
I'd rather not throw additional junk directly under / but I don't think that it would be such a good idea to place the lvm lockfile under /etc, either.

Can anyone give me some brief arguments against having the LVM lockfiles under / and /etc ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking problem on two node CentOS cluster (LVM) senti Linux - Server 0 08-31-2010 09:13 AM
[SOLVED] F10 Boot Problem - No LVM maxkukartsev Fedora 6 04-15-2009 11:07 PM
Grub/LVM boot problem jkoshi Fedora 6 02-28-2007 10:48 AM
Can't boot, LVM and inode problem Raoul68 Linux - Hardware 0 10-30-2005 03:14 AM
LVM - VFS Locking Patch for 2.4.21-99 kernels dehuszar Linux - Software 2 09-23-2004 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration