Can't write to new logical volume created with --virtualsize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
$ apt-cache policy lvm2
lvm2:
Installed: (none)
Candidate: 2.02.66-4ubuntu7.1
Version table:
2.
500 http://
2.
500 http://
The behaviour I see with --virtualsize (note) errors following mkfs. The same errors can be seen using cp, dd, or other programs that write to the new logical volume device.
someUser@
Logical volume "ceph01-root" created
someUser@
--- Logical volume ---
LV Name /dev/vg-
VG Name vg-vmhost02
LV UUID Or7wyp-
LV Write Access read/write
LV snapshot status active destination for /dev/vg-
LV Status available
# open 0
LV Size 9.77 GiB
Current LE 2500
COW-table size 4.00 MiB
COW-table LE 1
Allocated to snapshot 0.20%
Snapshot chunk size 4.00 KiB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:13
someUser@
mke2fs 1.42 (29-Nov-2011)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
640848 inodes, 2560000 blocks
128000 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2621440000
79 block groups
32768 blocks per group, 32768 fragments per group
8112 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
someUser@
/dev/dm-13: read failed after 0 of 4096 at 0: Input/output error
--- Logical volume ---
LV Name /dev/vg-
VG Name vg-vmhost02
LV UUID Or7wyp-
LV Write Access read/write
LV snapshot status INACTIVE destination for /dev/vg-
LV Status available
# open 0
LV Size 9.77 GiB
Current LE 2500
COW-table size 4.00 MiB
COW-table LE 1
Snapshot chunk size 4.00 KiB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:13
someUser@
Logical volume "ceph01-root" created
someUser@
--- Logical volume ---
LV Name /dev/vg-
VG Name vg-vmhost02
LV UUID Or7wyp-
LV Write Access read/write
LV snapshot status active destination for /dev/vg-
LV Status available
# open 0
LV Size 9.77 GiB
Current LE 2500
COW-table size 4.00 MiB
COW-table LE 1
Allocated to snapshot 0.20%
Snapshot chunk size 4.00 KiB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:13
someUser@
mke2fs 1.42 (29-Nov-2011)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
640848 inodes, 2560000 blocks
128000 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2621440000
79 block groups
32768 blocks per group, 32768 fragments per group
8112 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
someUser@
/dev/dm-13: read failed after 0 of 4096 at 0: Input/output error
--- Logical volume ---
LV Name /dev/vg-
VG Name vg-vmhost02
LV UUID Or7wyp-
LV Write Access read/write
LV snapshot status INACTIVE destination for /dev/vg-
LV Status available
# open 0
LV Size 9.77 GiB
Current LE 2500
COW-table size 4.00 MiB
COW-table LE 1
Snapshot chunk size 4.00 KiB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:13
someUser@
/dev/dm-13: read failed after 0 of 4096 at 0: Input/output error
Do you really want to remove active logical volume ceph01-root? [y/n]: y
Logical volume "ceph01-root" successfully removed
The expected behaviour is shown below, with a logical volume, where the whole capacity is allocated at creation.
someUser@
Logical volume "ceph01-root" created
someUser@
mke2fs 1.42 (29-Nov-2011)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
640848 inodes, 2560000 blocks
128000 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2621440000
79 block groups
32768 blocks per group, 32768 fragments per group
8112 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
someUser@
--- Logical volume ---
LV Name /dev/vg-
VG Name vg-vmhost02
LV UUID Uafjh9-
LV Write Access read/write
LV Status available
# open 0
LV Size 9.77 GiB
Current LE 2500
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:13
Status changed to 'Confirmed' because the bug affects multiple users.