Operating System - HP-UX
1834800 Members
2911 Online
110070 Solutions
New Discussion

Re: stale logical volume.

 
dhanish
Regular Advisor

stale logical volume.

hi,
my one of the hardisk has failed and thats in a logical volume which is mirrored and showing stale , now when i replace the hard disk , how do i resync the mirrored logical volume ,please suggest.
Never Say Die
5 REPLIES 5
Vincent Farrugia
Honored Contributor

Re: stale logical volume.

Hello,

Is that harddisk bootable, or does it contain data files only?
Tape Drives RULE!!!
dhanish
Regular Advisor

Re: stale logical volume.

It contains data file only, its not a bootable volume.
Never Say Die
Thierry Poels_1
Honored Contributor

Re: stale logical volume.

Hi,

have a look at "vgcfgrestore" to restore LVM configuration to a (new) disk, and at "vgsync" to resync a whole volume group, or "lvsync" to resync an individual logical volume.

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Michael Tully
Honored Contributor

Re: stale logical volume.

Hi,

You should have a look at the man page from 'vgcfgrestore'

# vgcfgrestore -n /dev/yourvg /dev/rdsk/c5t5d0

(Replace with your disk name)

When replacing a disk it is best to have the volume un-available.

Michael
Anyone for a Mutiny ?
Vincent Farrugia
Honored Contributor

Re: stale logical volume.

Hello,

I assume you already pvcreated the new harddisk. If you haven't done so, use pvcreate -f /dev/rdsk/c#t#d# first. It is recommended that you enter single-user mode before, to make sure no-one is accessing your system. From ISL, type hpux -is.

Then, vgcfgrestore and vgsync as already suggested.

HTH,
Vince
Tape Drives RULE!!!