Create new xfs Filesystem
Add a new Hard Disk to Linux
How do I mount a disk in XFS
PURPOSE: All documents are provided on this Blog just for educational purposes only. Please make sure that you run it in your test environment before to move on to production environment.
# First assign a disk via VCenter
# Now we can add and mount new assign disk to the Linux system.
# To find which host bus number is relevant.
grep mpt /sys/class/scsi_host/host?/proc_name
/sys/class/scsi_host/host0/proc_name:mptspi <<== this ist the output
# Scan scsi host device 0.
echo "- - -" > /sys/class/scsi_host/host0/scan
# Now you should be able to see the new Disk.
fdisk -l
mkfs.xfs /dev/sdb
mkdir /data
mount /dev/sdb /data
df -hl
# Add the entry in the fstab file
vi /etc/fstab
/dev/sdb /data xfs defaults 0 0
Done.
If you want to create ext4 file system. Please use the following steps:
fdisk -l
fdisk /dev/sdc
n
enter
enter
enter
p
mkfs.ext4 /dev/sdc1
blkid
vi /etc/fstab
UUID=832d4328-3dde-4861-b57b-06ce2be7245g /data ext4 defaults 0 0
Your comments are most valuable and it would help me to come up with better posts.