Solved

How do I remount a LVM that is ro

Posted on 2011-03-15
10
6,808 Views
Last Modified: 2012-05-11
[root@www tmp]# ls > a
-bash: a: Read-only file system
[root@www ~]# vgchange -ay
  Locking type 1 initialisation failed.

[root@www ~]# vgchange -ay --ignorelockingfailure
  2 logical volume(s) in volume group "VolGroup00" now active

[root@www tmp]# mount -n -o remount,rw /
mount: block device /dev/VolGroup00/LogVol00 is write-protected, mounting read-only
[root@www tmp]#
0
Comment
Question by:ip6net
10 Comments
 
LVL 2

Expert Comment

by:Saikapian_4739
Comment Utility
Try umounting it and then mounting it again.

umount /dev/VolGroup00/LogVol00
mount /dev/VolGroup00/LogVol00

I hope this will work for you.
0
 

Author Comment

by:ip6net
Comment Utility
sadly not

[root@www ~]# umount /dev/VolGroup00/LogVol00
[root@www ~]# mount /dev/VolGroup00/LogVol00
mount: /dev/VolGroup00/LogVol00 already mounted or / busy
mount: according to mtab, /dev/mapper/VolGroup00-LogVol00 is already mounted on /
[root@www ~]# cd /tmp
[root@www tmp]# ls > a
-bash: a: Read-only file system
[root@www tmp]#
0
 
LVL 12

Expert Comment

by:upanwar
Comment Utility
Could you please show me:

lvscan -a -v
0
 
LVL 12

Expert Comment

by:upanwar
Comment Utility
Activate the LVM as well. It should fix your issue. Earlier I have faced the same issue and I have fixed by activating the LVM.

# lvchange -a /dev/VolGroup00/LogVol00
0
 
LVL 12

Expert Comment

by:upanwar
Comment Utility
# lvchange -ay /dev/VolGroup00/LogVol00
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:ip6net
Comment Utility
[root@www tmp]# lvscan -a -v
lvscan: invalid option -- a
  Error during parsing of command line.
[root@www tmp]# lvchange -a /dev/VolGroup00/LogVol00
  Invalid argument /dev/VolGroup00/LogVol00
  Error during parsing of command line.
[root@www tmp]# lvchange -ay /dev/VolGroup00/LogVol00
  Locking type 1 initialisation failed.
[root@www tmp]#
0
 
LVL 12

Expert Comment

by:upanwar
Comment Utility
what about

lvscan -v
0
 

Author Comment

by:ip6net
Comment Utility
[root@www tmp]# lvscan
  Locking type 1 initialisation failed.

if i then do

[root@www tmp]# lvscan -v --ignorelockingfailure
    Locking disabled - only read operations permitted.
    Finding all logical volumes
  ACTIVE            '/dev/VolGroup00/LogVol00' [18.84 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol01' [1.00 GB] inherit
[root@www tmp]#
0
 
LVL 12

Expert Comment

by:upanwar
Comment Utility
Have you tried to scan the file system with fsck if it is bad ?

If you face issue then try to boot with Live CD and scan the partition. Update if you required help for the same.
0
 
LVL 6

Accepted Solution

by:
mohansahu earned 500 total points
Comment Utility
To mount the LVM partition follow the below steps.

1.boot with ubuntu live CD
2. apt-get install lvm2
3.fdisk -lu
4.pvscan
5.vgscan
6.vgchange -a y
7.lvscan
7. mount '/dev/VolGroup00/LogVol00 /mnt

MS
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now