分类: SOLARIS
2014-11-24 17:15:48
下载文档可以访问我的豆丁:
以下主要介绍实现这个目的的关键步骤,给大家提供一个参考:
1. cd /dev/global/rdsk下,可以看到所有的did设备
2. newfs /dev/global/rdsk/d3s2(didadm –L查看共享设备的did ID)
3. vi /etc/vfstab(两边都要写入),输入以下入口项目:
/dev/global/dsk/d3s2 /dev/global/rdsk/d3s2 /testglobal ufs 1 no –
4. 注册storageplus资源
clrs create -g test-rg -t SUNW.HAStoragePlus -p FilesystemMountPoints=/testglobal -p AffinityOn=True testglobal-devices
查看资源状态:
scstat –g
root@cluster1 # scstat -g
-- Resource Groups and Resources --
Group Name Resources
---------- ---------
Resources: test-rg cluster-ldm testglobal-devices
-- Resource Groups --
Group Name Node Name State Suspended
---------- --------- ----- ---------
Group: test-rg cluster1 Online No
Group: test-rg cluster2 Offline No
-- Resources --
Resource Name Node Name State Status Message
------------- --------- ----- --------------
Resource: cluster-ldm cluster1 Online Online - LogicalHostname online.
Resource: cluster-ldm cluster2 Offline Offline
Resource: testglobal-devices cluster1 Online Online
Resource: testglobal-devices cluster2 Offline Offline