Bug#592729: pvcreate/pvresize does not autodetect PV size correctly
Marc Dequènes (Duck)
Duck at DuckCorp.org
Thu Aug 12 11:35:17 UTC 2010
Package: lvm2
Version: 2.02.66-2
Severity: normal
Coin,
I'm using 4 2TB drives, mostly used in a large RAID 5 array, in a fresh installation.
The RAID tools gives:
# mdadm --detail /dev/md1
/dev/md1:
Version : 1.2
Creation Time : Wed Aug 11 23:41:58 2010
Raid Level : raid5
Array Size : 5860071168 (5588.60 GiB 6000.71 GB)
Used Dev Size : 1953357056 (1862.87 GiB 2000.24 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent
Update Time : Thu Aug 12 13:30:43 2010
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 256K
Name : Daneel:1 (local to host Daneel)
UUID : bb01e6ec:ebfbdb5b:b493dcb6:3a8b0168
Events : 926
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
2 8 35 2 active sync /dev/sdc3
4 8 51 3 active sync /dev/sdd3
But LVM tools gives:
# pvs
PV VG Fmt Attr PSize PFree
/dev/md1 Daneel_main lvm2 a- 5.46t 449.10g
So there is more than 500GB of "lost" space, but i guess LVM metadata do not need that much. I did not find clues in the internet (only about the famous 2TB limit, which is now lifted). I guess splitting my RAID array and merging in the same VG would some my problem, but i think it is worth mentioning, as larger disks are to come in the Squeeze lifetime, and would better be solved.
Regards.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lvm2 depends on:
ii dmsetup 2:1.02.48-2 The Linux Kernel Device Mapper use
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.48-2 The Linux Kernel Device Mapper use
ii libreadline5 5.2-7 GNU readline and history libraries
ii libudev0 160-1 libudev shared library
ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip
lvm2 recommends no packages.
lvm2 suggests no packages.
-- no debconf information
More information about the pkg-lvm-maintainers
mailing list