1838646 Members
2529 Online
110128 Solutions
New Discussion

Re: Disk replacement

 
SOLVED
Go to solution
Waqar Razi
Regular Advisor

Disk replacement

One of the disk on L class server is going bad. It has some bad sectors on it and I wanna replace it. It is included in vg02 and this volume group has 2 disks included in it and one Logical volume spans both of them.



Can some one please give me steps to do this replace? The OS version is 10.20 and the HD is hot swappable.
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: Disk replacement

James R. Ferguson
Acclaimed Contributor

Re: Disk replacement

Waqar Razi
Regular Advisor

Re: Disk replacement

I have read that manual but still some things are not clear to me, can some one give me more guidance by providing step by step solution please?
Jov
Honored Contributor

Re: Disk replacement

Hi Wagar,

You have to provide more info regarding your setup before we can help.

Is VG02 mirrored? From your comment regarding the volume spanning two disk, and the fact that it only has 2 disk, I am assumming its RAID 0.

If this is the case, I'd immediately shutdown and make a full backup of VG02 before more data will be lost.

You can NOT do this change online as the faulty disk is the only copy.


Jov
Jeeshan
Honored Contributor

Re: Disk replacement

what you can in this situation is,

take a full ignite or make_tape backup.

take a nickel output.

then replace the disk and then restore from ignite image.
a warrior never quits
Patrick Wallek
Honored Contributor
Solution

Re: Disk replacement

ahsan said:
**********
what you can in this situation is,

take a full ignite or make_tape backup.

take a nickel output.

then replace the disk and then restore from ignite image.
**********

Actually, no. An ignite backup is NOT recommended here. And you don't need to restore from the Ignite backup.

He said this is VG02, NOT VG00.

The steps I would take are:

1) Shut down whatever application uses VG02 mount points
2) Run a complete backup of VG02 mount points.
3) Replace the disk
4) Run ioscan to make sure the new disk is available.
5) Run vgcfgrestore to restore the configuration to the new disk
6) Run 'vgchange -a y vg02' to make sure vg02 can see the new disk.
7) Restore the data to the disk
8) Restart the applications.
Jov
Honored Contributor

Re: Disk replacement

Hi Ahsan,

Good suggestion, but becareful in suggesting Ignite tape recovery without more details.

The default make_tape_recovery will only backup the essential OS files making it quicker to recover, but miss vg02.

To backup vg02, you need the addition of "-x inc_entire=vgXX".

e.g.
make_tape_recovery -I -v -x inc_entire=vg00 -x inc_entire=vg02

Maybe it can be simplified to
make_tape_recovery -I -v -x inc_entire=vg00,vg02

But check the manpages as I dont have access to a HP-UX system to verify.

Jov
Torsten.
Acclaimed Contributor

Re: Disk replacement

Something is wrong here.

Either it isn't a L-class server or it doesn't run 10.20. This combination is impossible.

Anyway, I would suggest to "fbackup" the data, replace the disk, restore the disk config (vgcfgrestore), create a new file system on the LVOLs and restore the data.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Patrick Wallek
Honored Contributor

Re: Disk replacement

>>Either it isn't a L-class server or it doesn't run 10.20. This combination is impossible.


Hmmm...Good catch, Torsten. I completely missed that little tidbit.