- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pvcreate error: damaged disk?
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
Discussions
Discussions
Forums
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
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
тАО04-10-2001 08:34 AM
тАО04-10-2001 08:34 AM
I got the following error trying to create physical volume
# pvcreate /dev/rdsk/c0t4d0
pvcreate: clearing the bad block directory: I/O error
iocsan and diskinfo recognize the disk (c0t4d0)
# ioscan -fn -C disk
============================
disk 0 56/52.1.0 disc3 CLAIMED DEVICE SEAGATE ST34520N
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
/dev/floppy/c0t1d0 /dev/rfloppy/c0t1d0
disk 2 56/52.4.0 disc3 CLAIMED DEVICE FUJITSU M2909S-512
/dev/dsk/c0t4d0 /dev/rdsk/c0t4d0
/dev/floppy/c0t4d0 /dev/rfloppy/c0t4d0
# diskinfo -v /dev/rdsk/c0t4d0
SCSI describe of /dev/rdsk/c0t4d0:
vendor: FUJITSU
product id: M2909S-512
type: direct access
size: 3027417 Kbytes
bytes per sector: 512
rev level: 0127
blocks per disk: 6054834
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
How it is possible to get to know if the disk is physically damaged? The disk allows to copy something by dd, however, sometimes claims I/O errors
# dd if=/etc/ntp.conf of=/dev/dsk/c0t4d0
9+1 records in
9+1 records out
# dd if=/etc/ntp.conf of=/dev/rdsk/c0t4d0
I/O error
9+1 records in
9+1 records out
Thanks in advance! Any ideas will be highly appreciated!
Best regards,
Mihails
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2001 08:54 AM
тАО04-10-2001 08:54 AM
Re: pvcreate error: damaged disk?
dd if=/dev/rdsk/c0t5d0 of=/dev/null bs=xxxx
(bs is the block size)
it should give something like this:
184436+0 records in
184436+0 records out
if it doesn't, then maybe you have an hw error.
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2001 09:14 AM
тАО04-10-2001 09:14 AM
Re: pvcreate error: damaged disk?
Try the mediainit command that reinitialize disk.
Takes some time but helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 12:07 AM
тАО04-11-2001 12:07 AM
Re: pvcreate error: damaged disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 12:19 AM
тАО04-11-2001 12:19 AM
SolutionDD reporting an error means there is a problem with the filesystem on the disk, not necessarily the disk itself. May only be a bad block which needs to be remapped in order for it to be usable.
On a PC you would run a low-level formatter to remap all the bad blocks and make it useable. On HP-UX use the mediainit command to do the low level format. Only if mediainit fails then the disk is no good.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 01:15 AM
тАО04-11-2001 01:15 AM
Re: pvcreate error: damaged disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 03:16 AM
тАО04-11-2001 03:16 AM
Re: pvcreate error: damaged disk?
Use dd to wipe out the disk, overwrite the disk header. Also the pvcreate -f to force the writing of the header are good.
One thing to note about mediainit, it works for HP disks. If your disk is a 3rd party disk it may/maynot work. Simply put, there is no guarantee it will work. Check with your vendor, they may have some formatter to use instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 06:13 AM
тАО04-11-2001 06:13 AM
Re: pvcreate error: damaged disk?
If dd fails with i/o error reading from or writing to the disk it means your it is damaged. You can confirm it if you have Support Tool Manager installed in this system. Run `mstm` - Menu tools, run, utility, select logtool with spacebar, ok.
In logtool, select view menu, formatted log, choose dir to write it, ok. After formatting it, you can check if there are hardware errors logged from your disk. It is identified by its hardware path. Issue an `lssf /dev/dsk/
If you have an HP hardware support agreement, You can ask a Customer Engineer to do that for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 06:17 AM
тАО04-11-2001 06:17 AM
Re: pvcreate error: damaged disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2002 07:02 AM
тАО10-08-2002 07:02 AM
Re: pvcreate error: damaged disk?
For me, is best to check the disk with the dd command.