solusvm KVM vm space increase

we have vps with 50GB hard diskand we want it disk space
1- First 
we check with fdisk -l via ssh
it show the partation like this

Disk /dev/vda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00065368

Device Boot Start End Blocks Id System
/dev/vda1 * 1 6266 50329408 83 Linux
/dev/vda2 6266 6527 2097152 82 Linux swap / Solaris

and we need more 100 GB disk space

2- increase hd space in resoureces solusvm admin panel
3- reboot the vm from solusvm panel
4- after rebooting login vm via puuty
5- use this command to check the partation fdisk -l
it show like this
Disk /dev/vda: 161.1 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00065368

Device Boot Start End Blocks Id System
/dev/vda1 * 1 6266 50329408 83 Linux
/dev/vda2 6266 6527 2097152 82 Linux swap / Solaris

It show Disk /dev/vda: 161.1 GB but it not show in partation

6- Now we make partation via fdisk
run this command fdisk /dev/vda and you see like this

fdisk /dev/vda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help):


press p for print current partation

press n for new partation
you can see

e extended
p primary
press p
we have 1 and 2 primary and press 3 for third
It asked for starting cylinder you can press enter for default
and then ending cylinder which is also default
press w for write partation

7-Now you can check it again fdisk -l

Disk /dev/vda: 161.1 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00065368

Device Boot Start End Blocks Id System
/dev/vda1 * 1 6266 50329408 83 Linux
/dev/vda2 6266 6527 2097152 82 Linux swap / Solaris
/dev/vda3 6527 19581 104856798+ 83 Linux

Here you can see partation vda3
now reboot the vps to add partation in kernal

Now we format and mount it
It is format with this command
8-mkfs.ext4 /dev/vda3
after format we mount it
9-first make directory mkdir -p /home2
and then mount
mount /dev/vda3 /home2

10 please add this in fstab
cd /etc
vi fstab add like this
#
/dev/vda1 / ext4 defaults 1 1
/dev/vda2 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/vda3 /home2 ext4 defaults 0 0

you can check it
df -h

Thanks

  • kvm, kvm and solusvm and hard disk, kvm hard disk space increase
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Installation of cpanel

Cpanel Installation (Centos 6x)1- Requiremnets A fresh and running VPS or dedicated CentOS 6.x...

IS My site is down

IS My site is downDear Valuable ClientsMost Coman issues.1- My site is not open2-server is down3-...

Understanding Linux CPU Load - when should you be worried

Understanding Linux CPU Load - when should you be worriedMost people have an inkling of what the...

Installation of firewall(CSF)

Installation ============ Installation is quite straightforward: cd /usr/src rm -fv csf.tgz...

ClamAV scan from command line on whm server

A - How to run clamscan to particular user account in cpanel server ?...

Powered by WHMCompleteSolution