Sponsored Content
Operating Systems AIX How to manually -re-attach AIX lv's to a mirror? Post 303028825 by bakunin on Tuesday 15th of January 2019 04:39:44 PM
Old 01-15-2019
Quote:
Originally Posted by mrmurdock
(reducevg complains about the open hd2 lv, which is /usr, even if I use -f to force it).
That was to be expected. I repeat:

Quote:
Do an unmirrorvg to completely make the disk empty and a reducevg to get it out of the VG.
You cannot use a reducevg on a disk which has not been emptied before. Since you have still a LV occupying space on the PV (even if it is only a mirror) you cannot remove the disk from the VG. You either have to remove the mirror on this disk first or move it to another PV.

If this is not due to a broken cable or controller (that would explain the "missing" status) the error message suggests that the disk was in its last throes anyway: when a disk is formatted (when included in a VG) a certain number of blocks is set aside to compensate for blocks going bad. They are used up over time. Once they are depleted (or nearly depleted) you usually see a series of TEMP hdisk errors (IIRC "hdisk error 3", usually stretched out over some days or weeks) before finally a PERM (IIRC "hdisk error 4") one in the errpt.

I hope this helps.

bakunin

Last edited by bakunin; 01-15-2019 at 05:46 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Display Mirror State AIX

Hello, how can i see easily the state of a mirrored disk on a AIX 4.3.3. I try followed command: lslv -m >lvname> but for me is not enough information. thanx in advance fenomen (2 Replies)
Discussion started by: fenomen
2 Replies

2. 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

3. 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

4. AIX

AIX Rootvg mirror and sysdumplv

Guys, In my AIX 6.1 box the rootvg was on hdisk2, I tried to migrated it to hdisk0 Added hisk0 to rootvg , mirrored rootvg and changed bootlist and and sucessfully rebooted from hdisk0 Now I tried to remove the hdisk2 from rootvg so breaked mirror -bash-3.00# unmirrorvg rootvg hdisk2... (3 Replies)
Discussion started by: kkeng808
3 Replies

5. AIX

Attach HP EVA to IBM AIX powerpc singlepath

Dear all. We have a very big issue on Attach HP EVA to IBM AIX powerpc singlepath. the configurations on lscfg -vl fcs2 fcs2 U789C.001.DQD8D74-P1-C2-T1 4Gb FC PCI Express Adapter (df1000fe) Part Number.................10N7249 Serial... (3 Replies)
Discussion started by: Juri_al
3 Replies

6. AIX

Clone or mirror your AIX OS larger disk to smaller disk ?

hello folks, I have a 300GB ROOTVG volume groups with one filesystem /backup having 200GB allocated space Now, I cannot alt disk clone or mirrorvg this hdisk with another smaller disk. The disk size has to be 300GB; I tried alt disk clone and mirrorvg , it doesn't work. you cannot copy LVs as... (9 Replies)
Discussion started by: filosophizer
9 Replies

7. 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

8. AIX

AIX break rootvg mirror from system down

Hello, aix 5.2, mirrored rootvg on hdisk0 and hdisk1. hdisk0 is dead. I can boot to cd, into sms, into maintenance mode. I can fsck all the various partitions on hdisk1 (the hd4 hd2 hd3, etc...) all is fine. But without the hdisk0 part of the mirror I cannot get the system to boot. ystem hangs on... (6 Replies)
Discussion started by: sshapiro
6 Replies

9. AIX

AIX hdisk Mirror vs alt_clone

Hello, I have two hdisk in Power7 machine, the rootvg on hdisk0. So to make a disk redundancy should make mirror or alt_clone and what is the different. Appreciate your help Thanks (1 Reply)
Discussion started by: moudmm
1 Replies

10. UNIX for Beginners Questions & Answers

AIX - mirror a jfs2log

Hi everybody, I have a little problem with my AIX 6.1, PowerHA 6.1 LVM mirroring. I accidentally created logical volume cpsabcd2lv with external jfs2log loglv00 in the same volume group cpsdata2vg. Then I mirrored LV cpsabcd2lv on the second LUN in VG cpsdata2vg. My journal is unmirrored and... (0 Replies)
Discussion started by: Necronomic
0 Replies
vxrecover(1M)															     vxrecover(1M)

