我收到错误提示我的磁盘快满了,但我正在使用三个逻辑卷,并且需要知道我需要扩展哪个。我还有 50GB 未分配。
到目前为止,我总是将所有逻辑卷一起扩展,但现在我只想扩展所需的卷。
[编辑:询问命令的输出]
11:58:27|nva@nvaws[~] > df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 5766196 5094104 379180 94% /
none 1800512 264 1800248 1% /dev
none 1806624 768 1805856 1% /dev/shm
none 1806624 112 1806512 1% /var/run
none 1806624 0 1806624 0% /var/lock
/dev/mapper/nvaws-db 5160576 1971944 2926488 41% /var/lib/postgresql
/dev/mapper/nvaws-usr
19223252 4957612 13289156 28% /usr
/dev/mapper/nvaws-home
61929340 29253760 29534180 50% /home
11:58:32|nva@nvaws[~] >
12:01:13|nva@nvaws[~] > sudo vgdisplay
--- Volume group ---
VG Name nvaws
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 145.93 GiB
PE Size 4.00 MiB
Total PE 37359
Alloc PE / Size 26880 / 105.00 GiB
Free PE / Size 10479 / 40.93 GiB
VG UUID BBudpK-uLAo-ttes-g2ll-8jyI-xh74-J7xN8n
12:01:35|nva@nvaws[~] > sudo lvdisplay
--- Logical volume ---
LV Name /dev/nvaws/home
VG Name nvaws
LV UUID bB5jZc-1jeP-Eptl-WKzi-20C1-1FCB-2EWm3p
LV Write Access read/write
LV Status available
# open 1
LV Size 60.00 GiB
Current LE 15360
Segments 4
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Name /dev/nvaws/usr
VG Name nvaws
LV UUID 5XtAi2-Vwqo-ieHj-NrG5-jNbk-cE5z-35aHyj
LV Write Access read/write
LV Status available
# open 1
LV Size 40.00 GiB
Current LE 10240
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Name /dev/nvaws/db
VG Name nvaws
LV UUID ahxV6P-vpjY-aRAw-bhcZ-oPGZ-2y9x-zhjlp5
LV Write Access read/write
LV Status available
# open 1
LV Size 5.00 GiB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
12:01:50|nva@nvaws[~] >
12:02:03|nva@nvaws[~] > sudo pvdisplay
--- Physical volume ---
PV Name /dev/md1
VG Name nvaws
PV Size 145.93 GiB / not usable 960.00 KiB
Allocatable yes
PE Size 4.00 MiB
Total PE 37359
Free PE 10479
Allocated PE 26880
PV UUID cTYM85-ad2e-60i4-Pze5-9GXO-T4PC-DR7g9r
12:02:06|nva@nvaws[~] >
我希望你们能比我做得更多:)
一句话:我home
昨天扩展了逻辑卷,并增加了10GB。这似乎是最有可能的候选人。所以我想这会表现出来。