Warning: Constant ABSPATH already defined in /homepages/37/d212422177/htdocs/agitated/blog/wp-config.php on line 21
nick's site | 2020 | November

xfs labels on mounted volumes


turns out you can’t directly create an xfs label on a mounted volumes.

xfs_admin -L /dev/volume doesn’t work. 🙁

thanks to a coworker, i learned you can issue a raw xfs command to set the label instead.

xfs_io -c "label -s SOMELABEL" /some_mountpoint

verify with xfs_admin -l /dev/volume

how’d i discover this? mdraid volume wouldn’t keep the device name across reboots in centos 7. i changed /etc/fstab to mount with the label instead. also screw UUIDs.

Warning: Undefined variable $metastring in /homepages/37/d212422177/htdocs/agitated/blog/wp-content/themes/tomorrow/functions.php on line 129
Categories : geek