Andreas, this is a matter of units used. fdisk shows 292555849728 Bytes / 1000^3 rounded to 292.5GB whereas LVM uses 1024(2^10) per order of magnitude -> 292555849728 Bytes / 1024^3 = 272.45GB (which it shows below in the vgdisplay output). # lvcreate -c 8k -l 34873 -n lvo1 vg_daten allocates all free physical extents in your VG to your new logical volume. Regards, Heinz -- The LVM Guy -- On Fri, Feb 13, 2004 at 12:59:45PM +0100, Andreas Reschke wrote: > Hello, > we want to use our Red Hat Enterprise ES 3.0 with lvm as a file server. > The server is connected to a IBM Fast T 900 via qlogic2200 Fiber Channel. > On the FastT I have created a partition with 295 GB. > Fdisk shows this partition as /dev/sda1 with 292,5 GB: > > Output of fdisk: > fdisk -l > > Platte /dev/sda: 292.5 GByte, 292555849728 Byte > 255 Köpfe, 63 Sektoren/Spuren, 35567 Zylinder > Einheiten = Zylinder von 16065 * 512 = 8225280 Bytes > > Gerät boot. Anfang Ende Blöcke Id Dateisystemtyp > /dev/sda1 1 35567 285691896 8e Linux LVM > > [root@fastlinux lvmgui-0.4]# pvcreate /dev/sda1 > pvcreate -- physical volume "/dev/sda1" successfully created > > [root@fastlinux lvmgui-0.4]# vgcreate -s 8M vg_daten /dev/sda1 > vgcreate -- INFO: maximum logical volume size is 511.98 Gigabyte > vgcreate -- doing automatic backup of volume group "vg_daten" > vgcreate -- volume group "vg_daten" successfully created and activated > > [root@fastlinux lvmgui-0.4]#lvcreate -c 8k -L 292G -n lvo1 vg_daten > lvcreate -- only 34873 free physical extents in volume group "vg_daten" > [root@fastlinux lvmgui-0.4]# lvcreate -c 1024k -L 292G -n lvo1 vg_daten > lvcreate -- only 34873 free physical extents in volume group "vg_daten" > > vgdisplay > --- Volume group --- > VG Name vg_daten > VG Access read/write > VG Status available/resizable > VG # 0 > MAX LV 256 > Cur LV 0 > Open LV 0 > MAX LV Size 511.98 GB > Max PV 256 > Cur PV 1 > Act PV 1 > VG Size 272.45 GB > PE Size 8 MB > Total PE 34873 > Alloc PE / Size 0 / 0 > Free PE / Size 34873 / 272.45 GB > VG UUID OOjBLA-sHjN-LtHG-YRlE-JIRZ-miEk-m6S5vv > > I have a volume group with maximum 511.98 Gigabyte and want to create a > logical volume with 292 GB (greater than 266 GB), but lvcreate allow only > 34873 extents (= 266 BG). > > Where is the resulotion? > > > > Thanks > Andreas > -- > BEHR GmbH & Co Tel. 0711-896-4598 > Andreas Reschke Fax: 0711-8902-4598 > Abteilung BG-IM23 IT-Services Mobil: 0172-6307978 > Unix/Linux-Administration andreas.reschke@behrgroup.com > Siemensstrasse 164 > D-70469 Stuttgart > > _______________________________________________ > linux-lvm mailing list > linux-lvm@redhat.com > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ *** Software bugs are stupid. Nevertheless it needs not so stupid people to solve them *** =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Heinz Mauelshagen Red Hat, Inc. Consulting Development Engineer Am Sonnenhang 11 56242 Marienrachdorf Germany Mauelshagen@RedHat.com +49 2626 141200 FAX 924446 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/