- 论坛徽章:
- 0
|
刚才做了个系统 Centos5.2的
做系统的时候只给根分区给了2G空间
使用yum更新以后,发现很多文件无法安装
根据错误提示,应该是根分区空间不足:
[('installing package kernel-2.6.18-164.el5 needs 33MB on the / filesystem', (9, '/', 33652736L)), ('installing package systemtap-runtime-0.9.7-5.el5 needs 33MB on the / filesystem', (9, '/', 33734656L)), ('installing package systemtap-0.9.7-5.el5 needs 37MB on the / filesystem', (9, '/', 38445056L)), ('installing package yum-fastestmirror-1.1.16-13.el5.centos needs 37MB on the / filesystem', (9, '/', 38502400L)), ('installing package yum-3.2.22-20.el5.centos needs 39MB on the / filesystem', (9, '/', 40206336L)), ('installing package hal-0.5.8.1-52.el5 needs 39MB on the / filesystem', (9, '/', 40505344L)), ('installing package kudzu-1.2.57.1.21-1.el5.centos needs 39MB on the / filesystem', (9, '/', 40828928L)), ('installing package system-config-network-tui-1.3.99.18-1.el5 needs 43MB on the / filesystem', (9, '/', 44707840L)), ('installing package system-config-network-1.3.99.18-1.el5 needs 43MB on the / filesystem', (9, '/', 44752896L)), ('installing package rhpxl-0.41.1-7.el5 needs 44MB on the / filesystem', (9, '/', 45113344L)), ('installing package pm-utils-0.99.3-10.el5.centos needs 44MB on the / filesystem', (9, '/', 45121536L)), ('installing package firstboot-tui-1.4.27.7-1.el5.centos needs 44MB on the / filesystem', (9, '/', 45998080L)), ('installing package firstboot-1.4.27.7-1.el5.centos needs 44MB on the / filesystem', (9, '/', 45985792L)), ('installing package NetworkManager-glib-0.7.0-9.el5 needs 45MB on the / filesystem', (9, '/', 46157824L)), ('installing package NetworkManager-0.7.0-9.el5 needs 48MB on the / filesystem', (9, '/', 50196480L))]
原本想在第二块硬盘上做个LVM然后吧根分区的所有文件全部考过来,然后使用LV重新创建个一个根分区挂载上,但是复制的时候发现根分区内的很多文件无法复制,刚才做了个LVM直接挂载到根分区,但是并没有显示空间有增加
不知道哦LVM能否扩充根分区的空间,请了解LVM的朋友给与帮助!
以下是我的系统信息
[root@cnet-5 ~]# pvdisplay -v
Scanning for physical volume names
--- Physical volume ---
PV Name /dev/sda2
VG Name vg2
PV Size 3.83 GB / not usable 2.12 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 980
Free PE 0
Allocated PE 980
PV UUID T8IXoM-4xPZ-3JyV-YLFB-CxN0-lLkz-1vXkqv
--- Physical volume ---
PV Name /dev/sda1
VG Name vg1
PV Size 7.66 GB / not usable 212.50 KB
Allocatable yes
PE Size (KByte) 4096
Total PE 1961
Free PE 1961
Allocated PE 0
PV UUID 4hGMp9-i9Gl-oi31-uC4x-4lOF-Lqt2-h70QmN
[root@cnet-5 ~]# vgdisplay -v
Finding all volume groups
Finding volume group "vg2"
--- Volume group ---
VG Name vg2
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 3.83 GB
PE Size 4.00 MB
Total PE 980
Alloc PE / Size 980 / 3.83 GB
Free PE / Size 0 / 0
VG UUID QbuDTa-iFkf-i5Lq-iEHm-1fuJ-LG1X-1HJOOB
--- Logical volume ---
LV Name /dev/vg2/back
VG Name vg2
LV UUID hKmi3w-CQiT-C2Gm-yzpR-b3mT-7e7c-BkVoTJ
LV Write Access read/write
LV Status available
# open 1
LV Size 3.83 GB
Current LE 980
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Physical volumes ---
PV Name /dev/sda2
PV UUID T8IXoM-4xPZ-3JyV-YLFB-CxN0-lLkz-1vXkqv
PV Status allocatable
Total PE / Free PE 980 / 0
Finding volume group "vg1"
--- Volume group ---
VG Name vg1
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 7.66 GB
PE Size 4.00 MB
Total PE 1961
Alloc PE / Size 0 / 0
Free PE / Size 1961 / 7.66 GB
VG UUID paSa19-Luhe-kce9-fM0C-Uu50-Pp3X-j7mLXD
--- Physical volumes ---
PV Name /dev/sda1
PV UUID 4hGMp9-i9Gl-oi31-uC4x-4lOF-Lqt2-h70QmN
PV Status allocatable
Total PE / Free PE 1961 / 1961
[root@cnet-5 ~]# lvdisplay -v
Finding all logical volumes
--- Logical volume ---
LV Name /dev/vg2/back
VG Name vg2
LV UUID hKmi3w-CQiT-C2Gm-yzpR-b3mT-7e7c-BkVoTJ
LV Write Access read/write
LV Status available
# open 1
LV Size 3.83 GB
Current LE 980
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
[root@cnet-5 ~]# df -Th
文件系统 类型 容量 已用 可用 已用% 挂载点
/dev/sdb2 ext3 2.0G 1.4G 521M 73% /
/dev/sdb5 ext3 13G 473M 12G 4% /data
/dev/sdb1 ext3 190M 11M 170M 7% /boot
tmpfs tmpfs 506M 0 506M 0% /dev/shm
/dev/mapper/vg2-back
ext3 3.8G 370M 3.3G 11% /data/vg1
[root@cnet-5 ~]# |
|