Sponsored Content
Operating Systems Solaris Need to remove a disk from Veritas Post 302113277 by reborg on Wednesday 4th of April 2007 02:00:39 PM
Old 04-04-2007
if you're sure it's really bogus:

Make sure there are no dead plexes hanging around, and remove them if there are.

You can check with
Code:
vxprint -pg hpdg | grep NODEVICE

Column 2 is plex name. If there are some dead plexes, disassociate and remove them:
Code:
vxplex -g hpdg -o rm dis <plex name>

Then vxedit the disk out of hpdg:
Code:
vxedit -g hpdg -rf rm disk

 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

FSCK on veritas managed disk

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)
Discussion started by: ozzmosiz
2 Replies

2. Solaris

Veritas root disk mirroring

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)
Discussion started by: Jartan
10 Replies

3. Shell Programming and Scripting

mapping device from an inq output to veritas disk groups

Hi, Does anyone have a clever way of mapping the following from two different files using perl. sample line from vxdisk list output (vxdisk-list.file): emcpower18s2 auto:sliced IDFAG1_1 (IDFAG1_appdg) online sample line from 'inq' output (inq.file): ... (0 Replies)
Discussion started by: csoesan
0 Replies

4. UNIX and Linux Applications

Veritas silent disk group creation

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)
Discussion started by: jm6601
0 Replies

5. Solaris

Help needed to find out the disk controller for veritas disks

hi all i am using vxvm 5.1 on my sun blade 150 which is running with solaris 5.10. When i give the command "vxdisk list" it gives the following output # vxdisk list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 auto:none - - online... (2 Replies)
Discussion started by: kingston
2 Replies

6. AIX

Remove internal disk from Veritas Control

I installed new internal disks in my p570. They will be part of a new AIX vg. Unfortunately, we have Veritas Volume Manager running on this AIX 5.2 ml 10 box. Veritas has grabbed control of the disks. I want AIX LVM to control the disks. I cannot get these disks free of Veritas: <lspv... (2 Replies)
Discussion started by: BobSmith
2 Replies

7. UNIX for Dummies Questions & Answers

Configure disk group with veritas

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)
Discussion started by: enkei17
0 Replies

8. Solaris

Veritas not attaching replaced disk

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)
Discussion started by: masloff
1 Replies

9. Solaris

Veritas disk group not the same on each cluster node.

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)
Discussion started by: buggin
0 Replies

10. 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
volmend(8)						      System Manager's Manual							volmend(8)

