ONTAP 是否支持从 Linux 修改文件属性,例如 CHATTR 命令?
适用场景
- Data ONTAP 7-模式
- 集群模式 Data ONTAP 8
- ONTAP 9
问题解答
ONTAP 不支持
chattr
和 lsattr
命令。示例:
从 Linux 本地磁盘:
从 NFS 挂载点:
[root@rhel1 ~]# chattr +i f1
[root@rhel1 ~]#
[root@rhel1 ~]# lsattr f1
----i----------- f1
[root@rhel1 ~]# chattr -i f1
[root@rhel1 ~]#
[root@rhel1 ~]# lsattr f1
---------------- f1
从 NFS 挂载点:
[root@rhel1 mnt]# chattr +i f1
chattr: Inappropriate ioctl for device while reading flags on f1
[root@rhel1 mnt]# lsattr
lsattr: Inappropriate ioctl for device While reading flags on ./f1