Skip to contentSkip to conversation

mount my lv with write permisions locks up OS

linux-lvm Richard S. Bunke 2 participants 3 messages Dec 27, 2004 – Jan 5, 2005

lore
Share & tools
lore
#0 lore raw

I have a logical volume that I can only mount read only. If I try to mount it with write access it locks up the whole OS -- no errors. I filled up the fs and then tried to move files off it and the whole thing crashed with unlink errors (If I remember correctly, it was a while back).

I've tried a few things.
I can run fsck.reiserfs successfully with out error. I can mount it read only. The three pvs don't have any free extents left so I tried adding a fouth pv and growing the lv and filesytem by 1Gb in oder to see if it would mount then, but it still froze. I tried to use pvmove to move one or two extents off the th other pvs onto the new one, but I couldn't figure out the syntax on how to move just one or two extents. I don't even now if that would work.

I'm guessing it's an lvm problem, though I suppose it could be reiserfs or md problem instead.

Any help or suggestions you might have would be greatly appreciated.

here is the setup:
lvm2
2.6.9 kernel on Gentoo
one drive is sata on nforce3 chipset (sda)
one drive is ata on nforce3 chipset (hda3)
two drives are ata on pci adapter aec62xx driver (hde, hdg) amd64 architecture

# pvdisplay
 /dev/cdrom: open failed: Read-only file system
 --- Physical volume ---
 PV Name               /dev/hdg
 VG Name               myvg
 PV Size               27.96 GB / not usable 0  
 Allocatable           yes (but full)
 PE Size (KByte)       4096
 Total PE              7157
 Free PE               0
 Allocated PE          7157
 PV UUID               rob6sx-6VLN-YmJW-cWPL-5KDn-jyHj-a2oVVE

--- Physical volume ---

 PV Name               /dev/hde
 VG Name               myvg
 PV Size               27.96 GB / not usable 0  
 Allocatable           yes (but full)
 PE Size (KByte)       4096
 Total PE              7157
 Free PE               0
 Allocated PE          7157
 PV UUID               DSym9d-2yAa-56Ly-4V4e-E2w2-6yYX-aSqrFW

--- Physical volume ---

 PV Name               /dev/sda
 VG Name               myvg
 PV Size               74.53 GB / not usable 0  
 Allocatable           yes (but full)
 PE Size (KByte)       4096
 Total PE              19079
 Free PE               0
 Allocated PE          19079
 PV UUID               LRqQiF-stsg-FHCl-lgGW-uj4T-azY6-NocqXC

--- Physical volume ---

 PV Name               /dev/hda3
 VG Name               myvg
 PV Size               9.03 GB / not usable 0  
 Allocatable           yes
 PE Size (KByte)       4096
 Total PE              2311
 Free PE               2055
 Allocated PE          256
 PV UUID               e6SUVH-xlss-4f02-9XUD-j4m0-ed9K-xcemNP
# vgdisplay
 /dev/cdrom: open failed: Read-only file system
 --- Volume group ---
 VG Name               myvg
 System ID            
 Format                lvm2
 Metadata Areas        4
 Metadata Sequence No  6
 VG Access             read/write
 VG Status             resizable
 MAX LV                255
 Cur LV                1
 Open LV               0
 Max PV                255
 Cur PV                4
 Act PV                4
 VG Size               139.47 GB
 PE Size               4.00 MB
 Total PE              35704
 Alloc PE / Size       33649 / 131.44 GB
 Free  PE / Size       2055 / 8.03 GB
 VG UUID               VuX0hq-qs9d-XZP2-vdZ6-rlwQ-RWqY-JHmNpj
# lvdisplay
 /dev/cdrom: open failed: Read-only file system
 --- Logical volume ---
 LV Name                /dev/myvg/mylv
 VG Name                myvg
 LV UUID                07oG4N-NRJo-YxxH-iDy4-b8ck-7jq1-6hWc5F
 LV Write Access        read/write
 LV Status              available
 # open                 0
 LV Size                131.44 GB
 Current LE             33649
 Segments               4
 Allocation             next free (default)
 Read ahead sectors     0
 Block device           254:0
# dmsetup info
Name:              myvg-mylv
State:             ACTIVE
Tables present:    LIVE
Open count:        0
Event number:      0
Major, minor:      254, 0
Number of targets: 4
UUID: VuX0hqqs9dXZP2vdZ6rlwQRWqYJHmNpj07oG4NNRJoYxxHiDy4b8ck7jq16hWc5F
# dmsetup table
myvg-mylv: 0 58630144 linear 34:0 384
myvg-mylv: 58630144 58630144 linear 33:0 384
myvg-mylv: 117260288 156295168 linear 8:0 384
myvg-mylv: 273555456 2097152 linear 3:3 384
#1 lore raw
Quoted 6 lines · Richard S. Bunke

If I try to
mount it with write access it locks up the whole OS -- no errors.

here is the setup:
lvm2
2.6.9 kernel on Gentoo

Which lvm2 version?
It's only worth investigating if you can reproduce it with at least lvm2 2.00.25 (preferably 2.00.32) and a recent kernel (eg 2.6.10).

Alasdair

Signature · 1 line
[email protected]
#2 lore raw
Quoted 15 lines · Alasdair G Kergon
Quoted 11 lines · Richard S. Bunke

If I try to mount it with write access it locks up the whole OS -- no errors.

here is the setup:
lvm2
2.6.9 kernel on Gentoo

Quoted 6 lines

Which lvm2 version?
It's only worth investigating if you can reproduce it with at least lvm2 2.00.25 (preferably 2.00.32) and a recent kernel (eg 2.6.10).

Alasdair

Thanks for your response,

I updated my kernel to 2.6.10 and I upgraded to lvm2 2.00.32. I
also switched from using the old dev file system to the new udev file system to see if would have any impact. Otherwise the setup is the same as in my original post. Now when I try to mount with write permission, the system reboots instead of freezing. I can still mount read only. I'm still not getting error messages unfortunately. Is there things I can turn on that will be more verbose when errors like this occur?

Rick