免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2143 | 回复: 7
打印 上一主题 下一主题

Cluster切换问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-03 15:29 |只看该作者 |倒序浏览
有主、备两台机器,主机切到备机上时,直接把主机的文件系统mount到备机上了,而备机上的文件系统不动

我现在想:

在切换的时候,先把备机上的部分文件系统umount掉,在mount上主机的文件系统。不知道可否实现?如何修改cluster配置文件?

不知道大家看明白没有,望指教

论坛徽章:
0
2 [报告]
发表于 2009-08-03 17:04 |只看该作者

回复 #1 jackyleelq 的帖子

看一下MCSG的手册,命令就都有了(到HP网站下一下)。

‘切换’行为实际是VGs控制权在主备机间的‘传递’;mount等问题,能在配置文件、脚本里设(看你MC是什么版本了,有差异)

论坛徽章:
0
3 [报告]
发表于 2009-08-03 18:55 |只看该作者
文件系统的切换,用MC/SG的package就能搞定。配置文件中有写VG,LV,FS以及mount_point信息的地方。

论坛徽章:
0
4 [报告]
发表于 2009-08-04 08:55 |只看该作者
原帖由 五“宅”一生 于 2009-8-3 18:55 发表
文件系统的切换,用MC/SG的package就能搞定。配置文件中有写VG,LV,FS以及mount_point信息的地方。


ctrl文件里,是这一块吧:
# FILESYSTEMS
# Filesystems are defined as entries specifying the logical volume, the
# mount point, the mount, umount and fsck options and type of the file system.
# Each filesystem will be fsck'd prior to being mounted. The filesystems
# will be mounted in the order specified during package startup and will
# be unmounted in reverse order during package shutdown. Ensure that
# volume groups referenced by the logical volume definitions below are
# included in volume group definitions above.
#
# Specify the filesystems which are used by this package. Uncomment
# LV[0]=""; FS[0]=""; FS_MOUNT_OPT[0]=""; FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]=""
# FS_TYPE[0]="" and fill in the name of your first logical volume,
# filesystem, mount, umount and fsck options and filesystem type
# for the file system. You must begin with LV[0], FS[0],
# FS_MOUNT_OPT[0], FS_UMOUNT_OPT[0], FS_FSCK_OPT[0], FS_TYPE[0]
# and increment the list in sequence.
#
# Note: The FS_TYPE parameter lets you specify the type of filesystem to be
# mounted. Specifying a particular FS_TYPE will improve package failover time.  
# The FSCK_OPT and FS_UMOUNT_OPT parameters can be used to include the
# -s option with the fsck and umount commands to improve performance for
# environments that use a large number of filesystems. (An example of a
# large environment is given below following the decription of the
# CONCURRENT_MOUNT_AND_UMOUNT_OPERATIONS parameter.)
#
# Example: If a package uses two JFS filesystems, pkg01a and pkg01b,
# which are mounted on LVM logical volumes lvol1 and lvol2 for read and
# write operation, you would enter the following:
#      LV[0]=/dev/vg01/lvol1; FS[0]=/pkg01a; FS_MOUNT_OPT[0]="-o rw";
#      FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]=""; FS_TYPE[0]="vxfs"
#
#      LV[1]=/dev/vg01/lvol2; FS[1]=/pkg01b; FS_MOUNT_OPT[1]="-o rw"
#      FS_UMOUNT_OPT[1]=""; FS_FSCK_OPT[1]=""; FS_TYPE[1]="vxfs"
#
#LV[0]=""; FS[0]=""; FS_MOUNT_OPT[0]=""; FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]=""
#FS_TYPE[0]=""


要mount,就这么写
LV[0]="/dev/vg01/lvol1"; FS[0]="/pkg01a"; FS_MOUNT_OPT[0]="-o rw";FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]=""; FS_TYPE[0]="vxfs"

但,要umount,该怎么写?

论坛徽章:
0
5 [报告]
发表于 2009-08-04 17:25 |只看该作者
自动umount,不用标注什么

论坛徽章:
0
6 [报告]
发表于 2009-08-04 21:24 |只看该作者
难道LZ实现不了?

论坛徽章:
0
7 [报告]
发表于 2009-08-05 00:12 |只看该作者
要不就自己写脚本, 把信息导出到map文件候umount, 需要是再整回来

论坛徽章:
0
8 [报告]
发表于 2009-08-06 15:09 |只看该作者
楼主问的是这个意思吗?
我还真没看懂
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP