Leaseweb is a Dutch cloud computing and web services company with offices in Europe, Asia, and the United States. Leaseweb is a subsidiary of OCOM, an internet services company headquartered in Amsterdam, the Netherlands
Instances
and hover over the machine.Volumes
then resize the disk accordingly.root@mysql1-lw-us:/var/log/mysql# fdisk /dev/vda
Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
Command (m for help): p Disk /dev/vda: 250 GiB, 268435456000 bytes, 524288000 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 Disklabel type: dos Disk identifier: 0x5f0846a2
Device Boot Start End Sectors Size Id Type /dev/vda1 * 2048 41940991 41938944 20G 83 Linux
Command (m for help): d Selected partition 1 Partition 1 has been deleted.
Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-524287999, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-524287999, default 524287999):
Created a new partition 1 of type 'Linux' and of size 250 GiB.
Command (m for help):
Command (m for help): w
The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
root@mysql1-lw-us:/var/log/mysql# partprobe root@mysql1-lw-us:/var/log/mysql# resize2fs /dev/vda1 resize2fs 1.42.13 (17-May-2015) Filesystem at /dev/vda1 is mounted on /; on-line resizing required olddescblocks = 2, newdescblocks = 16 The filesystem on /dev/vda1 is now 65535744 (4k) blocks long.