#!/bin/sh
disknum=14
for i in `cat /tmp/disk`
do
if [ $disknum -lt 18 ]; then
vxdg -g freedg adddisk disk$disknum=$i
else
echo "All the disk is added to the diskgroup"
fi
disknum=$(( disknum +1 ))
done
Which is working fine now
Last edited by Franklin52; 08-06-2012 at 03:45 AM..
Reason: Please use code tags for data and code samples
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... (0 Replies)
I am trying to build a veritas volume similar to an existing volume on another server. The output on source server is:
usbtor12# vxprint -hrtg appdg
v anvil_sqlVOL - ENABLED ACTIVE 629145600 SELECT - fsgen
pl anvil_sqlVOL-01 anvil_sqlVOL ENABLED ACTIVE 629145600... (3 Replies)
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)
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)
Hi,
I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over)
Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes... (6 Replies)
Good afternoon all,
I'll probably confuse everyone as I'm a Windows guy dealing with AIX 6.1 and can't quite figure out how to do something. I have a P520 server running 2 LPARs and we have an IVM (not HMC).Within the IVM under Virtual Storage Management, when I check the Physical Volumes, I have... (4 Replies)
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,
I want to create a volume group of 200 GB and then create different file systems on that.
please help me out. Its becomes confusing when the PP calculating PP.
I don't understand this concept. (2 Replies)
Hello Guys,
I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var.
I know we can use that logical volume and create a virtual... (2 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
vxevac
vxevac(1M)vxevac(1M)NAME
vxevac - evacuate all volumes from a disk
SYNOPSIS
/etc/vx/bin/vxevac [-g diskgroup] [-k [-O operation-tag]] [-t tasktag]
medianame [new_medianame...]
/etc/vx/bin/vxevac [-g diskgroup] [-O operation-tag] [-t tasktag]
commit medianame
/etc/vx/bin/vxevac [-g diskgroup] [-O operation-tag] [-t tasktag]
rollback medianame
DESCRIPTION
The vxevac utility moves subdisks off the specified Veritas Volume Manager (VxVM) disk (medianame) to the specified destination disks
(new_medianame...). If no new_medianame arguments are specified, any non-volatile, non-reserved disks can be used as destination disks.
Subdisks that are part of unmirrored striped plexes are moved by moving the entire plex to a new location.
Note: This operation assumes that there is sufficient space in the disk group for the operation to complete. If the process runs out of
space, some of the volumes on the disk may not be evacuated.
vxevac is usually called from the vxdiskadm menus.
A medianame argument is an administrative name used to define a disk within a disk group.
The evacuation of a volume can be committed or rolled back if the -k option is specified. Such an operation is referred to as a "tentaive
move." In addition, the -O option may be used to define a tag for a given tentative move operation.
KEYWORDS
commit Completes tentative subdisk move operations by removing the source subdisks, and replacing them with the target subdisks. The -O
option can be used to specify an operation tag for the subdisks whose tentative move is to be committed. If no operation tag is
specified, the commit operation is applied to all completed tentative subdisk moves for the specified media. The commit opera-
tion fails if a tentative move or a recovery resynchronization is in progress.
rollback Reverses tentative subdisk move operations by removing the target subdisks, and leaving the source subdisks intact. The -O
option can be used to specify an operation tag for the subdisks whose tentative move is to be rolled back. If no operation tag
is specified, the rollback operation is applied to all completed tentative subdisk moves for the specified media. The rollback
operation fails if a tentative move or a recovery resynchronization is in progress.
OPTIONS -g diskgroup
Specifies the disk group for the operation, either by disk group ID or by disk group name.
-k Initiates a subdisk move while preserving the source subdisks on the original plexes. The source and target subdisks are marked.
The tentative move operation can be committed or rolled back at a later time. If the -O option is used to specify a tag, this
tag can be used with the vxtask command to monitor, pause or abort such operations.
-O operation-tag
Specifies an operation tag that can be used to commit or roll back a completed tentative move operation. If an operation tag is
specified, a task tag is automatically set to the same value. However, setting a task tag does not imply the setting of an opera-
tion tag.
-t tasktag
Specifies an administrative operation to perform by the numeric identifier tasktag. See the vxtask(1M) manual page for informa-
tion on Veritas Volume Manager tasks.
SEE ALSO vxassist(1M), vxdiskadm(1M), vxintro(1M), vxsd(1M), vxtask(1M)VxVM 5.0.31.1 24 Mar 2008 vxevac(1M)