You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

OCI: How to Change the UUID of a XFS Filesystem

edited May 19, 2025 2:27PM in Linux

Note!!Please register a free account to access the full content and also to participate in Q&A in the community

Applies To:

Linux OS - Oracle Linux 7 and later

Oracle Cloud Infrastructure

Goal:

This document explains steps to change the UUID of a XFS filesystem(FS).

Solution:

1. From the following output, the /dev/sdb1 has xfs filesystem on it.

# df -Th /mnt/data1
Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/sdb1      xfs    35G  288M   35G   1% /mnt/data1

2. Run any of the following commands to view the current FS UUID.

# blkid /dev/sdb1
/dev/sdb1: LABEL="backups" UUID="ce71308c-2d55-444e-93a8-ddfba504fb89" BLOCK_SIZE="4096" TYPE="xfs" PARTLABEL="data1" PARTUUID="bd7ecb88-cf1d-412c-bfbd-54486a2abe3a"
# xfs_admin -u /dev/sdb1
UUID = ce71308c-2d55-444e-93a8-ddfba504fb89

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!