我是 Ubuntu 新手,对硬盘分区和 LVM 的工作原理有些困惑。我记得设置 Ubuntu 服务器 13.04 时告诉它使用 3TB 服务器中的 1TB。好吧,我已经用蓝光翻录将其最大化,并希望使用驱动器的其余部分作为空间。
登录时显示:
System load: 2.24 Processes: 179
Usage of /: 88.7% of 912.89GB Users logged in: 0
Memory usage: 6% IP address for p5p1: 192.168.0.100
Swap usage: 0%
=> / is using 88.7% of 912.89GB
lvdisplay
输出:
--- Logical volume ---
LV Path /dev/DeathStar-vg/root
LV Name root
VG Name DeathStar-vg
LV Write Access read/write
LV Creation host, time DeathStar, 2013-05-18 22:21:11 -0400
LV Status available
# open 1
LV Size 2.70 TiB
Current LE 707789
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Path /dev/DeathStar-vg/swap_1
LV Name swap_1
VG Name DeathStar-vg
LV Write Access read/write
LV Creation host, time DeathStar, 2013-05-18 22:21:11 -0400
LV Status available
# open 2
LV Size 3.75 GiB
Current LE 959
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
vgdisplay
输出:
VG Name DeathStar-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 2.73 TiB
PE Size 4.00 MiB
Total PE 715335
Alloc PE / Size 708748 / 2.70 TiB
Free PE / Size 6587 / 25.73 GiB
df
输出:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/DeathStar--vg-root 957238932 848972636 59634696 94% /
none 4 0 4 0% /sys/fs/cgroup
udev 1864716 4 1864712 1% /dev
tmpfs 374968 1060 373908 1% /run
none 5120 4 5116 1% /run/lock
none 1874824 148 1874676 1% /run/shm
none 102400 24 102376 1% /run/user
/dev/sda2 234153 56477 165184 26% /boot
并fdisk /dev/sda -l
输出:
Disk /dev/sda: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.
我只是不知道如何处理这一切,也不知道如何才能让它使用全部 2.73TB。
在此先感谢您的帮助。
编辑 -
是的,我确实对 LVM 配置进行了更改,但是没有任何效果。
根据要求,输出parted -l /dev/sda
Model: ATA WDC WD30EFRX-68A (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 2097kB 1049kB bios_grub
2 2097kB 258MB 256MB ext2
3 258MB 3001GB 3000GB lvm
Model: ATA WDC WD30EFRX-68A (scsi)
Disk /dev/sdb: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/DeathStar--vg-swap_1: 4022MB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 4022MB 4022MB linux-swap(v1)
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/DeathStar--vg-root: 2969GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 2969GB 2969GB ext4