Unused Disk Space

nasha

Verified User
Joined
Dec 6, 2016
Messages
13
Hi,
This is the VPS disk structure. After directadmin installation I can't use /sda2 space. I want to merge /sda1 and /sda2. to use 200GB space.

HTML:
 #ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2


HTML:
# fdisk -l

Disk /dev/sda: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000a7393

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    39845887    18873344   8e  Linux LVM

Disk /dev/mapper/cl-root: 17.3 GB, 17280532480 bytes, 33751040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/cl-swap: 2042 MB, 2042626048 bytes, 3989504 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

HTML:
# df
Filesystem          1K-blocks    Used Available Use% Mounted on
/dev/mapper/cl-root  16865280 1702528  15162752  11% /
devtmpfs              2446168       0   2446168   0% /dev
tmpfs                 2457120       0   2457120   0% /dev/shm
tmpfs                 2457120    8652   2448468   1% /run
tmpfs                 2457120       0   2457120   0% /sys/fs/cgroup
/dev/sda1             1038336  170520    867816  17% /boot
tmpfs                  491428       0    491428   0% /run/user/0
 
Thank you
But Can you please let me know how can I delete sda2 and resize sda1

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 83 Linux
/dev/sda2 2099200 39845887 18873344 8e Linux LVM
 
In order to delete sda2 and resize sda1, you will need to re-install OS on your VPS.
 
Back
Top