1

In my RHEL 8.2 box I want to remove the disk space from /home (/dev/VGSYSTEM/LVHOME).

I umount /home, mount /dev/VGSYSTEM/LVHOME in /mnt and try to move the only home directory in /mnt to /home... but Operation not permitted

# umount /home
# mkdir /home/example
mkdir: cannot create directory '/home/example': Operation not permitted
# ls -ld /home
drwxr-xr-x. 2 root root 6 Sep 18  2020 /home
# getenforce
Disabled
# lsattr -l /home  # output is empty
# chmod 000 /home
chmod: changing permissions of '/home': Operation not permitted
# mkdir /example   # No error

The root file system type is XFS.

Any ideas?

update: this issue happens with /opt, too

Jdamian
  • 285
  • 3
  • 19

1 Answers1

1

/home and /opt actually ARE immutable but I did not realize because I assumed lsattr -l /home and lsattr /home would show the attributes of /home -- big wrong assumption

lsattr -d /home /opt does show the actual attributes

# lsattr -d /home /opt
----i--------------- /home
----i--------------- /opt
Jdamian
  • 285
  • 3
  • 19