GPFS的高级功能实战操作系列
GPFS性能调优系列:
GPFS运维系列:
WORM (write once and read many) 文件是指写入一次,然后相关文件只能读不能写或修改。使用这种类型文件,可以对重要文件进行保护,防止被篡改。实现该需求需要使用一个不可变的fileset,操作步骤如下:
[root@gpfs02 gpfs1]# mmcrfileset gpfs2 fileset2
Fileset fileset2 created with id 1 root inode 134144.
[root@gpfs02 gpfs1]#
[root@gpfs02 gpfs1]# mmlsfileset gpfs2
Filesets in file system 'gpfs2':
Name Status Path
root Linked /gpfs/gpfs2
fileset2 Unlinked --
[root@gpfs02 gpfs1]#
mmlinkfileset _-J _directory
[root@gpfs02 gpfs1]# mmlinkfileset gpfs2 fileset2 -J /gpfs/gpfs2/fileset2
Fileset fileset2 linked at /gpfs/gpfs2/fileset2
[root@gpfs02 gpfs1]#
创建一个有读写权限的文件 testfile,然后添加一些内容在文件中,操作如下:
使用下面的命令将文件夹修改为只读:
[root@gpfs02 fileset2]# echo 'hello ' >> testfile
-bash: testfile: Read-only file system
[root@gpfs02 fileset2]# chmod +w testfile
chmod: changing permissions of 'testfile': Operation not permitted
[root@gpfs02 fileset2]# cat testfile
test test
test
test
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞4
添加新评论0 条评论