Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
xfs_admin changes XFS settings that are fixed at creation, mainly the label and the UUID. The file system must be unmounted for changes (newer versions can set the label of a mounted file system with xfs_io -c 'label -s NAME' MOUNTPOINT).
Zo schrijf je het
xfs_admin [-eflpu] [-O FEATURES] [-c 0|1] [-L LABEL] [-U UUID] DEVICE [LOGDEV]Opties 12
Meest gebruikt
Niets past bij dit filter.
Voorbeelden 10
$ als gewone gebruiker# als root (of met sudo)
1Show the label and UUID
xfs_admin -l -u /dev/vdb1 label = "data" UUID = 4e5c7a6b-3f1d-4c2e-9a5b-7d2f8e1c0a93Same values as blkid.
2Set a label
umount /data; xfs_admin -L data /dev/vdb1Unmount first.
3Remove the label
xfs_admin -L -- /dev/vdb1Clears it.
4New UUID for a cloned disk
xfs_admin -U generate /dev/vdb1Two XFS file systems with the same UUID cannot be mounted at the same time.
5Mount a clone once without changing it
mount -o nouuid /dev/vdc1 /mntTemporary workaround.
6Label on a mounted file system (newer xfsprogs)
xfs_io -c 'label -s data' /dataNo unmount needed.
7Enable timestamps after 2038
xfs_admin -O bigtime=1 /dev/vdb1New file systems have it by default.
8Check the result
lsblk -f /dev/vdb1LABEL and UUID columns.
9Fix fstab after a UUID change
Update the UUID in fstab or the system may not boot.
10Info of a mounted XFS
xfs_info /dataxfs_admin needs unmounted devices; xfs_info works on mounted ones.
Niets past bij dit filter.
Exitcodes
0 :: Done. 1 :: Error.