{"id":678,"date":"2016-12-15T11:15:49","date_gmt":"2016-12-15T09:15:49","guid":{"rendered":"http:\/\/www.bashpi.org\/?page_id=678"},"modified":"2021-01-08T16:33:26","modified_gmt":"2021-01-08T14:33:26","slug":"vcs","status":"publish","type":"page","link":"https:\/\/www.bashpi.org\/?page_id=678","title":{"rendered":"VCS"},"content":{"rendered":"<p>few veritas cluster &#8211; storage foundation &#8211; infoscale command examples<strong><br \/><\/strong><\/p>\n<p><strong># Display information about all Clusters<\/strong><\/p>\n<pre><code># for clu in `haclus -list`;do echo -e \"\\nCluster ${clu}\"; haclus -display ${clu} ;done\n<\/code><\/pre>\n<p><strong># Display information about all Systems<\/strong><\/p>\n<pre><code># for sys in `hasys -list`; do echo -e \"\\nSystem ${sys}\"; hasys -display ${sys} ;done\n<\/code><\/pre>\n<p><strong># Display information about all unique ServiceGroups<\/strong><\/p>\n<pre><code># for grp in `hagrp -list |awk '{print $1}'|sort|uniq`;do echo -e \"\\nServiceGroup ${grp}\"; hagrp -display ${grp};done\n<\/code><\/pre>\n<p><strong># Display information about all unique Resources<\/strong><\/p>\n<pre><code># for res in `hares -list |awk '{print $1}'|sort|uniq`;do echo -e \"\\nResource ${res}\"; hares -display ${res};done\n<\/code><\/pre>\n<p><strong># Display information about all unique Agents which are actually in use<\/strong><\/p>\n<pre><code># for res in `hares -list |awk '{print $1}'|sort|uniq`;do hares -display ${res}|grep \" Type \" ;done |awk '{print $4}'|sort|uniq |awk '{print \"\\nAgent \"$1; system(\"haagent -display \"$1);}'\n<\/code><\/pre>\n\n\n<p><strong>Create diskgroup<\/strong><\/p>\n\n\n\n<p># vxdg init diskgroup1 disk1 <\/p>\n\n\n\n<p># vxdg -g diskgroup1 disk2 &#8230; <\/p>\n\n\n\n<p># vxdg -g diskgroup1 diskX <\/p>\n\n\n\n<p><strong>or remove disks <\/strong><\/p>\n\n\n\n<p># vxdg -g diskgroup1 rmdisk diskX <\/p>\n\n\n\n<p><strong>&#8230; and remove diskgroup<\/strong><\/p>\n\n\n\n<p> # vxdg destroy diskgroup1     <\/p>\n\n\n\n<p><strong>Rename disks<\/strong><\/p>\n\n\n\n<p># vxedit -g diskgroup1 rename long-hard-to-remember-disk-name1 d1<\/p>\n\n\n\n<p># vxedit -g diskgroup1 rename long-hard-to-remember-disk-name2 d2 <\/p>\n\n\n\n<p>\u2026    <\/p>\n\n\n\n<p><strong>create subdisks and use max size what was displayed during listing<\/strong><\/p>\n\n\n\n<p>Run vxprint and note the disk sizes: <\/p>\n\n\n\n<p># vxprint -g diskgroup1 -htr Create subdisks: <\/p>\n\n\n\n<p># vxmake -g diskgroup1 sd d1-01 d1,0,211944000 <\/p>\n\n\n\n<p># vxmake -g diskgroup1 sd d2-01 d2,0,211944000 <\/p>\n\n\n\n<p>\u2026  <\/p>\n\n\n\n<p><strong>create plexes<\/strong>   <\/p>\n\n\n\n<p>Create plexes p1 and p2. with a concat layout they are just as stripes with fancier name.   # vxmake -g diskgroup1 plex p1 layout=concat sd=d1-01,d2-01 <\/p>\n\n\n\n<p># vxmake -g diskgroup1 plex p2 layout=concat sd=d3-01,d4-01    <\/p>\n\n\n\n<p><strong>create\/remove mirrored volume<\/strong>   <\/p>\n\n\n\n<p>make a mirrored volume of previously made plexes or stripes   <\/p>\n\n\n\n<p># vxmake -g diskgroup1 vol v1 plex=p1,p2 remove volume <\/p>\n\n\n\n<p># vxassist -g diskgroup1 remove volume v1  <\/p>\n\n\n\n<p><strong>start\/stop volume<\/strong>   <\/p>\n\n\n\n<p># vxvol -g diskgroup1 start v1 # vxvol -g diskgroup1 stop v1   <\/p>\n\n\n\n<p><strong>create vxfs<\/strong>   <\/p>\n\n\n\n<p># mkfs.vxfs \/dev\/vx\/dsk\/diskgroup1\/v1   <\/p>\n\n\n\n<p><strong>make cluster conf RO or RW<\/strong>   <\/p>\n\n\n\n<p># haconf -makerw # haconf -dump -makero  <\/p>\n\n\n\n<p><strong>stop\/offline and freeze servicegroup <\/strong>   <\/p>\n\n\n\n<p># hagrp -offline myservicegroup -sys clusternode1 <\/p>\n\n\n\n<p># hagrp -freeze myservicegroup -persistent  <\/p>\n\n\n\n<p><strong>unfreeze and start\/online servicegroup<\/strong> <\/p>\n\n\n\n<p># hagrp -unfreeze myservicegroup -persistent<\/p>\n\n\n\n<p># hagrp -online myservicegroup -sys clusternode1 <\/p>\n\n\n\n<p><strong>Import and deport disk group<\/strong> <\/p>\n\n\n\n<p># vxdg import diskgroup1 # vxdg deport diskgroup1   <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>If you found this useful, say thanks, click on some banners or <a href=\"http:\/\/www.bashpi.org\/?page_id=105\">donate<\/a>, I can always use some beer money.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>few veritas cluster &#8211; storage foundation &#8211; infoscale command examples # Display information about all Clusters # for clu in `haclus -list`;do echo -e &#8220;\\nCluster ${clu}&#8221;; haclus -display ${clu} ;done # Display information about all Systems # for sys in `hasys -list`; do echo -e &#8220;\\nSystem ${sys}&#8221;; hasys -display ${sys} ;done # Display information about [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":397,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-678","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/pages\/678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bashpi.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=678"}],"version-history":[{"count":4,"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/pages\/678\/revisions"}],"predecessor-version":[{"id":1140,"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/pages\/678\/revisions\/1140"}],"up":[{"embeddable":true,"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/pages\/397"}],"wp:attachment":[{"href":"https:\/\/www.bashpi.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}