UUID=ea60c69a-1648-41eb-979a-dfc7a82b65bc / xfs defaults,discard 0 0
# /var was on /dev/sda2 during installation
UUID=b0675bdf-9417-48fc-a692-65a8df0fe491 /var xfs defaults,discard 0 0
After reboot I check if the option is active.
root@cloud01:~# mount
...
/dev/sda1 on / type xfs (rw,relatime,attr2,inode64,noquota)
...
/dev/sda2 on /var type xfs (rw,relatime,attr2,discard,inode64,noquota)
It is active for the /var partition, but not for the / partition.
# / was on /dev/sda1 during installation
UUID=6b6bf66b-1d51-47b7-9f4f-8be583d900e6 / xfs rw,relatime,attr2,inode64,noquota,discard 0 0
but after I restarted the VM it is not active:
root@erp01:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1004425,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=1616236k,mode=755)
/dev/sda1 on / type xfs (rw,relatime,attr2,inode64,noquota)