Linux认证辅导:RH436(5)

 

 

首页Linux教程

背景:

阅读新闻

Linux认证辅导RH436-7 GFS文件系统

[日期:2012-01-26]   来源:Linux社区  作者:netsword   [字体:]  

十七、GFS超级块的修改(GFS Super block changes)
1、lock manager
gfs_tool sb <dev> proto [lock_dlm,lock_nolock]
[root@node1 /]# umount /var/www/html
#修改superblock时,所有node必须umount
 
[root@node1 /]# gfs_tool sb /dev/vg01/lv01 proto lock_nolock
You shouldn't change any of these values if the filesystem is mounted.
Are you sure? [y/n] y
current lock protocol name = "lock_dlm"
new lock protocol name = "lock_nolock"
Done
 
2、Lock table name
gfs_tool sb <dev> table cluster1:gfslv
[root@node1 /]# gfs_tool sb /dev/vg01/lv01 table cluster:gfslv
You shouldn't change any of these values if the filesystem is mounted.
Are you sure? [y/n] y
current lock table name = "cluster8:gfslv01"
new lock table name = "cluster:gfslv"
Done
#修改后node1将无法挂载/dev/vg01/lv01,因node1的cluster为cluster8
#多用于磁盘移植到新的cluster中
 
3、List superblock information
gfs_tool sb <dev> all
[root@node1 /]# gfs_tool sb /dev/vg01/lv01 all
  mh_magic = 0x01161970
  mh_type = 1
  mh_generation = 0
  mh_format = 100
  mh_incarn = 0
  sb_fs_format = 1309
  sb_multihost_format = 1401
  sb_flags = 0
  sb_bsize = 4096
  sb_bsize_shift = 12
  sb_seg_size = 16
  no_formal_ino = 19
  no_addr = 19
  no_formal_ino = 20
  no_addr = 20
  no_formal_ino = 23
  no_addr = 23
  sb_lockproto = lock_nolock
  sb_locktable = cluster:gfslv
  no_formal_ino = 21
  no_addr = 21
  no_formal_ino = 22
  no_addr = 22
  sb_reserved =
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

 

Linux命令之bc - 浮点计算器、进制转换

计算Linux系统资源的简单脚本

相关资讯      

本文评论   查看全部评论 (0)


评论声明

尊重网上道德,遵守中华人民共和国的各项有关法律法规

承担一切因您的行为而直接或间接导致的民事或刑事法律责任

本站管理人员有权保留或删除其管辖留言中的任意内容

本站有权在网站内转载或引用您的评论

参与本评论即表明您已经阅读并接受上述条款

 

 

 

最新资讯

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/22717.html