NAME
volmend - Mends simple problems in configuration records SYNOPSIS
/usr/sbin/volmend [-g diskgroup] [-U usetype] [-o useopt] [-Vfrvps] clear field name... /usr/sbin/volmend [-g diskgroup] [-U usetype] [-o useopt] [-Vfrvp] fix how name [arg...] /usr/sbin/volmend [-g diskgroup] [-U usetype] [-o useopt] [-Vfrvp] off name... /usr/sbin/volmend [-g diskgroup] [-U usetype] [-o useopt] [-Vfrvp] on name... OPTIONS
The following options are recognized: Specifies the disk group for the operation, either by disk group ID or by disk group name. By default, the disk group is chosen based on the name operands. Limits the operation to apply to the specified usage type. Attempts to affect volumes with a different usage type will fail. Passes in usage-type-specific options to the operation. The fsgen, gen, and raid5 usage types support the following useopt argument: Forces an operation that internal consistency checks consider to be questionable. This applies to attempts to use volmend fix empty to uninitialize a volume that has plexes in the ACTIVE state, and also to attempts to disable the last plex, or the last complete (non-sparse) plex, in a volume. This flag is the same as -f. The fsgen and gen usage types support the following additional useopt arguments: Requires that any named plex or subdisk record be associated, directly or indirectly, with a volume named volume. Several vol options can be specified to indicate a list of allowed volume names. Requires that any named subdisk record be associated with a plex named plexname. Several plex options can be speci- fied to indicate a list of allowed plex names. Displays a list of utilities that would be called from volmend, along with the argu- ments that would be passed. The -V option performs a ``mock run'' so the utilities are not actually called. Forces an operation that the Logical Storage Manager considers potentially dangerous or unnecessary. This enables a limited set of additional operations that would normally not be allowed. Some operations may be disallowed even with this flag. Operates recursively on records associ- ated with the named volume or plex record. Operations applied to a volume will apply to the associated plexes and subdisks. Like- wise, operations applied to a plex may be applied to the associated subdisks. Requires that name operands name volume records. Requires that name operands name plex records. Requires that name operands name subdisk records. DESCRIPTION
The volmend utility performs various Logical Storage Manager usage-type-specific operations on subdisk, plex, and volume records. The first operand is a keyword that determines the specific operation to perform. The remaining operands specify the configuration objects to which the operation is applied. Each invocation can be applied to only one disk group at a time, due to internal implementation constraints. Any name operands will be used as record names to determine a default disk group, according to the standard disk group selection rules described in volintro(8). A spe- cific disk group can be forced with -g diskgroup. These are the recognized operation keywords for volmend: Clears specified utility fields for each named record in the disk group. An option of -v, -p, or -s specifies that the utility operates only on volumes, plexes, or subdisks, respectively. If a record is a volume, or is associated directly or indirectly with a volume, the clear operation is performed according to rules used by the usage type appropriate for that volume. The field operand is a comma-separated list of keywords specifying fields to be cleared. Valid keywords for the field operand are: Clears all clearable utility fields. Normally, this clears all of the persistent and non-persistent utility fields. A usage-type utility may choose a different set of fields, as appropriate. Clears all persistent utility fields. Clears all non-persistent (temporary) utility fields. Clears a specific persistent utility field. Clears a specific non-persistent utility field. For the fsgen and gen usage types, the number of plexes currently being attached, either directly or as part of a compound opera- tion, is stored in the tutil0 field of the volume record as a string in the form ATTnumber. If the number drops to zero, the tutil0 field is cleared. Some operations on a volume require that the tutil0 field be cleared. The fsgen and gen usage types support the following additional field keyword: Removes locks on a volume for a particular number of concurrent plex attach operations. This operation can be used to clear a volplex att operation that fails to terminate cleanly. For example, suppose that the following command was issued and then abruptly terminated by pressing the INTERRUPT key (or equivalent): volplex att v1 v1-01 The volplex command would respond to the interruption by displaying a list of commands to run. For this example, you would run the following commands from the list: volmend clear tutil0 v1-01 volmend clear att1 v1 volplex dis v1-01 Changes the state of a volume, plex, or subdisk named by the name operand, in a manner specified by the how string. The meaning of this operation is entirely usage-type specific. This operation applies to volumes, or to plexes associated with a volume, or to sub- disks of a raid5 volume. Usage-type rules appropriate for the volume are used to interpret the command. Additional arguments, after name, are interpreted according to rules defined by the usage type. The fsgen, gen, and raid5 usage types support the following volmend fix operations: Sets the state for the named plex to CLEAN. The associated volume must be disabled, the named plex must be in the STALE state, and the volume must have no additional plexes in the CLEAN state. A volume is not startable if one plex is in the CLEAN state and some plexes are in the ACTIVE state. Thus, several volmend fix oper- ations are normally used in conjunction to set all plexes in a volume to STALE and then to set one plex to CLEAN. A volume start operation will then enable the CLEAN plex and recover the STALE plexes by copying data from the one CLEAN plex. Sets the state for the named plex to ACTIVE. The state for the volume is set to SYNC. The associated volume must be disabled, and the named plex must be in the STALE state. When starting a volume in the SYNC state, all ACTIVE plexes are enabled and are synchronized to have the same contents using a spe- cial read/write-back recovery mode. Any STALE plexes are then recovered by copying data from the ACTIVE plexes. Sets the state for the named plex to STALE. The associated volume must be disabled, and the named plex must be ACTIVE or CLEAN. This operation names plexes that will be recovered by copying data from other plexes by a volume start operation. Sets the named volume and all of its associated plexes to the EMPTY state. The volume can then be re-initialized using volume start or any of the volume init operations. This operation requires that the volume be disabled. The raid5 usage type supports the following additional volmend fix operation: Clears any flags indicating that a subdisk of a RAID-5 plex is invalid. This will prevent the data on the subdisk from being recovered when the volume is started. Puts the named plexes or volumes into an offline state. This operation can be applied only to volumes, or to plexes associated with a volume. Usage type rules appropriate for the volume are used to perform the operation. The fsgen and gen usage types allow volumes and plexes to be specified as operands to volmend off. A volume can be named only if -r is used to specify recursion, and is applied to all plexes in the volume. Offlining a plex disables the plex and sets its state to OFFLINE. Offlining the last enabled read-write plex in a volume, or the last complete plex (if there are additional sparse plexes) will nor- mally fail unless -f is specified. Applying this operation to a volume also disables the volume, and does not require use of -f. If a volume is disabled, the checks for the last plex or the last complete plex are performed on the set of ACTIVE and CLEAN plexes, rather than on enabled read-write plexes. An offline state for a plex can be cleared with volmend on. Alternatively, an offline plex can be reattached with volplex att. Takes the named plexes or volumes out of the offline state. This operation can be applied only to volumes, or to plexes associated with a volume. Usage-type rules appropriate for the volume are used to perform the operation. The fsgen and gen usage types allow volumes and plexes to be specified as operands to volmend on. The volmend on operation applied to a plex will change the OFFLINE state for a plex to STALE, allowing the plex to be recovered by the next volume start or volume startall. Applying volmend on to a volume will change the state for all associated OFFLINE plexes to STALE. EXIT CODES
The volmend utility exits with a nonzero status if the attempted operation fails. A nonzero exit code is not a complete indicator of the problems encountered but rather denotes the first condition that prevented further execution of the utility. See volintro(8) for a list of standard exit codes. FILES
The utility that performs volmend operations for a particular volume usage type. SEE ALSO
volintro(8), volplex(8), volume(8) volmend(8)
All times are GMT -4. The time now is 02:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy