linux独立服务器如何使用WEBMIN创建LVM分区/增加lvm分区?我们可以通过ssh的命令行来实现lvm,但是,用webmin图形化来创建和管理lvm分区,要简单得多,请看下图:
[[email protected]]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 164G 2.2G 153G 2% /
/dev/sdb1 452G 199M 428G 1% /vz
/dev/sda2 284G 191M 269G 1% /web
/dev/sda1 190M 37M 144M 21% /boot
tmpfs 7.7G 0 7.7G 0% /dev/shm
[[email protected]]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 38270 307202962+ 83 Linux
/dev/sda3 38271 38792 4192965 82 Linux swap / Solaris
/dev/sda4 38793 60801 176787292+ 5 Extended
/dev/sda5 38793 60801 176787261 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 60801 488384001 83 Linux
卸载unmount已有的分区
添加新的LVM分区,创建LVM分区
增加lvm分区空间
[[email protected]]# vgdisplay
--- Volume group ---
VG Name host612
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 758.72 GB
PE Size 32.00 MB
Total PE 24279
Alloc PE / Size 0 / 0
Free PE / Size 24279 / 758.72 GB
VG UUID lvm6Q4-vJEy-jvmW-s5nl-wK81-gTwK-zLrXwE
[[email protected]]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 164G 2.2G 153G 2% /
/dev/sda1 190M 37M 144M 21% /boot
tmpfs 7.7G 0 7.7G 0% /dev/shm
[[email protected]]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 38270 307202962+ 83 Linux
/dev/sda3 38271 38792 4192965 82 Linux swap / Solaris
/dev/sda4 38793 60801 176787292+ 5 Extended
/dev/sda5 38793 60801 176787261 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 60801 488384001 83 Linux