Section Number and Name:
CHAPTER 15. SWAP SPACE
Describe the issue:
When changing /etc/fstab online in a systemd environment, a 'systemctl daemon-reload' must be run. After editing your /etc/fstab with the sed command, you'll need to run a 'systemctl daemon-reload'. The fstab isn't read and the mount units generated until that is run. Without that, you will have a mount unit created for the old swap LV that will attempt to mount whenever your trigger a udev change event.
Suggestions for improvement:
Maybe a hint at the end of the page. "If editing /etc/fstab online, ie. with no reboot, then 'systemctl daemon-reload' should be run afterwards to update systemd daemon"
The updated content is now published on the Customer Portal:
* 15.1.2. Creating an LVM2 Logical Volume for Swap
* 15.1.3. Creating a Swap File
* 15.2.2. Removing an LVM2 Logical Volume for Swap
* 15.2.3. Removing a Swap File
* 8.3.1. Mounting NFS File Systems Using /etc/fstab
* 13.2.3. Add the Partition to /etc/fstab
* 13.3. Removing a Partition
Thanks for your help. I'm closing this bug as CURRENTRELEASE.