lsattr: Inappropriate ioctl for device While reading flags

Posted by rchhe on Server Fault See other posts from Server Fault or by rchhe
Published on 2011-10-26T15:07:16Z Indexed on 2012/06/07 4:42 UTC
Read the original article Hit count: 728

Filed under:

For one of our Linux servers running CentOS 6.0, if I do lsattr /home, I get something like this (as root):

$lsattr /home
lsattr: Inappropriate ioctl for device While reading flags on /home/user
lsattr: Inappropriate ioctl for device While reading flags on /home/user
lsattr: Inappropriate ioctl for device While reading flags on /home/DIR

Now, I try to change something with chattr

$chattr -R -i /home
chattr: Inappropriate ioctl for device while reading flags on /home

Mount returns:

$mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda3 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)

I have no clue how to fix this. Could somebody help?

© Server Fault or respective owner

Related posts about linux