翻訳されたメッセージ

A translation of this page exists in Japanese.

'lvextend -l 100%FREE' resizing to the number of free extents rather than adding them to the current size in RHEL

Solution 確認済 - 更新日時 - 翻訳の更新依頼

環境

  • Red Hat Enterprise Linux (RHEL) 4, 5, 6, 7, 8, 9

問題

  • I believe it to be the case that:

    # lvextend -l 100%FREE /dev/VolGroup00/lv_root
    
  • Error

  New size given (XXX extents) not larger than existing size (XXX extents)

...will extend the logical volume lvroot to be its current size plus the current free space in the volume group.  That is not what it is attempting to do however.

  • When resizing a logical volume with the following command, it is try to resize it to the number of free extents, rather than the current size plus the number of free extents

    # lvextend -l 100%FREE <logvol path>
    

解決策

Use the + symbol in front of X%FREE to indicate the space should be added to the current size.

# lvextend -l +100%FREE /dev/volgroup/logvol

このソリューションは、Red Hat のエンジニアがお客様のサポート中に作成したナレッジコンテンツの大型ライブラリーを提供する Fast-Track Publication Program の一環です。お客様が必要とする知識・情報を即時に提供するために、これらの記事は、未処理・未編集の状態で提示される場合がありますので、予めご了承ください。

コメント