I am trying to write a kornshell script that will automatically create veritas disk groups. However, the only utility that I can find that will create the diskgroup is vxdiskadd, which prompts with interactive questions. I've tried to pass the answers through to vxdiskadd, but I receive the following errors. Does any know of a different way to create the diskgroups? Another Veritas program that would allow command line parameters? Another way to pass the answers to vxdiskadd?
Last edited by Scott; 01-04-2010 at 07:41 PM..
Reason: Added code tags
I've had a VXFS filesystem get corrupted and now it won't mount.
Can I run a fsck -y on the raw disk device or should something be
done within veritas? Veritas does not see the disk at the moment. (2 Replies)
Hi there,
My task is to replace the two 73 G disks with two 143 G disks , which has vxvm 4.1 running on it. I would like to know whether the steps iam following are correct.
1. Break the sub-disks, plexes of the root mirror.
2. Remove the sub-disks,plexes of the root mirror.
3. Remove one of... (10 Replies)
I have a bogus disk that keeps showing up as failed from vxdisk list
- - disk hpdg failed was:c2t0d11s2
There isnt any c2 devices on the system:
# ls /dev/dsk/c2*
/dev/dsk/c2*: No such file or directory
# ls /dev/rdsk/c2*
/dev/rdsk/c2*: No such file or... (3 Replies)
Previously , i remove the disk by
#vxdg -g testdg -k rmdisk testdg02
But i got error when i -k adddisk
bash-2.03# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 auto:none - - online invalid
c0t1d0s2 auto:none ... (1 Reply)
People i have an a storage i create two virtual disk 1 y 2.
In the virtual disk 1 i configure 8 volumes and in the Vd2 configure 5 volumes.
Now i want to create a disk group called Prod2 y Dev2 but when i go to vxdiskadm and i choose add disk o encapusalte when i press list to list the disk... (0 Replies)
Hi,
I`m on SunFire480R with Solaris 10. Disk in rootdg group failed, so it was replaced. However, I cannot make Veritas initalise the replaced disk:
# vxdctl enable
# vxdisk list c1t0d0s2
Device: c1t0d0s2
devicetag: c1t0d0
type: auto
flags: online error private autoconfig... (1 Reply)
Need help getting all disk devices back on node 2 the same as node 1.
Recently Veritas and/or Sun cluster got wrecked on my 2 node Sun cluster after installing the latest patch cluster. I backed out the patches and then node 2 could see only half of the devices and Veritas drives (though format... (0 Replies)
Hi Experts
I need an script to add an disk in to the veritas volume manager disk group.
For example:
# cd /tmp
# view disk
c6t5d2
c6t2d1
c6t3d7
c6t11d2
c7t11d2
c6t11d6
Normally we add the disk like this:
# vxdg -g freedg freedisk01=c6t5d2
# vxdg -g freedg freedisk02=c6t2d1
#... (3 Replies)
Hello all,
So I made a rookie mistake today. I forgot to remove my disk from my disk group, before running the following command:for i in `ioscan -fnN | awk /NO/'{print $3}'`
do
rmsf -H $i
done
I am trying to run the following command, but not having any luck obviously:vxdg -g dgvol1 rmdisk... (0 Replies)
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
LEARN ABOUT HPUX
vxpfto
vxpfto(1M)vxpfto(1M)NAME
vxpfto - set Powerfail Timeout (pfto)
SYNOPSIS
vxpfto -g diskgroup -t timeout
vxpfto [-g diskgroup] -t timeout volume_list
vxpfto [-g diskgroup] -o pftostate={enabled|disabled}
vxpfto [-g diskgroup] -o pftostate={enabled|disabled} volume_list
DESCRIPTION
Powerfail Timeout is an attribute of a SCSI disk connected to an HP-UX host (see the pfto(7) man page). The vxpfto command sets the Power-
fail Timeout interval on a set of Volume Manager disks, either all disks in a disk group, or all disks underlying the volumes listed.
The first form of the command sets the same PFTO value for all the disks in the specified VxVM diskgroup.
In the second form, all disks underlying the given list of volumes are selected, optionally restricted by the disk group specified with the
-g option. If you specify a diskgroup, any volume in the list not belonging to the diskgroup is ignored.
Use the -o pftostate option to disable or enable PFTO. By default, PFTO is enabled. You can enable PFTO either on all disks in a disk
group, or on all disks underlying the volumes listed.
If you invoke vxpfto without arguments, it displays a usage message.
OPTIONS -g diskgroup
Specifies the disk group for the operation, either by disk group ID or by disk group name.
-o pftostate={enabled|disabled}
Enables or disables the use of PFTO for IO.
-t timeout
Specifies the PFTO value in seconds. The value must be zero or a positive integer. Zero represents the system default PFTO
value. The default value depends on the disk driver controlling the disk device.
volume_list
A list of VxVM volume names. List items must be separated by white-space.
EXIT CODES
vxpfto returns a zero if successful. If it encounters an error, vxpfto exits and displays a message on standard error. Defined exit codes
are:
0 Success.
1 No PFTO value specified.
2 No diskgroup or volume list specified.
3 Illegal PFTO value specified.
EXAMPLES
Set the PFTO value on all disks in disk group testdg to 100 seconds:
vxpfto -t 100 -g testdg
Set the PFTO value to 50 seconds on all disks underlying volume01 and volume02 in disk group testdg:
vxpfto -t 50 -g testdg volume01 volume02
Set the PFTO value to 300 seconds on all disks underlying volume01 and volume02, even though they are not in the same disk group:
vxpfto -t 300 volume01 volume02
Disable PFTO on all disks in disk group testdg:
vxpfto -g testdg -o pftostate=disabled
Enable PFTO on all disks underlying volume01 and volume02i in disk group testdg:
vxpfto -g testdg -o pftostate=enabled volume01 volume02
SEE ALSO vxdisk(1M), pfto(7)VxVM 5.0.31.1 24 Mar 2008 vxpfto(1M)