Operating System - HP-UX
1833053 Members
2352 Online
110049 Solutions
New Discussion

disk error file corrupted

 
kholikt
Super Advisor

disk error file corrupted

I have two logical volume. One of file system /data1 is located in vg01.

There are two disks in this logical volume. I have try the lvdisplay -v but I cannot find any stale partiton.

However, when I dd if=/dev/rdsk/c1t0d0 of=/dev/null bs=64k, I get an I/0 error. This is only happened to one of the disk in the vg01. The other disk c2t0d0 since to be fined when I of to /dev/null.

How can I move the information from c1t0d0 to c2t0d0 since some of the logical volume span across both disks.

I have this file system corrupted twice already
abc
5 REPLIES 5
Steven Sim Kok Leong
Honored Contributor

Re: disk error file corrupted

Hi,

Since one of your disks is faulty (dd has errors), you should try to salvage data at the filesystem level where possible before the disk crashes altogether.

I would perform the following steps:
1) perform a filesystem backup.
2) lvremove the logical volume.
3) vgreduce the faulty disk from the volume group.
4) replace the faulty harddisk.
5) vgextend the new disk into the volume group.
6) lvcreate the logical volume on the new disk.
7) lvextend the logical volume onto the remaining good disk so that the logical volume sits on both two disks (as before).

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Patrick Wallek
Honored Contributor

Re: disk error file corrupted

You don't say if this logical volume is mirrored or not. If it is not and you just want to move the data in the LV so that it all resides on one disk, then you can use the 'pvmove' command. Do a 'man pvmove' for more information.
kholikt
Super Advisor

Re: disk error file corrupted

this is something very interesting. this file system has one file named drsys01.dbf cannot be copy or backup either. I will get an I/O error if I try to do this even shutdown to single user mode.

However,I can't find any stale PE for the disk
abc
Patrick Wallek
Honored Contributor

Re: disk error file corrupted

It sounds as if you have a bad disk. Since dd is giving you errors and you are having other problems. You didn't say if this LV was mirrored or not. If this is not mirrored then I don't know that you have much choice other than to get the disk replaced and then restore from backup. The file name you give sounds like a database file, so you will probably have to restore the whole database and not just that one single file.

Also, if the LV is not mirrored then I don't think you will see any stale extents on the LV. Only with mirroring will you see any stale extents, as far as I know.
Vincenzo Restuccia
Honored Contributor

Re: disk error file corrupted

You can see vgcfgrestore -n.