How to Convert Non-LVM to LVM ?
I want to convert below filesystems to LVM based in linux.I have free disk /dev/xvdb of 187G.
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 105G 4.3G 96G 5% /
/dev/xvda1 99M 25M 70M 26% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
[root@localhost ~]#
Please suggest me how to convert non-LVM to LVM.
[root@localhost ~]# fdisk -l
Disk /dev/xvda: 124.6 GB, 124695244800 bytes
255 heads, 63 sectors/track, 15160 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 13 104391 83 Linux
/dev/xvda2 14 14115 113274315 83 Linux
/dev/xvda3 14116 15160 8393962+ 82 Linux swap / Solaris
Disk /dev/xvdb: 187.9 GB, 187904819200 bytes
255 heads, 63 sectors/track, 22844 cylinders
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 105G 4.3G 96G 5% /
/dev/xvda1 99M 25M 70M 26% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
[root@localhost ~]#
Please suggest me how to convert non-LVM to LVM.
[root@localhost ~]# fdisk -l
Disk /dev/xvda: 124.6 GB, 124695244800 bytes
255 heads, 63 sectors/track, 15160 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 13 104391 83 Linux
/dev/xvda2 14 14115 113274315 83 Linux
/dev/xvda3 14116 15160 8393962+ 82 Linux swap / Solaris
Disk /dev/xvdb: 187.9 GB, 187904819200 bytes
255 heads, 63 sectors/track, 22844 cylinders
0