Sponsored Content
Top Forums UNIX for Advanced & Expert Users Script to verify veritas mirror Post 302815463 by solaris_1977 on Friday 31st of May 2013 07:56:29 PM
Old 05-31-2013
Yes, this made my life easier. Thanks
 

10 More Discussions You Might Find Interesting

1. Solaris

How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE

Hi all, I have a problem with vxvm volume which is mirror with two disks. when i am try to increase file system, it is throwing an ERROR: can not allocate 5083938 blocks, ERROR: can not able to run vxassist on this volume. Please find a sutable solutions. Thanks and Regards B. Nageswar... (0 Replies)
Discussion started by: nageswarb
0 Replies

2. UNIX for Advanced & Expert Users

Resizing veritas mirror-stripe volume

Hi, Is there are any special preocedure for extending veritas mirror-stripe volume? In my case , volume lay out looks as below v test - ENABLED ACTIVE 419430400 SELECT - fsgen pl test-01 test ENABLED ACTIVE 419454720 STRIPE 3/128 RW sd... (0 Replies)
Discussion started by: 2k7.vipin
0 Replies

3. Solaris

ZFS Mirror versus Hardware Mirror

I've looked a little but haven't found a solid answer, assuming there is one. What's better, hardware mirroring or ZFS mirroring? Common practice for us was to use the raid controllers on the Sun x86 servers. Now we've been using ZFS mirroring since U6. Any performance difference? Any other... (3 Replies)
Discussion started by: Lespaul20
3 Replies

4. Solaris

What is mirror and sub mirror in RAID -1 SVM

Hi , I am new to SVM .when i try to learn RAID 1 , first they are creating two RAID 0 strips through metainit d51 1 1 c0t0d0s2 metainit d52 1 1 c1t0d0s2 In the next step metainit d50 -m d51 d50: Mirror is setup next step is metaattach d50 d52 d50 : submirror d52 is... (7 Replies)
Discussion started by: vr_mari
7 Replies

5. UNIX for Dummies Questions & Answers

VERITAS Volume Manager - mirror a disk/volume

I have a machine (5.10 Generic_142900-03 sun4u sparc SUNW,Sun-Fire-V210) that we are upgrading the storage and my task is to mirror what is already on the machine to the new disk. I have the disk, it is labeled and ready but I am not sure of the next steps to mirror the existing diskgroup and... (1 Reply)
Discussion started by: rookieuxixsa
1 Replies

6. HP-UX

What is the difference between DRD and Root Mirror Disk using LVM mirror ?

what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 Replies

7. Solaris

Help with mirroring rootdisk under veritas and boot from the mirror

Hi All, We are using Solaris 10 x86, and Veritas Storage Foundation Software version 6.0.1 and faced the following issues after mirroring and during boot from mirror. 1) VTOC has been changed after mirroring the rootdisk with this command - " /opt/VRTS/bin/vxrootmir <disk to be mirrored>".... (0 Replies)
Discussion started by: mprasamsa
0 Replies

8. Shell Programming and Scripting

DNS circular verify script

I have modified a script to do a circular DNS look up. The theory is this for a given subnet build a range if IP's do a reverse look up on those IP's take the output of the reverse look up then and do a forward look up If the returns match up give a good status If not return a fail... (1 Reply)
Discussion started by: snoman1
1 Replies

9. UNIX for Beginners Questions & Answers

How to extend a disk in veritas volume manager in veritas cluster?

Hi Experts, I wanted to extend a veritas file system which is running on veritas cluster and mounted on node2 system. #hastatus -sum -- System State Frozen A node1 running 0 A node2 running 0 -- Group State -- Group System Probed ... (1 Reply)
Discussion started by: Skmanojkum
1 Replies

10. UNIX for Beginners Questions & Answers

Script that verify output after make

Hi I write below script to show if expected file exist in /etc/library/ , print success else failed. But it will print full path I just need to print module name in output. And if it possible show time that spent to compile each module. FYI 1: First run another script just go to the paths... (1 Reply)
Discussion started by: indeed_1
1 Replies
Object::ID(3pm) 					User Contributed Perl Documentation					   Object::ID(3pm)

NAME
Object::ID - A unique identifier for any object SYNOPSIS
package My::Object; # Imports the object_id method use Object::ID; DESCRIPTION
This is a unique identifier for any object, regardless of its type, structure or contents. Its features are: * Works on ANY object of any type * Does not modify the object in any way * Does not change with the object's contents * Is O(1) to calculate (ie. doesn't matter how big the object is) * The id is unique for the life of the process * The id is always a true value USAGE
Object::ID is a role, rather than inheriting its methods they are imported into your class. To make your class use Object::ID, simply "use Object::ID" in your class. package My::Class; use Object::ID; Then write your class however you want. METHODS
The following methods are made available to your class. object_id my $id = $object->object_id; Returns an identifier unique to the $object. The identifier is not related to the content of the object. It is only unique for the life of the process. There is no guarantee as to the format of the identifier from version to version. For example: my $obj = My::Class->new; my $copy = $obj; # This is true, $obj and $copy refer to the same object $obj->object_id eq $copy->object_id; my $obj2 = My::Class->new; # This is false, $obj and $obj2 are different objects. $obj->object_id eq $obj2->object_id; use Clone; my $clone = clone($obj); # This is false, even though they contain the same data. $obj->object_id eq $clone->object_id; object_uuid my $uuid = $object->object_uuid Like "$object->object_id" but returns a UUID unique to the $object. Only works if Data::UUID is installed. See Data::UUID for more details about UUID. FAQ
Why not just use the object's reference? References are not unique over the life of a process. Perl will reuse references of destroyed objects, as demonstrated by this code snippet: { package Foo; sub new { my $class = shift; my $string = shift; return bless {}, $class; } } for(1..3) { my $obj = Foo->new; print "Object's reference is $obj "; } This will print, for example, "Object's reference is Foo=HASH(0x803704)" three times. How much memory does it use? Very little. Object::ID stores the ID and address of each object you've asked the ID of. Once the object has been destroyed it no longer stores it. In other words, you only pay for what you use. When you're done with it, you don't pay for it any more. LICENSE
Copyright 2010, Michael G Schwern <schwern@pobox.com>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> THANKS
Thank you to Vincent Pit for coming up with the implementation. perl v5.12.4 2011-09-26 Object::ID(3pm)
All times are GMT -4. The time now is 07:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy