1748136 Members
3515 Online
108758 Solutions
New Discussion юеВ

Re: Disk replacement

 
Anjaneyulu
Frequent Advisor

Disk replacement

Hi,

I am new to the HP-UX. I findout some i/o errors on database side on two lvs these are in seperate disks. Can you give me the advice what is the better way
1. disks replacement after thar restore the data.
OR

2. give the newfs command on lvs. and restore these lvs only. what is the better way.


I didn't get any stale lv's in these disks. So please give me the sugesstion.

Give me the commands syntax also from first to last.
12 REPLIES 12
Torsten.
Acclaimed Contributor

Re: Disk replacement

Please read and follow:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

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!   
Anjaneyulu
Frequent Advisor

Re: Disk replacement

how to check the disk status is available or not?

I give this command
vgdisplay /dev/dsk/cxtxdx
volumegroup: does not exist in the "/etc/lvmtab" file

vgdisplay: Cannot display volume group "/dev/dsk/cxtxdx



what is the meaning of the above error messages . Please explain me Iam getting confusion.
Torsten.
Acclaimed Contributor

Re: Disk replacement

Wrong use!

# vgdisplay vg01

you need to specify the VG name!


RTFM!

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!   
Anjaneyulu
Frequent Advisor

Re: Disk replacement

my colleague told me that clean the lv's by using newfs command after restore the data.

please give me the detail procedure for this senario.
Torsten.
Acclaimed Contributor

Re: Disk replacement

first you have to ensure if the disk is bad, then follow the steps to replace it.

I don't know what your system says about your I/O errors, so I cannot give you more ...

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!   
Anjaneyulu
Frequent Advisor

Re: Disk replacement

How can I say disk bad . I didn't get any stale partitions. In My DBA team get i/o errors on two lv's of different disks.
Torsten.
Acclaimed Contributor

Re: Disk replacement

"How can I say disk bad "

RTFM the above linked document.

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!   
Anjaneyulu
Frequent Advisor

Re: Disk replacement

I have one dought we can rebuild the lv by using newfs.

i didn't destroy the data on that lv. just i give newfs it rebuild with empty data. is it possible?
Torsten.
Acclaimed Contributor

Re: Disk replacement

I'm really not sure what you want to "repair" using newfs.

Did you search the syslog file before for related errors?

Did you check your disk with "dd"?

Example:


# dd if=/dev/rdsk/c0t5d0 of=/dev/null bs=1024k

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!