|
|
一台服务器,共有4块硬盘,每块160G。我安装CentOS(安装时好像没有使用LVM)的时候,是
这样分区的:
以下是用fdisk得到的结果:
fdisk -l
Disk /dev/sda: 146.6 GB, 146685296640 bytes
255 heads, 63 sectors/track, 17833 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1274 10233373+ 83 Linux
/dev/sda2 1275 2039 6144862+ 83 Linux
/dev/sda3 2040 17833 126865305 83 Linux
Disk /dev/sdb: 146.6 GB, 146684248064 bytes
255 heads, 63 sectors/track, 17833 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 8158 65529103+ 83 Linux
/dev/sdb2 8159 17833 77714437+ 83 Linux
Disk /dev/sdc: 146.6 GB, 146684248064 bytes
255 heads, 63 sectors/track, 17833 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 10198 17833 61336170 83 Linux
/dev/sdc2 * 1 8158 65529103+ 82 Linux swap
/dev/sdc3 8159 10197 16378267+ 83 Linux
Partition table entries are not in disk order
Disk /dev/sdd: 146.6 GB, 146685296640 bytes
255 heads, 63 sectors/track, 17833 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 * 8159 17833 77714437+ 83 Linux
现在的使用情况是这样的:
df -h:
Filesystem Size Used Avail Use% Mounted on
/dev/sdc3 16G 280M 15G 2% /
/dev/sda1 9.7G 62M 9.1G 1% /boot
none 3.9G 0 3.9G 0% /dev/shm
/dev/sdc1 58G 40G 15G 73% /home
/dev/sdb2 73G 84M 70G 1% /opt
/dev/sdd1 73G 84M 70G 1% /tmp
/dev/sda3 120G 21G 93G 18% /usr
/dev/sdb1 62G 84M 59G 1% /usr/local
/dev/sda2 5.8G 253M 5.3G 5% /var
由于我分区没有注意到实际应用情况,导致现在/home空间不够,而实际硬盘
还有巨大的闲散空间。因此,我想把磁盘空间重新调整一下,不知道该怎么办?
希望大家能给个建议。比如,采用什么方案,用什么工具,需要注意什么?会不
会丢失数据?。。。 |
|