1820879 Members
5157 Online
109628 Solutions
New Discussion юеВ

Re: Disk scan command

 
SOLVED
Go to solution
Dan DeHaan
Advisor

Disk scan command

A year or so ago, I came across a command to check the status of UPUX harddrives. It wasn't checking the filesystem, but the actual physical health of the drive. Now I need it, but can't find or remember it. Any ideas?
7 REPLIES 7
Robert-Jan Goossens
Honored Contributor

Re: Disk scan command

Hi Dan,

Something like a read test ?

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

Regards,
Robert-Jan
Dan DeHaan
Advisor

Re: Disk scan command

No, something more like checking bad sectors and stuff like that.
Stf
Esteemed Contributor
Solution

Re: Disk scan command

# mediainit -v /dev/rdsk/cXtXdX

But it will erase all your data !!!!!!!!

Stf ;-)
Robert-Jan Goossens
Honored Contributor

Re: Disk scan command

Hi Dan,

TAKE VERY GOOD CARE WITH THE MEDIAINIT COMMAND!

Are you looking to display stale extends in a logical volume like the question you had in below thread ?

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=619689

Regards,
Robert-Jan

Dan DeHaan
Advisor

Re: Disk scan command

No. In that thread I even mention that we tested the drives. The command I'm looking for was the command we tested with. I wrote it down somewhere safe, but now, well ....
Robert-Jan Goossens
Honored Contributor

Re: Disk scan command

diskinfo -v /dev/rdsk/cxtydz

# cstm
cstm>map
cstm>sel dev
cstm>info
cstm>infolog

there is a tool from seagate but not for HPUX.

http://www.seagate.com/support/seatools/
Dan DeHaan
Advisor

Re: Disk scan command

The more I get thinking about it, the more I believe it was the mediainit command. Thanks for your help guys.