-l, --extents [+]LogicalExtentsNumber[%{VG|LV|FREE}] Extend or set the logical volume size in units of logical extents. With the + sign the value is added to the actual size of the logical volume and without it, the value is taken as an absolute one. The number can also be expressed as a percentage of the total space in the Volume Group with the suffix %VG or relative to the existing size of the Logical Volume with the suffix %LV or as a percentage of the remaining free space in the Volume Group with the suffix %FREE.
-L, --size [+]LogicalVolumeSize[kKmMgGtT] Extend or set the logical volume size in units in units of megabytes. A size suffix of M for megabytes, G for gigabytes or T for terabytes is optional. With the + sign the value is added to the actual size of the logical volume and without it, the value is taken as an abso- lute one.
remaining の解釈を間違っていました。 a percentage of the remaining free space in the Volume Group with the suffix %FREE というのは「現在残っているVG中のフリーな空間」でのパーセンテージなのですね。 作業後に残る分ではなく。 従って -L +100%FREE は ADD 100% of the current FREE space の意味だと理解しました。
ちなみに vgdisplay --unit bで表示される数値は > VG Size 899795648512 B > PE Size 134217728 B > Total PE 6704 > Alloc PE / Size 6128 / 822486237184 B > Free PE / Size 576 / 77309411328 B となりますが、lvextend で「バイト単位での指定」を行う方法が存在しません。 最小単位が「キロバイト」です。
そもそもLVMが管理する最小単位はバイトではなくPE or LEであるはずです。
555 名前:534 [2007/11/30(金) 12:50:18 ID:XRlfEnID]
ということで、LEの数を直接指定してみました。(まだやっていなかった)
-l 6704 -l +576
全く同じ表示でした。
> Insufficient free space: 6704 extents needed, but only 576 available
6704が「増分」とみなされてしまうのならば、と
-l 576
も試してみましたが、これだと
> New size given (576 extents) not larger than existing size (6128 extents) > lvextend: Add space to a logical volume