NAME
vxrecover - perform volume recovery operations SYNOPSIS
vxrecover [-bcEmnpsvV] [-d defaults_file] [-g diskgroup] [-o options] [-t tasktag] [volume | volume_set | medianame...] DESCRIPTION
The vxrecover utility performs plex attach, RAID-5 subdisk recovery, and resynchronize operations for the specified volumes, for all vol- umes under the specified volume sets, or for volumes residing on the disks specified by medianame. If no medianame, volume or volume_set is specified, the operation applies to all volumes, or to all volumes in the specified disk group. If -s is specified, disabled volumes are started. With -s and -n, volumes are started, but no other recovery takes place. Recovery operations are started in an order that prevents two concurrent operations on the same disk. Operations that involve unrelated disks run in parallel. OPTIONS
-b Performs recovery operations in the background. With this option, vxrecover runs in the background to attach stale plexes and subdisks, and to resynchronize mirrored volumes and RAID-5 parity. If this is used with -s, volumes are started before recovery begins in the background. -c Operates on cluster-sharable disk groups. This option is used by the cluster reconfiguration utility to effect recovery on vol- umes in shared disk groups after the failure of a node in the cluster. Do not use -c as a command-line option. Available only if the Veritas Volume Manager (VxVM) cluster feature is enabled and a license is installed. -d defaults_file Specifies the absolute pathname of a defaults file to use instead of /etc/default/vxrecover. The defaults file can be used to define new values for the I/O region size and delay time when reattaching plexes. The following attributes may be defined in this file: iosize=size Specifies the size (in standard length units as defined in vxintro(1M)) of the regions that are used to perform recovery operations. Specifying a larger size typically causes the operation to complete sooner, but with greater impact on other processes using the volume. The default I/O size is 2048 sectors (1 megabyte). slow=iodelay Allows the impact on system performance of copy operations to be reduced. Plex recovery operations usually consist of a number of short operations on small regions of the volume. This attribute inserts a delay between the recovery of each such region. A specific delay is specified as a number of milliseconds. The default value is 250 milliseconds. The following settings are suggested for a clustered environment with a large number of mirrored volumes: iosize=4m slow=1000 corresponding to an I/O size of 4 megabytes, and an I/O delay of 1000 milliseconds. -E Starts disabled volumes or plexes even when they are in the EMPTY state. This is useful for starting up volumes restored by the vxmake utility when specified along with the -s option. -g diskgroup Limits operation of the command to the given disk group, as specified by disk group ID or disk group name. If no volume or medi- aname is specified, all disks in this disk group are recovered, otherwise, the volume and medianame are evaluated relative to the given disk group. Without the -g option, if no volume and medianame is specified, all volumes in all imported disk groups are recovered; otherwise, the disk group for each medianame specified is determined based on name uniqueness within all disk groups. -m Recognizes and enables volumes that were moved as a result of a disk group move, split or join operation. -n Does not perform any recovery operations. If used with -s, volumes are started, but no other actions are taken. If used with -p, vxrecover only prints a list of startable volumes. -o options Passes the given option arguments to the -o options for the vxplex att and vxvol start operations generated by vxrecover. You can specify an option argument in the form prefix:options to restrict the set of commands that the -o option is applied to. Defined prefixes are: o vol applies to all invocations of the vxvol utility (volume starts, mirror resynchronizations, RAID-5 partity rebuilds, and RAID-5 subdisk recoveries) o plex, applies to all invocations of the vxplex utility (used only for attaching plexes) o attach applies specifically to plex attach operations o start applies specifically to volume start operations o recover applies to subdisk recoveries o resync applies to mirror resynchronization and RAID-5 parity recovery. -p Prints the list of selected volumes that are startable. For each startable volume, a line is printed containing the volume name, the disk group ID of the volume, the volume's usage type, and a list of state flags pertaining to mirrors of the volume. State flags include: o kdetach indicates that one of the mirrors was detached by an I/O failure o stale means that one of the mirrors needs recovery, but that the recovery is related to an administrative operation, not an I/O failure o stopped prints if neither kdetach nor stale is appropriate for the volume. -s Starts disabled volumes that are selected by the operation. Volumes are started before any other recovery actions are taken. Volumes are started with the -o delayrecover start option. This requests that any operations that can be delayed in starting a volume are delayed. That is, only those operations necessary to make a volume available for use occur. Other operations, such as mirror resynchronization, attaching of stale plexes and subdisks, and recovery of stale RAID-5 parity, are typically delayed. -t tasktag If any tasks are registered to track the progress of the operation, marks them with the tag tasktag. This option is also passed to any utilities called to perform recoveries, so all tasks registered by any utility to perform the recoveries are also tagged with tasktag. -v Displays information about each task started by vxrecover. For recovery operations (as opposed to start operations), prints a completion status when each task completes. -V Displays each command executed by vxrecover. The ouput generated is more verbose than the job descriptions printed with the -v option. EXAMPLES
To recover, in the background, any detached subdisks or plexes that resulted from replacement of a specified disk, use the command: vxrecover -b medianame To monitor the operations, use the command: vxrecover -v medianame FILES
/etc/default/vxplex Standard defaults file for vxplex that determines whether FastResync is used when attaching plexes. See vxplex(1M) for details. /etc/default/vxrecover Standard defaults file for vxrecover that is used to set the I/O size and I/O delay values for recovery operations. SEE ALSO
vxintro(1M), vxmake(1M), vxplex(1M), vxvol(1M), vxvset(1M) VxVM 5.0.31.1 24 Mar 2008 vxrecover(1M)
All times are GMT -4. The time now is 07:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy