- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: What does this command do?
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
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-05-2004 12:51 PM
10-05-2004 12:51 PM
Thank u!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 01:04 PM
10-05-2004 01:04 PM
Re: What does this command do?
It check the disk by reading the if=/dev/dsk/c0t0d0s0 option in dd means input file, and it reads in a block of 1024k and if there is any problem on the disk whcih prevents from reading the device, it reports an error.
So by running above command you are looking for any read errors on the device
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 01:06 PM
10-05-2004 01:06 PM
Re: What does this command do?
But how does writing files to null checks the intergrity of the drive?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 01:30 PM
10-05-2004 01:30 PM
Re: What does this command do?
It's done by reading from the disk. 'if=/dev/rdsk/c0t0d0' will read from the disk and write into /dev/null. If any block is bad and is not readable, then the disk may be bad.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 01:46 PM
10-05-2004 01:46 PM
SolutionIts not the write we are checking for by this command. And since we are reading from a device file we need to write somewhere, thats the reason why we are writing to /dev/null which means nothing.
So the point to note is that we are looking for reading the device not writing to device.
But if you like you can check the write also, but that will destory all the data you have on that disk, so writing is tested when the device is added new.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 03:29 PM
10-05-2004 03:29 PM
Re: What does this command do?
Normally, this is not needed if you have the online diagnostics loaded and patched. Any problems with the disks will be reported in syslog.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 03:55 PM
10-05-2004 03:55 PM
Re: What does this command do?
I rarely read the whole drive though, Just enough to make sure the data is coming form the real spindles, not from some controller cache. So I like to read say 100MB or 1GB and use bs=1024k count=100 for that.
I also tend to pre-fix with the 'time' command, such that I also get an impression of the raw disk IO speed.
In the rare occasions when I want to test raw writes, I use if=/dev/zero, but as pointed out this will destroy any existing data.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 04:07 PM
10-06-2004 04:07 PM
Re: What does this command do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 10:04 PM
10-06-2004 10:04 PM
Re: What does this command do?
http://docs.hp.com/hpux/onlinedocs/diag/stm/stm_upd.htm#table
For your version that you have installed, read the README for the list of "Required and Recommended Patches"
To download the latest version of Diagnostics
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6191AAE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2004 12:21 AM
10-07-2004 12:21 AM
Re: What does this command do?
As mentioned, you can download the latest diagnostics from HP, or load them from your latest SupportPlus CDROM. In some cases, you'll need additional patches but these are on the CD or available from the HP ITRC. Once the diagnostics are correctly loaded and running, any errors including soft errors like correctable memory errors will be logged in syslog.
Bill Hassell, sysadmin