今天萌图网发布服务器的磁盘几乎满了 只有在线扩容了
[root@mio-26 ~]# pvcreate /dev/sdb Physical volume "/dev/sdb" successfully created [root@mio-26 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_mio26-LogVol00 1.4T 1.3T 30G 98% / tmpfs 7.5G 0 7.5G 0% /dev/shm /dev/vda1 194M 27M 157M 15% /boot [root@mio-26 ~]# vgdisplay --- Volume group --- VG Name vg_mio26 System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 2 Act PV 2 VG Size 1.39 TiB PE Size 4.00 MiB Total PE 364492 Alloc PE / Size 363981 / 1.39 TiB Free PE / Size 511 / 2.00 GiB VG UUID L2z3mA-mr1X-nuhS-1vXe-v2dD-coio-LrgaLq [root@mio-26 ~]# vgextend /dev/vg_mio26 /dev/sdb Volume group "vg_mio26" successfully extended [root@mio-26 ~]# lvextend -L +1024G /dev/vg_mio26/LogVol00 Extending logical volume LogVol00 to 2.39 TiB Logical volume LogVol00 successfully resized [root@mio-26 ~]# resize2fs /dev/vg_mio26/LogVol00 resize2fs 1.41.12 (17-May-2010) Filesystem at /dev/vg_mio26/LogVol00 is mounted on /; on-line resizing required old desc_blocks = 89, new_desc_blocks = 153 Performing an on-line resize of /dev/vg_mio26/LogVol00 to 641152000 (4k) blocks.