hang creating snapshot in Linux 2.6.15.1
Every time I try to create a snapshot of my /var, the system hangs. But if I try to snapshot other filesystems, it does not. The same version seems to work completely OK for me on a different computer.
The system isn't quite locked solid: for instance a pre-existing bash in another VC is able to run builtin commands and fork subprocesses. I straced one and it got to exit_group(), but its parent shell did not act on its termination. ping still gets a response. CTRL-ALT-DEL is ignored. If I try to log in on a VC it accepts my username but never prompts for a password.
After rebooting the snapshot exists and has the expected contents.
I've tried the following combinations so far, all with the same effect:
lvcreate --size 1000M --snapshot --name snapvar /dev/sfere/var lvcreate --permission r --size 1000M --snapshot --name snapvar /dev/sfere/var lvcreate --permission r --size 200M --snapshot --name snapvar /dev/sfere/var
---+ LVM state
sfere$ really lvdisplay /dev/sfere/var
--- Logical volume ---
LV Name /dev/sfere/var
VG Name sfere
LV UUID 000000-0000-0000-0000-0000-0000-000000
LV Write Access read/write
LV snapshot status source of
/dev/sfere/snapvar [active]
LV Status available
# open 1
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation normal
Read ahead sectors 1024
Block device 254:3sfere$ really lvdisplay /dev/sfere/snapvar
--- Logical volume ---
LV Name /dev/sfere/snapvar VG Name sfere LV UUID cyRkZq-6Ef0-r3gq-1AW7-3RuD-0bwY-LPySj3 LV Write Access read only LV snapshot status active destination for /dev/sfere/var LV Status available # open 0 LV Size 1.00 GB Current LE 256 Segments 1 Snapshot chunk size 8.00 KB Allocated to snapshot 4.07% Allocation inherit Read ahead sectors 0 Block device 254:2
sfere$ really vgdisplay
--- Volume group ---
VG Name sfere System ID (none)1060895763 Format lvm2 Metadata Areas 1 Metadata Sequence No 22 VG Access read/write VG Status resizable MAX LV 256 Cur LV 6 Open LV 5 Max PV 256 Cur PV 1 Act PV 1 VG Size 108.74 GB PE Size 4.00 MB Total PE 27838 Alloc PE / Size 26674 / 104.20 GB Free PE / Size 1164 / 4.55 GB VG UUID Q67K3S-qn6q-3bK9-uW9o-8z1v-TJYw-cWf2E5
sfere$ really pvdisplay
--- Physical volume ---
PV Name /dev/hda4 VG Name sfere PV Size 108.74 GB / not usable 0 Allocatable yes PE Size (KByte) 4096 Total PE 27838 Free PE 1164 Allocated PE 26674 PV UUID tZDvzA-ecVR-Ktk5-5ymd-UkKp-z54p-pc9Pet
sfere$ df -m /var
Filesystem 1M-blocks Used Available Use% Mounted on/dev/mapper/sfere-var
1008 414 543 44% /var
---+ Verson numbers:
Linux sfere 2.6.15.1 #1 Sun Jan 15 17:25:20 GMT 2006 i686 GNU/Linux
ii lvm-common 1.5.17 The Logical Volume Manager for Linux (common ii lvm10 1.0.8-8 The Logical Volume Manager for Linux ii lvm2 2.01.04-5 The Linux Logical Volume Manager
The hardware is an early Athlon (bought in 2000 IIRC) with an MSI motherboard and a Maxtor hard disk. It's a domestic mail/news/etc server, and not very heavily loaded.
ttfn/rjk