LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-24-2008, 09:20 AM   #1
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
lvm volume mount as read only


Dear all

Today i faced a strange problem in lvm (version 2) configuration on rhel 5.2. Our one of lvm volume automatically become read only. I tried to remount that volume with rw, but that failed by displying error that read only attribute is set on that volume. Restarting linux server solved the problem, but i am curious to know the reason of that problem.

thanks
 
Old 12-24-2008, 09:39 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Was it the LV (a Logical Volume internal to the Volume Group) or (one of) the Physical Volume(s) making up the VG that failed to mount r/w? If it was one of the PV, what cause is reported in your boot log?

From your cursory description it sounds like one of your PVs may be close to the end of its service life, and that it did not report a successful "spin up" to the kernel before the time-out expired. (The drive may have been "warmed up" when you did the re-boot.) If that's the case, you should replace the drive ASAP. (Note: If the drive is S.M.A.R.T., try a full smart scan of the PV for more information.)
 
Old 12-24-2008, 10:22 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Original Poster
Rep: Reputation: 66
kernel log

Thanks

My disk is ok, sinnce other lv on that disk is working properly. My volume group consist one physical volume. Four LV are created on that volume group.
/dev/vg1/lv1
/dev/vg1/lv2
/dev/vg1/lv3
/dev/vg1/lv4

Following error was generated in /var/log/messages
Dec 24 16:29:19 abpdel2 kernel: EXT3-fs error (device dm-1): ext3_lookup: unlinked inode 12075010 in dir #4145153
Dec 24 16:29:19 abpdel2 kernel: Aborting journal on device dm-1.
Dec 24 16:29:19 abpdel2 kernel: ext3_abort called.
Dec 24 16:29:19 abpdel2 kernel: EXT3-fs error (device dm-1): ext3_journal_start
sb: Detected aborted journal
Dec 24 16:29:19 abpdel2 kernel: Remounting filesystem read-only


thanks
 
Old 12-24-2008, 11:47 AM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
O.K. That identifies the problem. Since the problem was in the journal file, the reboot probably rewrote it, although the journal contents was probably lost (and probably not needed if the prior shutdown was clean).

Once a LV is activated, you can run fsck on it before you mount it. I've noticed that ext file systems created on a LV often do not have an automatic fsck run specified. Try using tune2fs to specify a -c 30 (or however many days you wish to set) so a fsck will be run when you mount. (tune2fs can also tell when your last fsck on the LV was done if you use the -l argument.)

Anyhow, an unlinked inode usually means a read failure or other fs problem that e2fsck can often resolve.

I suspect that you know all this, but others may read this thread.

Last edited by PTrenholme; 12-24-2008 at 11:52 AM.
 
Old 12-27-2008, 03:55 AM   #5
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Original Poster
Rep: Reputation: 66
Smile Thanks

Thanks for suggestion. Now i got reason of problem.
 
  


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
Need to mount LVM volume and save Data -- Recovering from power loss. chuckcom Linux - General 1 02-09-2008 07:57 PM
cannot mount lvm volume -- 'vgscan --mknodes' does nothing! jtmoon Linux - Hardware 1 04-02-2007 06:57 PM
How can I mount a LVM volume with fdisk? Thaidog Linux - General 1 12-16-2006 01:49 AM
How to mount LVM Volume twice Phil.Johnson Linux - Software 0 03-14-2006 11:17 AM
Partitions under LVM Volume Group won't mount after install jimisola Mandriva 4 11-16-2005 04:17 PM

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

All times are GMT -5. The time now is 11:10 AM.

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