Forum Discussion

hirinkus1's avatar
hirinkus1
Level 3
15 years ago

VCS new volume created. Need to add up under existing Resource Group under 2 node clustered Solaris 10 Server...Important..please assist

Hi, I am newbi to VCS. OS is Solaris10. Two node cluster env. New filesystem already created and mounted with dedicated Vertual IP and is already under VCS. We have added two more Vol's (Vol0...
  • Gaurav_S's avatar
    15 years ago
    Hello Rinku,

    I hope you have added volumes in veritas volume manager diskgroup first, if not, following would be commands to do that:

    # vxassist -g <diskgroup> make <volume> <size>

    Disks of this diskgroup must be located on shared storage.

    Create a filesystem
    # mkfs -F <fstype> <raw_device>

    Create mount points on both the cluster nodes

    # mkdir <dir>

    Once volumes are created, you need to put them under VCS control.... so you need to add them as resources into a VCS service group:

    # hares -add <resource> <resource_type> <service_group>

    Add both volumes with above step... your resource type here would be Volume (V is capital)

    You will need to modify some attributes of your volume resource which are mandatory

    # hares -modify <resource> Enabled 1  (to enable resource>
    # hares -modify <resource> Critical 0  (Assume you don't want to make volume as critical resource)
    # hares -modify <resource> BlockDevice <block_device>
    # hares -modify <resource> DiskGroup <diskgroup>

    Finally you have to link volume resource to diskgroup &/OR mount

    # hares -link <parent> <child>

    Please note in VCS, parent resource depends on child resource, so be careful while linking.... for example in a group where volume depends on diskgroup resource, diskgroup will be child & volume would be parent...

    hope this helps

    Gaurav