* [linux-lvm] mount my lv with write permisions locks up OS
@ 2004-12-27 13:36 Richard S. Bunke
2005-01-04 19:49 ` Alasdair G Kergon
0 siblings, 1 reply; 3+ messages in thread
From: Richard S. Bunke @ 2004-12-27 13:36 UTC (permalink / raw)
To: linux-lvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] mount my lv with write permisions locks up OS
2004-12-27 13:36 [linux-lvm] mount my lv with write permisions locks up OS Richard S. Bunke
@ 2005-01-04 19:49 ` Alasdair G Kergon
2005-01-05 8:02 ` Richard S. Bunke
0 siblings, 1 reply; 3+ messages in thread
From: Alasdair G Kergon @ 2005-01-04 19:49 UTC (permalink / raw)
To: LVM general discussion and development
On Mon, Dec 27, 2004 at 08:36:27AM -0500, Richard S. Bunke wrote:
> 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
--
agk@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] mount my lv with write permisions locks up OS
2005-01-04 19:49 ` Alasdair G Kergon
@ 2005-01-05 8:02 ` Richard S. Bunke
0 siblings, 0 replies; 3+ messages in thread
From: Richard S. Bunke @ 2005-01-05 8:02 UTC (permalink / raw)
To: LVM general discussion and development
Alasdair G Kergon wrote:
>On Mon, Dec 27, 2004 at 08:36:27AM -0500, Richard S. Bunke wrote:
>
>
>>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
>
>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-05 8:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-27 13:36 [linux-lvm] mount my lv with write permisions locks up OS Richard S. Bunke
2005-01-04 19:49 ` Alasdair G Kergon
2005-01-05 8:02 ` Richard S. Bunke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox