- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Command to exercise a disk on console
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
06-29-2007 05:02 PM
06-29-2007 05:02 PM
Is there a console command to exercise a disk with read and write permission ? I know that i can do it in STM but i want to add the exercise process of disk testing in a script that i've been given..
Also in the scipt it uses the dd commands to write zeros but the results shows an I/O error. Does the error occur as the first 16 sectors are read-only ? would the following get rid of the error ?
from:
dd if=/dev/zero of=/dev/rdsk/c#t#d# bs=512k
To:
dd if=/dev/zero of=/dev/rdsk/c#t#d# bs=512k oseek=1
Thanks in Advance
Will
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2007 02:43 AM
06-30-2007 02:43 AM
Re: Command to exercise a disk on console
add the noerror option and use the urandom if you have.
# dd if=/dev/urandom of=/dev/rdsk/c#t#d# bs=1024k conv=noerror
# dd if=/dev/null of=/dev/rdsk/c#t#d# bs=1024k conv=noerror
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2007 05:34 AM
06-30-2007 05:34 AM
Re: Command to exercise a disk on console
Console commands are platform dependent.
Please indicate which specific box/architecture?!
Robert-Jan,
# dd if=/dev/urandom
The 'random' device is very slow / cpu intensive.
Writing zeroes is good enough to test write-ability.
# dd if=/dev/null
That gives and end-of-device rigth away.
You want to use /dev/zero like Will already indicated.
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2007 01:24 PM
06-30-2007 01:24 PM
Re: Command to exercise a disk on console
Hein - I'm using the L1000 & RP7400 (Nclass), both with HP-UX 11. I assume that it was software based and only need to tell it which disk i want to exercise with the read and write permission ?
Will
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2007 09:02 PM
07-01-2007 09:02 PM
Re: Command to exercise a disk on console
I've used the conv=noerror on the dd command but it still giving me the I/O error after it finished testing the disk.
Also i get the "/dev/urandom: No such file or directory" when inputting the /dev/urandom on the dd command.
Is there a way to put it into a file or is it the same principles with the /dev/zero ? eg:
mknod /dev/zero c 3 0x00003
chmod 444 /dev/zero
Will
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2007 10:55 PM
07-01-2007 10:55 PM
SolutionHP-UX Strong Random Number Generator
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=KRNG11I
Could you run a "dskinfo /dev/rdsk/cxtydz" on the device file of the diks?
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2007 11:04 PM
07-01-2007 11:04 PM
Re: Command to exercise a disk on console
After reading that weblink, It's not what i really looking for, All i want is to write zero's all over the disk randomly instead from begining - end like /dev/zero does. Wondered is this possible as a customer wants how it write zeros in this way.
Will
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2007 11:08 PM
07-01-2007 11:08 PM
Re: Command to exercise a disk on console
i do get some info of the disk when i
diskinfo /dev/rdsk/c#t#d#
But about the "conv=noerror" this still give me an I/O error what else am i doing wrong ?
Will
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 12:40 AM
07-02-2007 12:40 AM
Re: Command to exercise a disk on console
did this disk have any bad sectors?
That would explain the io-error.
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 12:58 AM
07-02-2007 12:58 AM
Re: Command to exercise a disk on console
Only get the error on the /dev/zero but no errors on the /dev/null part of the test
Will
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 01:46 AM
07-02-2007 01:46 AM
Re: Command to exercise a disk on console
/dev/zero should have been 0x000004.
# mknod /dev/zero c 3 0x000004
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 02:34 AM
07-02-2007 02:34 AM
Re: Command to exercise a disk on console
Naturally, /dev/null didn't do anything.
You may get an error on /dev/zero because you write off the end of the destination file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 02:41 AM
07-02-2007 02:41 AM
Re: Command to exercise a disk on console
Are you going to help out or are you going to moan about what other people want to do ? I'm only here to get help on why and how to solve these problem if theres a solution.
So if your not going to help and moan like a girl then i suggest you shut up