How to format a new volume in Linux as ext4 or ext3
In this article i will walk you thru the steps you need to format a new volume as ext4 format and make it available to your Linux box.
We have a volume called /dev/sdg and at the moment it needs formatting.
To format the new volume to ext4 file system type we will use mkfs.ext4 utility as root user.
you need to provide him with the y falg to continue.
Now we can check that our volume thou is no mounted the file system type if ext4
Great we can see that now we have the volume formatted with ext4 fs type.
Next we need to mount the new formatted volume to our Linux host
we are going to mount it on directory /vertica_storage/t1_data_03
We can see that our volume is mounted.
Add the new new mount point to /etc/fstab file.
The configuration file /etc/fstab contains the necessary information to automate the process of mounting partitions. In a nutshell, mounting is the process where a raw (physical) partition is prepared for access and assigned a location on the file system tree (or mount point).
Wanna know more about /etc/fstab file ? Read the article Fstab in detail.