linux - 扩展磁盘空间不识别
PHPz
PHPz 2017-04-17 11:45:11
0
0
920

环境是虚拟机
centos 5.5

一开始虚拟机设置8G 磁盘,后扩容到60G

在增加逻辑卷空间的第一次报错 是
Couldn't find device with uuid 'nsLqhQ-7new-6cSe-EWQz-kusd-U2Ht-zJ2joY'.
类的错误

通过

 vgreduce --removemissing  VolGroup00  

清理后从新 添加

现在的情况是 逻辑卷空间添加上了但是 df -h 看到的依旧是没有添加上去

[root@A ~]# pvs
  PV         VG         Fmt  Attr PSize  PFree
  /dev/sda2  VolGroup00 lvm2 a-    7.88G     0
  /dev/sda3  VolGroup00 lvm2 a-   51.97G 51.97G
[root@A ~]# vgs
  VG         #PV #LV #SN Attr   VSize  VFree
  VolGroup00   2   2   0 wz--n- 59.84G 51.97G
[root@A ~]# lvs
  LV       VG         Attr   LSize Origin Snap%  Move Log Copy%  Convert
  LogVol00 VolGroup00 -wi-ao 4.00G
  LogVol01 VolGroup00 -wi-ao 3.88G
[root@A ~]# df -h
文件系统              容量  已用 可用 已用% 挂载点
/dev/mapper/VolGroup00-LogVol00
                      3.9G  3.9G   46M  99% /
/dev/sda1              99M   13M   82M  13% /boot
tmpfs                 252M     0  252M   0% /dev/shm
[root@A ~]# fdisk -l

Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1044     8281507+  8e  Linux LVM
/dev/sda3            1045        7832    54524610   8e  Linux LVM
[root@A ~]#
 resize2fs /dev/VolGroup00/LogVol00

resize2fs /dev/VolGroup00/LogVol00
resize2fs 1.39 (29-May-2006)
The filesystem is already 1048576 blocks long.  Nothing to do!

和fsck 命令都试过了 没有什么效果

PHPz
PHPz

学习是最好的投资!

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!