• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Adding a XFS Volume

March 7, 2019

Add a disk volume via cloud console. Then perform the following commands:

# check the new block
lsblk
# format
fdisk /dev/sdc
# create file system
mkfs.xfs -f /dev/sdc1
# get uuid
blkid /dev/sdc1
# vi /etc/fstab
UUID="xxxxxxxxxxxxxxxxxxxxx" /mnt/directory xfs defaults 0 0
# mount
mount -a

# check the new block lsblk # format fdisk /dev/sdc # create file system mkfs.xfs -f /dev/sdc1 # get uuid blkid /dev/sdc1 # vi /etc/fstab UUID="xxxxxxxxxxxxxxxxxxxxx" /mnt/directory xfs defaults 0 0 # mount mount -a

Filed Under: Linux Tagged With: add, fstab, mount, xfs

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023