- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: disk problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2001 10:24 PM
10-26-2001 10:24 PM
disk problem
One of my disks is giving read errors.
I have got another disk.
Can I do a
dd if=first disk of=second disk
to recover the data.
How can I use the mediainit command
when I give
mediainit -v /dev/rdsk/...
it gives
mediainit: initialization process starting
mediainit: locking SCSI device
mediainit: scsi_mi: Target lock failed
mediainit: scsi_mi: LUN lock failed
scsi_mi: Unable to set EXCLUSIVE mode: Device busy
please give your comments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2001 01:37 AM
10-27-2001 01:37 AM
Re: disk problem
You can also try adding the new disk to the existing VG and then doing a pvmove to move all the extents to the new disk, one LV at a time.
Finally ,why are doing a mediainit...this does a low level format of the disk and you will lose all your data on the disk. Although you may want to use this command on the original disk after moving the data. It will mark all the bad blocks on the disk and you might be able to re-use the disk.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2001 04:20 AM
10-27-2001 04:20 AM
Re: disk problem
First thanks.
I will explain the problem I am facing.
I have two disks that have become bad i.e.they have bad blocks.Inn this one is a corrupt disk with data in it and one is a free disk with corrupt blocks.
What I thought was to do a mediainit on one which is free and do a dd to transfer the data from the corrupt disk with data.
From your answer,I found that,dd cannot help me completing the task.Santhosh,
I do not have a proper backup.
Is there no other way to retrieve data from the corrupt hard disk.
Can you explain me the way to move the PE contents.
So,I try doing a mediainit on the dataless bad hard disk?
I am getting the error as mentioned above.
Can anyone help me reg. this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2001 12:01 PM
10-27-2001 12:01 PM
Re: disk problem
strings /etc/lvmtab|grep /dev/dsk/c?t?d?
this should return nothing...otherwise the disk belongs to a VG.
As for moving the data...like I said, you should be able to do a cp -R of all the files in the filesystem...once you hit the I/O error, just skip that file(s) and go on. If you're lucky, none of the files will actually be on the bad block.
As for the pvmove command, first you'd have to add the other disk to the same VG, then just do a:
pvmove -n /dev/VGNAME/LVOL /dev/dsk/
Hope this helps.
-Santos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2001 08:44 PM
10-27-2001 08:44 PM
Re: disk problem
I already did a strings lvmtab and the disk on which I am doing a mediainit is not in the list.
I have tried moving the files using cp -r but,
I get read errors and the system just hangs.
At present,i have restored the old data and i have brought up the application.
The task now is doing a low level formatting of the disks and checking whether it can be used.i.e.using mediainit.
1.How can i use this with the above mentioned error?
2.How can I find the corrupt blocks in the hard disk?....so that I can use a pvcreate -b
is there any utility which can give me the corrupt blocks?
3.Can I remove the hard disk attach it to a sun system and do a low level format?
Your answers please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2001 06:03 PM
10-28-2001 06:03 PM
Re: disk problem
If you are getting disk errors when you try to read the disk, copying it to another disk won't help very much. As you've seen, trying to copy all the files will stop when you encounter the errors.
About the only thing you can do is to make a complete list of every file, then use this list to perform the copy until it fails.
Now take the list of files and trim all of the filenames that were correctly copied and remove them from the list plus the one that had an error, and start the copy again. Repeat until all the files have been copied. You'll then have to deal with the lost files (which is why backups are perfromed regularly).
Bill Hassell, sysadmin