Procedure for removing local disk node on cluster

frankz

Well-Known Member
Nov 16, 2020
396
25
48
Hi everyone, I have read that to locally unmount and delete an ext4 disk or other filesystem in a node that is part of a cluster, as usual, umount the disk and then access the contents. Then open a shell and navigate to etc / systemd-d / system / mountpoint.mount. And delete the link. I noticed that this kind of procedure in my opinion could be incorrect as the disk seems to be managed by systemd and therefore I don't see why to manually delete the link instead of issuing the command from the node where the disk resides locally: "systemctl disable mnt -pve-volumexxx.mount and then systemctl remove mnt-pve-volumexxx.mount. I was asking the more experts if what I just wrote is correct or if the manual removal should be done. Thanks to all.
 
Hi,

A.F.I.K. there is no "systemctl remove".
But what I know for sure in the systemd version Debian ships there is no remove option.
 
Hi,

A.F.I.K. there is no "systemctl remove".
But what I know for sure in the systemd version Debian ships there is no remove option.
Thanks it is as you say, perhaps with the disable parameter that should remove the link. However, how written would it be more correct with the disable command? Thanks
 
However, how written would it be more correct with the disable command?
This is not correct because "disable" can reset when a new package will be installed.
You must use "systemd mask" but then the config file will still exist and this is not good.
 
This is not correct because "disable" can reset when a new package will be installed.
You must use "systemd mask" but then the config file will still exist and this is not good.
Ok, so I understand that it is best to delete it manually. Anyway thanks