ボリュームシステム「ルート」のディスク容量が不足しています。

ボリュームシステム「ルート」のディスク容量が不足しています。

Debian 7を1TBドライブにインストールし、Debianに自動的にパーティションを設定させ、LVMを選択してOwnCLoudをインストールしました。ルートディスクに空き容量がなく、空き容量が35MBしかありません。クラウドストレージにアクセスできなくなり、Apache2も再起動する必要がありますか?というメッセージが表示されるまで、すべてがうまく機能しました。自動的に起動します。 Apacheを再起動した後、クラウドにアクセスできますが、クラウドはデータベースにアクセスできません。プログラムを実行できないのは、スペース制約によるものです。このボリュームをどのように増やすことができますか? Gpart liveの使用に疲れていますが、ボリュームを追加できません>ここに私のfdisk -lリストがあります!

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 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 identifier: 0x8de4adf7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63  2930272064  1465136001    7  HPFS/NTFS/exFAT

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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 identifier: 0x00048b84

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048      499711      248832   83  Linux
/dev/sdb2          501758  1953523711   976510977    5  Extended
/dev/sdb5          501760  1953523711   976510976   8e  Linux LVM

Disk /dev/mapper/debian-root: 348 MB, 348127232 bytes
255 heads, 63 sectors/track, 42 cylinders, total 679936 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 identifier: 0x00000000

Disk /dev/mapper/debian-root doesn't contain a valid partition table

Disk /dev/mapper/debian-swap_1: 4273 MB, 4273995776 bytes
255 heads, 63 sectors/track, 519 cylinders, total 8347648 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 identifier: 0x00000000

Disk /dev/mapper/debian-swap_1 doesn't contain a valid partition table

Disk /dev/mapper/debian-usr: 8996 MB, 8996782080 bytes
255 heads, 63 sectors/track, 1093 cylinders, total 17571840 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 identifier: 0x00000000

Disk /dev/mapper/debian-usr doesn't contain a valid partition table

Disk /dev/mapper/debian-var: 2998 MB, 2998927360 bytes
255 heads, 63 sectors/track, 364 cylinders, total 5857280 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 identifier: 0x00000000

Disk /dev/mapper/debian-var doesn't contain a valid partition table

Disk /dev/mapper/debian-tmp: 398 MB, 398458880 bytes
255 heads, 63 sectors/track, 48 cylinders, total 778240 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 identifier: 0x00000000

Disk /dev/mapper/debian-tmp doesn't contain a valid partition table

Disk /dev/mapper/debian-home: 982.9 GB, 982926753792 bytes
255 heads, 63 sectors/track, 119500 cylinders, total 1919778816 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 identifier: 0x00000000

Disk /dev/mapper/debian-home doesn't contain a valid partition table
root@debian:/home/dmsigala#

編集する

pvscan出力df

root@debian:/home/dmsigala# pvscan
 PV /dev/sdb5 VG debian lvm2 [931.27 GiB / 0 free]
 Total: 1 [931.27 GiB] / in use: 1 [931.27 GiB] / in no VG: 0 [0 ]

ot@debian:/home/dmsigala# df -h
 Filesystem               Size  Used  Avail  Use%  Mounted on
 rootfs                   322M  294M  11M    97%   /
 /dev/mapper/debian-root  322M  294M  11M    97%   /
 /dev/sdb1                228M  17M   199M   8%    /boot

ベストアンサー1

他のボリュームの1つのサイズを小さくする必要があります。空き容量が多い場合がありますdebian/home。柔軟性のために空き容量を確保するために、982.9GBから950GiBに減らすことができます。ファイルシステム(resize2fsext3 / ext4の場合)を減らした後、LVを減らすことができます。

lvresize --size 950G debian/home

その後、ルートLVを増やすことができます。

lvresize --size 1G debian/root

最後のステップは、ルートボリュームファイルシステムのサイズを変更することです(他のシステムを起動した後にのみ可能です)。

おすすめ記事