With the exception of the first hard disk (HD) present in the Cloud Server, the additional ones (HD1, HD2, HD3) are supplied RAW: it is necessary to partition and format the RAW space to be able to use it in the Operating System.
Disk /dev/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 2610 20964793+ 82 Linux swap / Solaris
/dev/sdb2 2611 3916 10490445 83 Linux
- Access the Cloud Server via SSH or via Applet Java.
- Once you have accessed it, type
fdisk -l from the command line and press enter.
- The information will then be displayed on the disks installed and their partitions.
- Identify the disk to which the space was added and check the number of partitions already present.
- Launch the CFdisk utility from the command line indicating the disk you want to partition by typing for example
cfdisk /dev/sdb and pressing enter (in this example the disk you want to repartition is dev/sdb/).
- A screen will appear with the features of the disk, and at the top the main partition will be listed and immediately below without a partition we find the space you just added listed. With the down arrow select the line for the space added; with the right arrow move to the command [
New] and press enter. You will be asked to choose between the first two options [
Primary] and [
Logical] for the new partition: select for example [
Primary] and confirm.
Then you will be asked to choose the size of the partition (if the number suggested is left unchanged a partition will be created for all the new disk space) and confirm. The new partition will then be created, and is listed in the main screen with the name
sdb2 in our example.
- At this point by still moving with the arrow keys and selecting [
Type] you can choose the Filesystem on the partition created: you will be offered a list of Filesystem types, then type the code corresponding to the type chosen and confirm by pressing enter. The initial screen will be updated with the choice type for the partition created.
- From the main screen by selecting [
Write] you can format the partition created: you will be asked for confirmation to continue with the operation; after a few moments the operation will be completed and you will go back to the main screen.
- To exit move to [
quit] and to check by re-typing
fdisk -l we can also see the new partition created in the list of disks.
The operations described have an exclusively exemplary nature: the improper use or use without due care and skill, can cause the partial and/or total loss of data, and in some cases may disrupt the correct operation of the virtual machine. Using this guide without the appropriate skills is not recommended. Aruba S.p.A. does not accept any responsibility for any problems or damage caused by using these guides.