Operating System - HP-UX
1838198 Members
4473 Online
110125 Solutions
New Discussion

problem spliting /var mirror

 
SOLVED
Go to solution
Rosana Ramos
Occasional Contributor

problem spliting /var mirror

Hi!!

A disk failed in my server. I'm trying to split all the mirrors but I can not remove the mirror from /var it says that the file system is busy, what should I do?
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: problem spliting /var mirror

Why do you want to split the mirror? You should replace the disk without splitting the mirrors.
If it ain't broke, I can fix that.
Rosana Ramos
Occasional Contributor

Re: problem spliting /var mirror

Because my server is not working.. I mean is too slow, nothing can be done there..
A. Clay Stephenson
Acclaimed Contributor

Re: problem spliting /var mirror

You shouldn't be lvsplit'ting at all. If I can assume that your failing disk is a hot-plug disk then simply pull it out of its slot a few centimeters and allow it to spin down. This will convert your failing disk which is causing many bus resets to a failed disk and the system should regain its near-normal speed.

Lvsplit should never be a part of your disk replacement strategy.
If it ain't broke, I can fix that.
Senthil Kumar .A_1
Honored Contributor

Re: problem spliting /var mirror

Hi Rosana,

The system is slow because, may be the system is trying to access a part of disk and waiting for the disk to process that request. I agree with the above responses which says "spliting should not be a part of disk replacement strategy".

Though, At this stage you have 2 options,

Option 1) recreate the mirrors of already split lvol's, and issue the following commands,

pvchange -a n /dev/dsk/c#t#d# (this command will tell the system, not to access this device path anymore, there by your system might respond faster for rest of the activities)

remove the disk out of the system physically and replace with the new one.

vgcfgrestore -n vg00 /dev/rdsk/c#t#d#
.
.
Rest of the steps can be found in "what if good disk goes bad document", I will try to find or attach the doc here later.

option 2) If the system is too slow to respond to any commands, then, try spliting the var lvol with "-k" option to lvreduce command.

lvreduce -k -m 1 /dev/vg00/lvol# (-k specifies the system to ignore the disk that is causing the issue, just telling the system to assume the disk is not available anymore)

Quite strange though why it should complain that FS is busy, unless you were trying to umount. Usually slitting should not give such a message and you do not require to unmount a FS for mirror split....

Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: problem spliting /var mirror

Hi Rosana,

Try choosing one the options i have given you in my previous response. For option 1, I promised a doc. I'm attaching the pdf.

Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Rosana Ramos
Occasional Contributor

Re: problem spliting /var mirror

Thanks for your help. Both of you! I used lvreduce but in sigle user mode because /var never allow me even with -k option.

I really appreciate your help because I'm very new in HPUX