Solved

How do I remount a LVM that is ro

Posted on 2011-03-15
10
7,867 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 2

Expert Comment

by:Saikapian_4739
ID: 35137934
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
ID: 35137959
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
ID: 35138179
Could you please show me:

lvscan -a -v
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 12

Expert Comment

by:upanwar
ID: 35138210
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
ID: 35138401
# lvchange -ay /dev/VolGroup00/LogVol00
0
 

Author Comment

by:ip6net
ID: 35138635
[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
ID: 35138663
what about

lvscan -v
0
 

Author Comment

by:ip6net
ID: 35138758
[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
ID: 35138930
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
ID: 35205689
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

752 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