Video Screencast Help
Symantec Appoints Michael A. Brown CEO. Learn more.

Volume Resource doubt

Created: 26 Dec 2010 • Updated: 29 Dec 2010 | 10 comments
This issue has been solved. See solution.

 

Hi Friends,

This is my first forum

Iam new to VCS

Started to create volume resource by seeing old thread but getting this error message 

After enabling resource i need to modify but iam unable to do it since this error message pops up

Pls Suggest me.....

 

 

hares -modify resourcename  BlockDevice /dev/vx/dsk/oracledg/oracle

VCS WARNING V-16-1-10575 Attribute BlockDevice not defined

Discussion Filed Under:

Comments 10 CommentsJump to latest comment

Gaurav Sangamnerkar's picture

Hi Madhav,

welcome to connect..

If your resource name is "volume"  for e.g, you need to give full command like

hares -modify volume <volume> BlockDevice /dev/vx/dsk/oracledg/oracle

 

you can do this via java gui as well which will be much simpler to do, you need to install cluster manager for that on your desktop or else if you have direct gui access to server, you can use "hagui" & that will open GUI for cluster.

cluster manager can be found in the veritas installation media under "windows" folder.

Since block device is a mandatory attribute you need to define it else resource config will not be completed.

Let me know if you still have issues..

 

Gaurav

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

Madhav's picture

Thank you friends,

For taking your time and assisting me.

I thought to go for GUI I have a dump of VCS 5.0 in my desktop.

I extracted it . It is in tar.gz format

 

As you said above i got windows folder in the extracted content . but not sure which thing to select

Please guide me ....

 

In windows folder i have 

Symantec product authentication

VCS windows installers

VRTSobgui.msi

VRTSvradv.msi

 

Please note that the extracting and displaying all is am doing in my physical machine but not in remote server.

Marianne's picture

Look in VCSWindowsInstallers\ClusterManager\EN folder for 'Symantec Veritas Cluster Manager (Java Console).msi'

You can install the Java Console on your desktop.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Madhav's picture

 

 hares -modify oracle res1 BlockDevice /dev/vx/dsk/oracledg/oracle
VCS WARNING V-16-1-10240 Attempt to modify non-existent resource
 
hares -modify /home/oracle res1 BlockDevice /dev/vx/dsk/oracledg/oracle
VCS WARNING V-16-1-10240 Attempt to modify non-existent resource
 
oracle is the volume
res1 is the resourcename
Volumes are in active state when i saw vxprint -hvt
Gaurav Sangamnerkar's picture

can u paste the error message you are getting if any while running the above hares command ?

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

Marianne's picture

Extract from VCS Admin Guide:

# hares -modify <resource> <attr> <value>

<resource> must the name of the resource that you specified when you added it with

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

Also - BlockDevice is a 'Mount' attribute.

My own cluster examples (I've done ' hacf -cftocmd <conf_dir>' on my already configured cluster):

hares -add nbu_dg DiskGroup nbu_group
hares -modify nbu_dg DiskGroup nbudg
hares -modify nbu_dg MonitorReservation 0
hares -modify nbu_dg StartVolumes 1
.....

hares -add nbu_vol Volume nbu_group
hares -modify nbu_vol Volume nbuvol
hares -modify nbu_vol DiskGroup nbudg
....

hares -add nbu_mount Mount nbu_group
hares -modify nbu_mount FsckOpt "%-y"
hares -modify nbu_mount BlockDevice "/dev/vx/dsk/nbudg/nbuvol"
hares -modify nbu_mount MountPoint "/opt/VRTSnbu"
hares -modify nbu_mount FSType vxfs
....
(there's LOTS more....)

 

I agree with Gaurav - if you are new to VCS, use the GUI. Don't try cmd if you're not comfortable with the product.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Marianne's picture

It gets confusing when posts are inserted above latest post...

I am responding to your last post: https://www-secure.symantec.com/connect/forums/vol...

Please have a look at my post above: https://www-secure.symantec.com/connect/forums/vol...

As I've pointed out - BlockDevice is a 'Mount' attribute, not a Volume attribute.

So, if you have added the Volume resource using:

hares -add res1 Volume <service_group>

You now need to specify Volume name and diskgroup as attributes:
hares -modify res1 Volume oracle
hares -modify res1 DiskGroup oracledg

Have a look at  Veritas Cluster Server Bundled Agents Reference Guide

The only required attributes for Volume resource (p.49) are DiskGroup and Volume.

The Mount Agent (p.55) has a BlockDevice attribute.

(all manuals can be found here: https://sort.symantec.com/documents

 

Also - you have marked this thread as SOLVED - maybe best if you clear the solution for now, as you haven't seem to find the correct command options yet?

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

SOLUTION
Madhav's picture

Hi Maria,

The above command syntax worked out and iam able to add attributes for resources.

Thank you .

After adding attributes we need to link and the syntax is :

hares  -display resourcename

hares  -link Childresource Parentresource

Pls guide me if am not correct abt the syntax mentioned above,also what should i give childresource and parent resource

diskgroup=oracledg

service group=qaoracle

resource name i changed that is oracledg_oracle_mnt

============================================

Also as you guys suggested me i installed veritas cluster server cluster manager but not sure about its usage.

I tried to connect my remote server using default port number in veritas monitor of 14141 and also port  number 22 but getting an error message as stated below:

VCS WARNING V-16-10-8

Server has failed to respond .Try again later.

g_lee's picture

Madhav,

I reiterate Marianne and Gaurav's suggestion to refer to the documentation - in this case / particularly the VCS Administrator's Guide for your version to get a grasp of the concepts/steps to administer VCS.

Regarding resource dependencies, see the following:

Veritas Cluster Server 5.1SP1 Administrator's Guide -> Logical components of VCS -> About resources and resource dependencies

https://sort.symantec.com/public/documents/sfha/5....

--------------------
Resource dependencies determine the order in which resources are brought online or taken offline. For example, you must import a disk group before volumes in the disk group start, and volumes must start before you mount file systems. Conversely, you must unmount file systems before volumes stop, and volumes must stop before you deport disk groups.

A parent is brought online after each child is brought online, and continues up the tree, until finally the application starts. Conversely, to take a managed application offline, you stop resources by beginning at the top of the hierarchy. In this example, the application stops first, followed by the database application. Next the IP address and file systems stop concurrently. These resources do not have any resource dependency between them, and this continues down the tree.

Child resources must be online before parent resources are brought online. Parent resources must be taken offline before child resources are taken offline. If resources do not have parent-child interdependencies, they can be brought online or taken offline concurrently.
--------------------

The correct syntax for configuring resource dependencies is:

# hares -link parent_resource child_resource

and to check:

# hares -dep [<resource_name>]  ### if <resource_name> is omitted, all resource dependencies will be shown

For example, if your resources are named as follows:

diskgroup: oracledg
volume: oracledg_oracle_vol
mount: oracledg_oracle_mnt

oracledg_oracle_vol is the parent resource for oracledg; oracledg_oracle_mnt is the parent resource for oracledg_oracle_vol

so commands would be:

# hares -link oracledg_oracle_vol oracledg
# hares -link oracledg_oracle_mnt oracledg_oracle_vol

If this post has helped you, please vote or mark as solution

Gaurav Sangamnerkar's picture

Hi Madhav,

Marianne is right, the attribute Block device attribute belongs to a Mount resource & not to a volume resource so the command what Marianne has pasted is the right one.

Anyways I hope you have got the idea of how command needs to be executed.

you can clear the solution & mark to the Marianne's one as that points to correct solution or else let me know & I will do that for you..

 

Gaurav

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.