Partition Issue
Hi,
I have a dedicated server which has one hard drive of 120gb SSD. I want to use this server for virtualization with kvm. I am going to make it as solus vm slave and then solusvm master would connect it. But before i install solusvm slave on it. It needs to be do certain partition which has LVM and i can create VG out of it. Now i m completely new to this. My DC guys gave me the server and this is the info :- Now, when i go inside the server and run these commands [root@node ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 39G 923M 36G 3% / tmpfs 7.8G 0 7.8G 0% /dev/shm /dev/sda1 194M 28M 157M 15% /boot [root@node ~]# fdisk -l Disk /dev/sda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x0001ac67 Device Boot Start End Blocks Id System /dev/sda1 * 1 26 204800 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 26 5125 40960000 83 Linux /dev/sda3 5125 5635 4096000 82 Linux swap / Solaris [root@node ~]# Now, basically i want to create a LVM partition of the remaining space and create a VG out of it? Any idea how it can be done? |
Quote:
Basically you create a nother partition, tag lvm on the partition (also this is not really needed). Then use pvcreate to create a physical volume, then vgcreate to create a volume group and last but most importand lvcreate to create a logical volume. http://www.debian-administration.org/articles/410 |
I reinstalled the centos using an image and i get this now
[root@node ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg-root 73G 959M 68G 2% / tmpfs 7.8G 0 7.8G 0% /dev/shm /dev/sda1 243M 29M 202M 13% /boot /dev/mapper/vg-home 29G 173M 28G 1% /home /dev/mapper/vg-tmp 1008M 34M 924M 4% /tmp [root@node ~]# fdisk -l Disk /dev/sda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x0001ac67 Device Boot Start End Blocks Id System /dev/sda1 * 1 32 256000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 32 14594 116963328 8e Linux LVM Disk /dev/mapper/vg-root: 78.8 GB, 78785806336 bytes 255 heads, 63 sectors/track, 9578 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Disk /dev/mapper/vg-swap: 8422 MB, 8422162432 bytes 255 heads, 63 sectors/track, 1023 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Disk /dev/mapper/vg-home: 31.5 GB, 31474057216 bytes 255 heads, 63 sectors/track, 3826 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Disk /dev/mapper/vg-tmp: 1073 MB, 1073741824 bytes 255 heads, 63 sectors/track, 130 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 [root@node ~]# vgscan Reading all physical volumes. This may take a while... Found volume group "vg" using metadata type lvm2 [root@node ~]# |
Looking good.
System working as expected? Any more questions? |
All times are GMT -5. The time now is 07:12 PM. |