Vous êtes sur la page 1sur 7

Search

CONTACT

Twitter Updates
April 26th, 2012 | Posted by spritian in HP-UX | LVM Like 0 Send

Follow us on Twitter

Here are my notes on how to remove and replace a dead mirrored drive on HP-UX 11i v3: Remove bad mirrored boot disk HP-UX: Check for stale LEs:

Recent Posts
My Favorite Linux Distros UX, Server, and Enterprise

NetApp OnCommand lvdisplay -v -k /dev/vg00/lvol# (1-7 is normal, however your system might 2.0.2 havefor more) (to get k System Manager Debian/Ubuntu Next we need to remove the bad drive from the LVM, so lets reduce the
open in browser PRO version
Are you a developer? Try out the HTML to PDF API

VMware vSphere 5.1 is out!


pdfcrowd.com

VMware vSphere 5.1 is out! lvols (the last integer is the key from the last lvdisplay command): Epic Uptime! Woo, its been awhile! Duke Nukem 3D Spritian vs Stebo Fix resolvconf on Ubuntu 12.04 Install Dropbox as a service Now that weve reduced the mirror, lets remove partition 2 from the volgroup: on Linux Ubuntu 12.04 freezing with dual monitors fix Useful HP-UX commands for Linux Administrators

lvreduce lvreduce lvreduce lvreduce lvreduce lvreduce lvreduce

-m -m -m -m -m -m -m

0 0 0 0 0 0 0

-A -A -A -A -A -A -A

n n n n n n n

-k -k -k -k -k -k -k

/dev/vg00/lvol1 /dev/vg00/lvol2 /dev/vg00/lvol3 /dev/vg00/lvol4 /dev/vg00/lvol5 /dev/vg00/lvol6 /dev/vg00/lvol7

0 0 0 0 0 0 0

vgreduce /dev/vg00 /dev/disk/disk62_p2

If we cant reduce because its critically failed, then we need to do this:

vgreduce f /dev/vg00 /dev/disk/disk62_p2 vgscan f /dev/vg00

Recent Comments
Octopress | Opoo.org on Install Dropbox as a service on Linux

Then confirm:

vgdisplay -v vg00

spritian on NetApp OnCommand System Manager 2.0.2 for Debian/Ubuntu


pdfcrowd.com

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

Heres an example of a DEAD drive from ioscan:

2.0.2 for Debian/Ubuntu thiyagi on NetApp

OnCommand System Manager disk 62 64000/0xfa00/0xd esdisk NO_HW DEVICE offline HP 36.4GST336753LC 2.0.2 for Debian/Ubuntu 2/0/0/2/0.0x6.0x0 /dev/disk/disk62 /dev/disk/disk62_p2 /dev/rdisk/disk62 /dev/rdisk/disk62_p2 Johnny Five on Install Dropbox /dev/disk/disk62_p1 /dev/disk/disk62_p3 /dev/rdisk/disk62_p1 /dev/rdisk/disk62_p3 as a service on Linux Example of REPLACED drive with the old DEAD DSF Map DSF then Re-add to VG: STEP1: In order to see the new drive, you need to do this first (AFTER NEW DRIVE IS INSERTED): scsimgr replace_wwid D /dev/rdisk/disk62 sac moncler on My Favorite Linux Distros UX, Server, and Enterprise Melissa Johnson on Ubuntu 12.04 freezing with dual monitors fix ... NetApp OnCommand disk 62 64000/0xfa00/0xd esdisk NO_HW DEVICE Jean on offline HP 36.4GST336753LC /dev/disk/disk62 /dev/disk/disk62_p2 /dev/rdisk/disk62 /dev/rdisk/disk62_p2 System Manager 2.0.2 for /dev/disk/disk62_p1 /dev/disk/disk62_p3 /dev/rdisk/disk62_p1 /dev/rdisk/disk62_p3 Debian/Ubuntu disk 219 64000/0xfa00/0x20 esdisk 2/0/0/2/0.0x6.0x0 /dev/disk/disk219 /dev/rdisk/disk219 ... CLAIMED DEVICE online HP 36.4GST336753LC Walker on My Favorite Linux Distros UX, Server, and Enterprise John Jobs on Dynamic LUN STEP2: Formart disk219 Expansion on Solaris using Veritas echo "3" > /tmp/partitionfile echo "EFI 500MB" >> /tmp/partitionfile echo "HPUX 100%" >> /tmp/partitionfile
open in browser PRO version
Are you a developer? Try out the HTML to PDF API

spritian on Extend an LVM volume in Linux


pdfcrowd.com

echo "HPUX 100%" >> /tmp/partitionfile echo "HPSP 400MB" >> /tmp/partitionfile idisk -wf /tmp/partitionfile /dev/rdisk/disk219 ioscan -fnNC disk insf -e -C disk

Categories
Debian

STEP3: Then you can map the new DSF to the old one:

Debian Packages Duke Nukem 3D HP-UX

io_redirect_dsf -d /dev/disk/disk62 -n /dev/disk/disk219

STEP4: Make Bootable and fix EFI partitions:

Linux Linux Mint Debian

mkboot -e -l /dev/rdisk/disk62 LVM efi_ls -d /dev/rdisk/disk62_p1 lifls -l /dev/rdisk/disk62_p2 Mac OSX mkboot -a "boot vmunix -lq" /dev/disk/disk62 efi_cp -d /dev/rdisk/disk62_p1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x;rm /tmp/x NetApp STEP5: Create PV, Extend VG, and Extend LVs: PC Games PCoIP pvcreate -f -B /dev/rdisk/disk62_p2 vgextend /dev/vg00 /dev/disk/disk62_p2 lvextend lvextend lvextend lvextend -m -m -m -m 1 1 1 1 /dev/vg00/lvol1 /dev/vg00/lvol2 /dev/vg00/lvol3 /dev/vg00/lvol4 /dev/disk/disk62_p2 /dev/disk/disk62_p2 /dev/disk/disk62_p2 /dev/disk/disk62_p2 Red Hat Enterprise Linux Solaris Ubuntu Uncategorized
pdfcrowd.com

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

lvextend lvextend lvextend lvextend lvlnboot lvlnboot lvlnboot lvlnboot lvlnboot lvlnboot

-m -m -m -m -r -b -s -d -R -v

1 /dev/vg00/lvol4 1 /dev/vg00/lvol5 1 /dev/vg00/lvol6 1 /dev/vg00/lvol7 /dev/vg00/lvol3 /dev/vg00/lvol1 /dev/vg00/lvol2 /dev/vg00/lvol2

/dev/disk/disk62_p2 /dev/disk/disk62_p2 /dev/disk/disk62_p2 /dev/disk/disk62_p2

Uncategorized Vertias VMware

Archives
October 2012 September 2012

STEP6: Verify VG and boot paths

vgdisplay -v vg00 setboot -v

August 2012 July 2012

If the mirrored disk fails to boot from EFI, boot off the alternate working one, and re-execute setboot -v with the device path (even though it might already be set, set it again since the wwid change).

May 2012 April 2012

You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

Links
Helixstorm

One Response
googlepo says:
Monday, 10th September 2012 at 1:27 pm

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Thank you very much for that glorious article


Reply

Leave a Reply
Your email address will not be published. Required fields are marked
Name

Email

Website

CAPTCHA Code

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr
title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre user="" computer="" escaped="">

POST COMMENT

Copyright 2013 All rights reserved.

www.spritian.com

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Vous aimerez peut-être aussi