04-05-2017 07:11 AM
hi,
in a cvm i tried:
vxdg -s init tests disk_1 disk_2
cfsdgadm add test all=sw
test6:~ # cfsdgadm display
Node Name : test6
DISK GROUP ACTIVATION MODE
tests sw
Node Name : test88
DISK GROUP ACTIVATION MODE
tests sw
test6:~ # vxprint -g tests
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg tests tests - - - - - -
dm disk_0 disk_0 - 4120320 - - - -
v t88 fsgen ENABLED 204800 - ACTIVE - -
pl t88-01 t88 ENABLED 204800 - ACTIVE - -
sd disk_0-02 t88-01 ENABLED 204800 0
mkfs.vxfs /dev/vx/rdsk/tests/t88
mkdir -p /vol5s on node test6,test88
test6:~ # cfsmntadm add tests t88 /vol5s
Error: V-35-1: cfsmntadm: Incorrect usage
How is the corect way?
Other thing is:
i seen i can create volumes on both nodes,master and slave node,i can import shared DG on both nodes.What things i can create only on master node?
tnx
04-05-2017 08:30 AM
cfsmntadm add tests t88 /vol5s all=cluster
Check this page for changes that were introduced long ago (v 5.1)
04-05-2017 08:51 AM
hi,
i seen that if i use hastart this will start vcs and cvm based on main.cf.
if vxclustadm stopnode on both nodes then i willnot have cvm and i will have only vcs up and i can operate normally with vcs commands.
Are the above things correct?
tnx
04-05-2017 09:47 AM
What is the version of the product used here ?
If you have configured CVM/CFS then you can create volume from any node in the Diskgroup(shared DG) and Mount the FS on both the nodes simultaneously.
If you do not want to use CVM/CFS feature, simply configure SFHA using /opt/VRTS/install/installsfhaXXX -configure command.
You have to use one of the below options while using cfsmntadm.. You were missing mount options in your command.
cfsmntadm add shared_disk_group shared_volume mount_point [ service_group_name ] node_name=[mount_options] ...
cfsmntadm add shared_disk_group shared_volume mount_point [ service_group_name ] all=[mount_options ] [ [ node_name ] ... ]
Hope this helps.
04-06-2017 01:46 AM
hi,
tnx both of you.