ディスク領域を見つけて割り当てることはできません。

ディスク領域を見つけて割り当てることはできません。

サーバーに割り当てられた一部のスペースに問題があります。パーティション/ストレージに1TBを追加する必要があります。

df -h 表示

[root@SERVER ~]# df -h
Filesystem                        Size  Used Avail Use% Mounted on
devtmpfs                           12G     0   12G   0% /dev
tmpfs                              12G   56K   12G   1% /dev/shm
tmpfs                              12G   26M   12G   1% /run
tmpfs                              12G     0   12G   0% /sys/fs/cgroup
/dev/mapper/rootrhel-root          13G  3.5G  9.1G  28% /
/dev/mapper/rootrhel-opt           13G  6.6G  6.0G  53% /opt
/dev/mapper/rootrhel-storetmp      15G   34M   15G   1% /storetmp
/dev/mapper/storerhel-store       2.9T  2.6T  350G  89% /store
/dev/sda3                          32G  5.5G   27G  18% /recovery
/dev/mapper/rootrhel-tmp          3.0G   46M  3.0G   2% /tmp
/dev/mapper/rootrhel-var          5.0G  253M  4.8G   5% /var
/dev/mapper/rootrhel-varlog        15G  1.3G   14G   9% /var/log
/dev/mapper/rootrhel-varlogaudit  3.0G   84M  3.0G   3% /var/log/audit
/dev/mapper/rootrhel-home        1014M   33M  982M   4% /home
/dev/sda2                        1014M  358M  657M  36% /boot
/dev/sda1                         200M  9.9M  190M   5% /boot/efi
tmpfs                             2.4G     0  2.4G   0% /run/user/0

そしてfdisk -lショー

[root@SERVER ~]# fdisk -l
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 4398.0 GB, 4398046511104 bytes, 8589934592 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
Disk identifier: 56EB4CE6-541B-4A54-BE1C-5F2738DEDEA4


#         Start          End    Size  Type            Name
 1         2048       411647    200M  EFI System      EFI System Partition
 2       411648      2508799      1G  Microsoft basic
 3      2508800     69617663     32G  Microsoft basic
 4     69617664   6264891391    2.9T  Linux LVM
 5   6264891392   6405408767     67G  Linux LVM
 6   6405408768   6442438655   17.7G  Linux swap
 7   6442438656   6442450910      6M  Linux filesyste

Disk /dev/mapper/rootrhel-root: 13.4 GB, 13421772800 bytes, 26214400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rootrhel-storetmp: 16.1 GB, 16106127360 bytes, 31457280 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rootrhel-tmp: 3221 MB, 3221225472 bytes, 6291456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rootrhel-home: 1073 MB, 1073741824 bytes, 2097152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rootrhel-opt: 13.4 GB, 13421772800 bytes, 26214400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rootrhel-varlogaudit: 3221 MB, 3221225472 bytes, 6291456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rootrhel-varlog: 16.1 GB, 16106127360 bytes, 31457280 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/rootrhel-var: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/storerhel-store: 3172.0 GB, 3171980148736 bytes, 6195273728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

これがpartedを使って無料で印刷する様子です。

[root@SERVER ~]# parted
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print free
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 4398GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name                  Flags
        17.4kB  1049kB  1031kB  Free Space
 1      1049kB  211MB   210MB   fat16           EFI System Partition  boot
 2      211MB   1285MB  1074MB  xfs
 3      1285MB  35.6GB  34.4GB  xfs
 4      35.6GB  3208GB  3172GB                                        lvm
 5      3208GB  3280GB  71.9GB                                        lvm
 6      3280GB  3299GB  19.0GB  linux-swap(v1)
 7      3299GB  3299GB  6275kB
        3299GB  4398GB  1100GB  Free Space

(parted)

そのため、1TBが割り当てられていませんが、パーティションのサイズを変更する場所が見つかりません

resize2fs、xfs_growfs、fdisk、partedを試してみましたが、何も起こりませんでした。

考えられる解決策はありますか?ありがとう

ベストアンサー1

まだ推測がありますが...

パーティション7のようです。 6MBファイルシステムは使用されません。これが正しい場合は、削除して新しいパーティションを作成します。理想的には、pvresize現在のパーティションを使用できるように既存のパーティション5と6をディスクの端に移動しますstoreが、コマンドラインの練習はありません。

Rescue-cdが利用可能でサーバーのダウンタイムに時間がかかる場合は、Rescue-cdを起動してgpartedグラフィカルフロントエンドを使用してそれを移動できます(コマンドラインツールはしばらく前に移動のサポートを中止しました)。

ダウンタイムを回避できない場合の最も簡単な方法は、空き領域に新しいパーティションを作成して既存のボリュームグループに追加することです。小さな#7を削除して1TBに再生成するとしましょう。 (使用する場合は、新しいパーティション#8を作成し、以下の例で使用します。)

vgextend storerhel-store /dev/sda7

これで、Aはvgdisplayボリュームグループの空きエクステントサイズが1TB(無料PE)であることを示す必要があります。後で行うことができます

lvextend -r -l +<Available Size> /dev/mapper/storerhel-store

おすすめ記事