Adding shared dg to cluster:-
# cfsdgadm add testdg Z10DB=sw
Disk Group is being added to cluster configuration...
# cfsdgadm add testdg Z10CI=sw
Disk Group is being added to cluster configuration...
To display
# cfsdgadm display testdg
NODE NAME ACTIVATION MODE
Z10CI sw
Z10DB sw
To check mode of cfs cluster
# vxdctl -c mode
mode: enabled: cluster active - MASTER
master: Z10DB
# vxclustadm nidmap
Name CVM Nid CM Nid State
Z10CI 0 1 Joined: Slave
Z10DB 1 0 Joined: Master
# vxclustadm nidmap
Name CVM Nid CM Nid State
Z10CI 0 1 Joined: Slave
Z10DB 1 0 Joined: Master
To change master in cfs
# vxclustadm setmaster Z10CI
# vxclustadm nidmap
Name CVM Nid CM Nid State
Z10CI 0 1 Joined: Master
Z10DB 1 0 Joined: Slave
# vxclustadm setmaster Z10DB
# vxclustadm nidmap
Name CVM Nid CM Nid State
Z10CI 0 1 Joined: Slave
Z10DB 1 0 Joined: Master
# vxdg -s init shared_test_dg d0=c2d16 cds=off
# vxdisk list
c2d16s2 auto:sliced d0 shared_test_dg online shared
# cfsdgadm add shared_test_dg all=sw
Disk Group is being added to cluster configuration...
1# cfsdgadm display
Node Name : Z10CI
DISK GROUP ACTIVATION MODE
shared_test_dg sw
Node Name : Z10DB
DISK GROUP ACTIVATION MODE
shared_test_dg sw
# vxassist -g shared_test_dg make shared_vol1 1G
# mkfs -F vxfs /dev/vx/rdsk/shared_test_dg/shared_vol1
version 9 layout
2097152 sectors, 1048576 blocks of size 1024, log size 16384 blocks
rcq size 1024 blocks
largefiles supported
# cfsmntadm display
Cluster Configuration for Node: Z10CI
No mount point registered with cluster configuration
Cluster Configuration for Node: Z10DB
No mount point registered with cluster configuration
# cfsmntadm add shared_test_dg shared_vol1 /test all=cluster
Warning: V-35-416: cfsmntadm: Check the filesystem on the shared volume shared_vol1.
Mount Point is being added...
/test added to the cluster-configuration
# cfsmntadm display
Cluster Configuration for Node: Z10CI
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
/test Regular shared_vol1 shared_test_dg NOT MOUNTED
Cluster Configuration for Node: Z10DB
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
/test Regular shared_vol1 shared_test_dg NOT MOUNTED
# cfsmount /test
Mounting...
[/dev/vx/dsk/shared_test_dg/shared_vol1] mounted successfully at /test on Z10CI
[/dev/vx/dsk/shared_test_dg/shared_vol1] mounted successfully at /test on Z10DB
# cfsumount /test
Unmounting...
/test got successfully unmounted from Z10CI
/test got successfully unmounted from Z10DB
#cfsmntadm delete /test
Mount Point is being removed...
/test deleted successfully from cluster-configuration
# cfsmntadm add shared_test_dg shared_vol1 /test all=cluster
Mount Point is being added...
/test added to the cluster-configuration
# cfsmount /test
Mounting...
[/dev/vx/dsk/shared_test_dg/shared_vol1] mounted successfully at /test on Z10CI
[/dev/vx/dsk/shared_test_dg/shared_vol1] mounted successfully at /test on Z10DB
# cfsshare config -p nfs shared_test_dg shared_vol1 /test
# cfsshare display
CNFS metadata filesystem : /test
Protocols Configured : NFS
# cfsshare addvip net0 10.66.10.112 255.255.255.0
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 10.66.10.108/24
net0/v4a static ok 10.66.10.112/24
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 10.66.10.108/24
net0/v4a static ok 10.66.10.112/24
# cfsshare deletevip 10.66.10.112
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 10.66.10.108/24
# cfsshare display
CNFS metadata filesystem : /test
Protocols Configured : NFS
# cfsshare unconfig -p all
# cfsshare display
Error: V-35-453: Cluster not configured for cfsnfs
# cfsmntadm display
Cluster Configuration for Node: Z10CI
No mount point registered with cluster configuration
Cluster Configuration for Node: Z10DB
No mount point registered with cluster configuration
# cfsdgadm display
Node Name : Z10CI
DISK GROUP ACTIVATION MODE
shared_test_dg sw
Node Name : Z10DB
DISK GROUP ACTIVATION MODE
shared_test_dg sw
# cfsdgadm delete shared_test_dg
Disk-group shared_test_dg is being removed
Disk-group shared_test_dg removed from cluster-configuration
# cfsmntadm display
Cluster Configuration for Node: Z10CI
No mount point registered with cluster configuration
Cluster Configuration for Node: Z10DB
No mount point registered with cluster configuration
Can not share metadata
# cfsshare share /test
Error: V-35-507: Cannot share the filesystem containing CNFS metadata.
[[[[[[[[[[[[[[[[[ OR ]]]]]]]]]]]]]]]]]]]]]]]
# haconf –makerw
# hagrp -add testrg
# hagrp -modify testrg SystemList Z10DB 0 Z10CI 1
# hagrp -modify testrg Parallel 1
# hagrp -modify testrg AutoStartList Z10DB Z10CI
# hares -modify svolres Critcal 1
VCS WARNING V-16-1-10575 Attribute Critcal not defined
# hares -modify svolres Critical 1
# hares -modify svolres Enabled 1
# hares -modify svolres CVMDiskGroup shared_test_dg
# hares -modify svolres CVMVolume shared_vol1
# hares -local svolres CVMActivation
# hares -modify svolres CVMActivation sw -sys Z10CI
# hares -modify svolres CVMActivation sw -sys Z10DB
# hares -add smntres CFSMount testrg
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
-bash-4.1# hares -modify smntres Critical 1
-bash-4.1# hares -modify smntres Enabled 1
-bash-4.1# hares -modify smntres MountPoint "/test"
-bash-4.1# hares -modify smntres BlockDevice "/dev/vx/dsk/shared_test_dg/shared_vol1"
-bash-4.1# hares -local smntres MountOpt
-bash-4.1# hares -modify smntres NodeList Z10DB Z10CI
-bash-4.1# hares -link smntres svolres
-bash-4.1# hares -add nicres NIC testrg
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
-bash-4.1# hares -modify nicres Critical 1
-bash-4.1# hares -modify nicres Enabled 1
-bash-4.1# hares -modify nicres Device net0
-bash-4.1# hares -add ipres IP testrg
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
-bash-4.1# hares -modify ipres Critical 1
-bash-4.1# hares -modify ipres Enabled 1
#hares -modify ipres Address 10.66.10.112
-bash-4.1# hares -modify ipres Device net0
#hares -modify ipres NetMask 255.255.255.0
#hares –add nfsres NFS testrg
#hares –modify nfsres Critical 1
#hares –modify nfsres Enabled 1
#hares –add sharers Share testrg
#hares –modify sharers PathName=/test
#hares –modify sharers Critical 1
#hares –modify sharers Enabled 1
#hares –link ipres nicres
#hares –link svolres smntres
#hares –link sharers nfsres
#hares –link ipres nfsres
#hares –link smntres nfsres
# cfsdgadm add testdg Z10DB=sw
Disk Group is being added to cluster configuration...
# cfsdgadm add testdg Z10CI=sw
Disk Group is being added to cluster configuration...
To display
# cfsdgadm display testdg
NODE NAME ACTIVATION MODE
Z10CI sw
Z10DB sw
To check mode of cfs cluster
# vxdctl -c mode
mode: enabled: cluster active - MASTER
master: Z10DB
# vxclustadm nidmap
Name CVM Nid CM Nid State
Z10CI 0 1 Joined: Slave
Z10DB 1 0 Joined: Master
# vxclustadm nidmap
Name CVM Nid CM Nid State
Z10CI 0 1 Joined: Slave
Z10DB 1 0 Joined: Master
To change master in cfs
# vxclustadm setmaster Z10CI
# vxclustadm nidmap
Name CVM Nid CM Nid State
Z10CI 0 1 Joined: Master
Z10DB 1 0 Joined: Slave
# vxclustadm setmaster Z10DB
# vxclustadm nidmap
Name CVM Nid CM Nid State
Z10CI 0 1 Joined: Slave
Z10DB 1 0 Joined: Master
# vxdg -s init shared_test_dg d0=c2d16 cds=off
# vxdisk list
c2d16s2 auto:sliced d0 shared_test_dg online shared
# cfsdgadm add shared_test_dg all=sw
Disk Group is being added to cluster configuration...
1# cfsdgadm display
Node Name : Z10CI
DISK GROUP ACTIVATION MODE
shared_test_dg sw
Node Name : Z10DB
DISK GROUP ACTIVATION MODE
shared_test_dg sw
# vxassist -g shared_test_dg make shared_vol1 1G
# mkfs -F vxfs /dev/vx/rdsk/shared_test_dg/shared_vol1
version 9 layout
2097152 sectors, 1048576 blocks of size 1024, log size 16384 blocks
rcq size 1024 blocks
largefiles supported
# cfsmntadm display
Cluster Configuration for Node: Z10CI
No mount point registered with cluster configuration
Cluster Configuration for Node: Z10DB
No mount point registered with cluster configuration
# cfsmntadm add shared_test_dg shared_vol1 /test all=cluster
Warning: V-35-416: cfsmntadm: Check the filesystem on the shared volume shared_vol1.
Mount Point is being added...
/test added to the cluster-configuration
# cfsmntadm display
Cluster Configuration for Node: Z10CI
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
/test Regular shared_vol1 shared_test_dg NOT MOUNTED
Cluster Configuration for Node: Z10DB
MOUNT POINT TYPE SHARED VOLUME DISK GROUP STATUS
/test Regular shared_vol1 shared_test_dg NOT MOUNTED
# cfsmount /test
Mounting...
[/dev/vx/dsk/shared_test_dg/shared_vol1] mounted successfully at /test on Z10CI
[/dev/vx/dsk/shared_test_dg/shared_vol1] mounted successfully at /test on Z10DB
# cfsumount /test
Unmounting...
/test got successfully unmounted from Z10CI
/test got successfully unmounted from Z10DB
#cfsmntadm delete /test
Mount Point is being removed...
/test deleted successfully from cluster-configuration
# cfsmntadm add shared_test_dg shared_vol1 /test all=cluster
Mount Point is being added...
/test added to the cluster-configuration
# cfsmount /test
Mounting...
[/dev/vx/dsk/shared_test_dg/shared_vol1] mounted successfully at /test on Z10CI
[/dev/vx/dsk/shared_test_dg/shared_vol1] mounted successfully at /test on Z10DB
# cfsshare config -p nfs shared_test_dg shared_vol1 /test
# cfsshare display
CNFS metadata filesystem : /test
Protocols Configured : NFS
# cfsshare addvip net0 10.66.10.112 255.255.255.0
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 10.66.10.108/24
net0/v4a static ok 10.66.10.112/24
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 10.66.10.108/24
net0/v4a static ok 10.66.10.112/24
# cfsshare deletevip 10.66.10.112
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 10.66.10.108/24
# cfsshare display
CNFS metadata filesystem : /test
Protocols Configured : NFS
# cfsshare unconfig -p all
# cfsshare display
Error: V-35-453: Cluster not configured for cfsnfs
# cfsmntadm display
Cluster Configuration for Node: Z10CI
No mount point registered with cluster configuration
Cluster Configuration for Node: Z10DB
No mount point registered with cluster configuration
# cfsdgadm display
Node Name : Z10CI
DISK GROUP ACTIVATION MODE
shared_test_dg sw
Node Name : Z10DB
DISK GROUP ACTIVATION MODE
shared_test_dg sw
# cfsdgadm delete shared_test_dg
Disk-group shared_test_dg is being removed
Disk-group shared_test_dg removed from cluster-configuration
# cfsmntadm display
Cluster Configuration for Node: Z10CI
No mount point registered with cluster configuration
Cluster Configuration for Node: Z10DB
No mount point registered with cluster configuration
Can not share metadata
# cfsshare share /test
Error: V-35-507: Cannot share the filesystem containing CNFS metadata.
[[[[[[[[[[[[[[[[[ OR ]]]]]]]]]]]]]]]]]]]]]]]
# haconf –makerw
# hagrp -add testrg
# hagrp -modify testrg SystemList Z10DB 0 Z10CI 1
# hagrp -modify testrg Parallel 1
# hagrp -modify testrg AutoStartList Z10DB Z10CI
# hares -modify svolres Critcal 1
VCS WARNING V-16-1-10575 Attribute Critcal not defined
# hares -modify svolres Critical 1
# hares -modify svolres Enabled 1
# hares -modify svolres CVMDiskGroup shared_test_dg
# hares -modify svolres CVMVolume shared_vol1
# hares -local svolres CVMActivation
# hares -modify svolres CVMActivation sw -sys Z10CI
# hares -modify svolres CVMActivation sw -sys Z10DB
# hares -add smntres CFSMount testrg
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
-bash-4.1# hares -modify smntres Critical 1
-bash-4.1# hares -modify smntres Enabled 1
-bash-4.1# hares -modify smntres MountPoint "/test"
-bash-4.1# hares -modify smntres BlockDevice "/dev/vx/dsk/shared_test_dg/shared_vol1"
-bash-4.1# hares -local smntres MountOpt
-bash-4.1# hares -modify smntres NodeList Z10DB Z10CI
-bash-4.1# hares -link smntres svolres
-bash-4.1# hares -add nicres NIC testrg
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
-bash-4.1# hares -modify nicres Critical 1
-bash-4.1# hares -modify nicres Enabled 1
-bash-4.1# hares -modify nicres Device net0
-bash-4.1# hares -add ipres IP testrg
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
-bash-4.1# hares -modify ipres Critical 1
-bash-4.1# hares -modify ipres Enabled 1
#hares -modify ipres Address 10.66.10.112
-bash-4.1# hares -modify ipres Device net0
#hares -modify ipres NetMask 255.255.255.0
#hares –add nfsres NFS testrg
#hares –modify nfsres Critical 1
#hares –modify nfsres Enabled 1
#hares –add sharers Share testrg
#hares –modify sharers PathName=/test
#hares –modify sharers Critical 1
#hares –modify sharers Enabled 1
#hares –link ipres nicres
#hares –link svolres smntres
#hares –link sharers nfsres
#hares –link ipres nfsres
#hares –link smntres nfsres
No comments:
Post a Comment