I created a virtual server but found that the space was too small, so I wanted to add additional disk space to it. After attaching it, I'm not able to see the newly attached disk using df -h
in the virtual server. How can I see the newly attached disk?
There are several commands that you can use: fdisk -l
and lsblk
.
The first disk drive should appear as xvda
. Usually, there is a second disk drive xvdb
that is used for swap. Your new disk will appear as xvdc
. Note that naming is OS-specific.
You will need to partition the new disk, format a file system and then mount the file system to a directory. The exact steps are OS-dependent.