To mount a Volume follow the proper step. Firstly, the user must create and attach the volume to the instance before the mount volume.
Users can use this link to learn how to create volume and attach volumes
1. Use SSH or the console to connect to the user instance. By default, user Instance should identify a new drive
named /dev/vdc. Using the tools lsblk or fdisk -l, the user can double-check.
# lsblk
Example of output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 30G 0 disk
└─vda1 253:1 0 30G 0 part /
vdc 253:32 0 30G 0 disk
2. Make a mount point for the data in user Volume:
# mkdir Volume
3. Format the filesystem for the Volume:
# mkfs.et4 /dev/vdc
Example of output:
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1966080 inodes, 7864320 blocks
393216 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2155872256
240 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
4. Mount the Volume with the above mount point:
# mount /dev/vdc /Volume
5. The volume will be mounted automatically.
# df -h
Example of output:
Filesystem Size Used Avail Use% Mounted on
devtmpfs 486M 0 486M 0% /dev
tmpfs 496M 0 496M 0% /dev/shm
tmpfs 496M 13M 483M 3% /run
tmpfs 496M 0 496M 0% /sys/fs/cgroup
/dev/vda1 30G 1.7G 29G 6% /
tmpfs 100M 0 100M 0% /run/user/0
/dev/vdb 30G 45M 28G 1% /GBCloud_Volume
/dev/vdc 30G 45M 28G 1% /Volume