Friday, October 24, 2014

VCS Commands

VCS Commands

haconf -makerw
hagrp -add app_sg
hagrp -modify app_sg SystemList node01 0 node02 1
hagrp -modify app_sg AutoStartList node01 node02
hagrp -display app_sg -attribute AutoStartList
hares -add app_dg DiskGroup app_sg
hares -add app_nic NIC app_sg
hares -add app_mnt Mount app_sg
hares -add app_vol Volume app_sg
hares -add app_ip IP app_sg
hares -list
hagrp -modify app_sg SystemList node01 node02
hagrp -modify app_sg SystemList node01 0 node02 1
hagrp -modify app_sg AutoStartList node02 node01
hagrp -modify app_sg SystemList node01 0 node02 1
hagrp -modify app_sg AutoStartList node01 node02
hares -modify app_dg DiskGroup webdg
hares -modify app_mnt BlockDevice /dev/vx/dsk/webdg/vol2
hares -modify app_mnt FSType vxfs
hares -modify app_mnt FsckOpt "-%y"
hares -modify app_mnt FsckOpt "%-y"
hares -modify app_mnt MountPoint /webvol2
hares -modify app_ip Device e1000g3
hares -modify app_ip Address 10.200.50.215
hares -modify app_ip NetMask 255.255.255.0
hares -modify app_vol Volume vol2
hares -modify app_vol DiskGroup webdg
--
hares -link app_ip app_nic
hares -link app_mnt app_vol
hares -link app_mnt app_ip
hares -link app_vol app_dg
-------------
hares -modify app_mnt Critical 1
hares -modify app_dg Enabled 1
-----------------------
hares -list
hares -dep
---------
root@node01:/var/VRTSvcs/log # hastatus -sum

-- SYSTEM STATE
-- System               State                Frozen

A  node01               RUNNING              0
A  node02               RUNNING              0

-- GROUP STATE
-- Group           System               Probed     AutoDisabled    State

B  apache_sg       node01               Y          N               ONLINE
B  apache_sg       node02               Y          N               OFFLINE
B  app_sg          node01               Y          N               OFFLINE
B  app_sg          node02               Y          N               ONLINE
root@node01:/var/VRTSvcs/log #
----------------------------------------------------------------
 hagrp -switch app_sg -to node02

Wednesday, September 10, 2014

Openfiler & ISCSI in Solaris 10


Some of the commands in Solaris 10 ISCSI

$ iscsiadm modify discovery --static enable
$ iscsiadm list static-config
$ iscsiadm add static-config iqn.2006-01.com.openfiler:tsn.2d3b68e3a76c,10.208.133.201:3260
$ iscsiadm remove static-config iqn.2006-01.com.openfiler:tsn.2d3b68e3a76c,10.208.133.201,3260
$ svcs -a |grep iscsi
online         23:34:48 svc:/network/iscsi/initiator:default
online         23:34:55 svc:/system/iscsitgt:default

Openfiler

1. Map ISCSI LUN
2. Share Network range.

(Incomplete doc)