Add the new disk on the servers and How to
mount the disk on the server with the new mount point name?
- Temporary Mounting
- Permanent Mounting
Temporary Mounting
This type of mounting is used to temporarily
mount a disk or pen-drive on the server. Following are the steps to mount the
disk on the server.
Step
1: Add disk from
the platform
Step 2: Login into the server using SSH/Putty
Step
3: Now use lsblk command to list the available disks on
the server.
Step 4: Create the partition of the disks which is added in to the
server from the storage
Step 5: Now
create a filesystem on the disk using mkfs
command.
Here xfs is a filesystem we can also use other file system(
ext4,ext3,etx2) according to our need.
Step 6: If mounting point is not available on the
server so create it using mkdir command
Step 7: Now
mount the device using mount command
Here
/dev/sdb1 is device name
/GG is directory or
mounting point on which you want to mount the device
But the main drawback of
temporary mount is after the server reboot mounting is not persistent on the
server, so to mitigate this problem we are going to use permanent mount on the
server. Please follow the following steps for permanent mount.
Permanent Mounting
Step1: After formatting the disk UUID is
assigned to device so to mount the device permanently
A UUID is required. For getting UUID of the device use this command
⇒ copy the UUID
Step2: For
permanent mount we need to edit /etc/fstab file
And we have to add the content in
following format
Here First
field is the device name or UUID of the device. Here we are using UUID but we
can also use device name (exp:-/dev/vdb) to mount the device permanently but
recommended is to use UUID level to mount the disk.
Second
field specifies the mount point
Third field specifies the
file system of the disk
The fourth field
specifies the mount point options. We can specify many mount options separated
by the commas. Here we are using defaults
The fifth field specifies
the dump utility if we use 0 then it means dump utility not backing up the
device. IF we are using this option as 1 then the dump utility should backup
the device.
The sixth field specifies
the fsck it means file system check at boot time if this value is zero it means
file system is not checked at boot time and if we use this option as 1 then it
means file system will be checked at boot time. The higher value in this field
specifies the priority of file system check of devices.
Note: If you are using Micro
host console so you cannot copy UUID then you can redirect the output of the
command
Thank you to All ....
Thank you for
giving your valuable time to read the above information.
No comments:
Post a Comment