How to add the description for share resource in Veritas Cluster Server(VCS)

book

Article ID: 100026567

calendar_today

Updated On:

Resolution

Use below procedure to add -d "Description" option to share resource.

1) Offline the resource if it is online.

#hares -offline share1 -sys system

2) Make changes for Resource attribute as follows..

#haconf -makerw
#hares -modify share1 Options ""root=-1,rw=sys1.domain.com:sys2.domain.com:sys3.domain.com:sys4.domain.com:sys5.domain.com:sys6.domain.com" -d 'Home Dirs' "
#haconf -dump -makero
 

3)Now, Online the resource .

#hares -online share1 -sys systemname

Now, check if the share command shows the Description as below.. 

#share

-               /sharedir   root=-1,rw=sys1.domain.com:sys2.domain.com:sys3.domain.com:sys4.domain.com:sys5.domain.com:sys6.domain.com   "Home Dirs"

  

 

Applies To

   SFHA 5.X on Solaris

Issue/Introduction

If you have share resource using VCS as shown below

Share share1 (
                Critical = 0
                PathName = "/sharedir"
                Options = "root=-1,rw=sys1.domain.com:sys2.domain.com:sys3.domain.com:sys4.domain.com:sys5.domain.com:sys6.domain.com"
                )
If you want to add Description/Comment like why this is being exported....as shown below as example from /etc/dfs/dfstab share  -F nfs  -o rw=engineering  -d "Home Dirs"  /sharedir The comment "Home Dirs" above should be added to VCS  resource when the filesystem is exported rw for application purposes.