[HPADM] lvreduce -m 0 command



Hello Unix professionals,

Let's assume we have vgfoo with 2 disks, in primary -> mirror schema:

strings /etc/lvmtab
vgfoo
/dev/dsk/c1t1d0
/dev/dsk/c1t2d0

Suddenly, you keep getting EMS and syslog I/O orror like a "vx_ioerror" regaridng disk /dev/dsk/c1t2d0. You want to replace the mirror.

You proceed to lvreduce -m vgfoo /dev/dsk/c1t2d0 and vgcfgerstore the new disk.

Questions:

1. Given: lvreduce -m vgoo /dev/dsk/c1t2d0. What exactly this command do ? 1a. Does this command modify metadata (PVRA/VGRA) in the remaining disk ( /dev/dsk/c1t1d0 )?
1b. Does this command modify metadata (PVRA/VGRA) in the failing disk ( /dev/dsk/c1t2do) ?

2. If the failing disks, refuses to "sucess" with lvreduce -m 0, what's the impact of: vgreduce -f /dev/dsk/c1t2d0 (failing disk) ?

3. What lvreduce does to the reduced failing disk and its extents and its PVRA/VGRA? If the disk is absolutly failing, perhaps any I/O sent to it wont sucess ?

4. Another related question: Given the above vgfoo, no failing disks, by mistake, I do a:
pvcreate -f /dev/dsk/c1t2d0.

4a. what pvcreate initialize ? PVRA and VGRA as well? Are they initializate to zeros? pvcreate store anything to the disk or just set up pointers or somehtg?
4b. How would I fix this ? vgcfgrestore -n vgf00 /dev/dsk/c1t2d0 and that is?

I wil summarize this and 2 other thread pending,

Thanks to provide this mailing list to HPUX community,

HP-UX 11i v3 is out!

Bst regards,



---
Fabio Andrés Miranda
Ingeniería en sistemas informáticos
Universidad Latina - Costa Rica

Relevant Pages

  • [HPADM] RE : lvreduce -m 0 command
    ... I think is better to change the disk with a new disk and do ... hpux-admin-owner@xxxxxxxxxxxxx de la part de Fabio Miranda Hamburger ... Let's assume we have vgfoo with 2 disks, ... What lvreduce does to the reduced failing disk and its extents and its ...
    (HP-UX-Admin)
  • Re: Moving Active Partition
    ... All damaged Operating System files will be cloned from the old drive ... If you are already experiencing boot problems, ... a hard disk experiences its most extreme usage ... high risk, therefore, that the failing disk will die in the middle of the ...
    (microsoft.public.windowsxp.general)
  • Sol9 - VxVM 3.5 : Log plex problem after disk replacement
    ... To replace the failing disk, I used the "evacuate" function in VEA (like I ... Then I physicaly replaced the failing disk, and evacuated the spare disk ...
    (SunManagers)
  • Re: Hard drive keeps going ...
    ... the failing disk, preferably from a rescue or live CD. ... (Something is regularly hitting one of my SCSI disks, ...
    (uk.comp.os.linux)
  • Re: Replace disk on A1000
    ... >>old data onto a new disk would be from a data recovery company. ... >Actually I can get the disk working sometimes. ... >the spare will take over for my failing disk. ... RAID 0 has no redundancy! ...
    (comp.sys.sun.admin)