- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: How to integrate diskblock command into a scri...
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
тАО05-03-2007 11:16 AM
тАО05-03-2007 11:16 AM
How to integrate diskblock command into a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 12:01 PM
тАО05-03-2007 12:01 PM
Re: How to integrate diskblock command into a script
> failed.
Perhaps you did something wrong. What did
you do? How did it fail?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 12:10 PM
тАО05-03-2007 12:10 PM
Re: How to integrate diskblock command into a script
There is no OpenVMS standard tool 'diskblock'.
May/must we assume this it the OpenVMS Freeware tool called Diskblock?
Which version (5.8?)
I don't know the tool but I know the guy who wrote it is a solid VMS specialist. So I'm guessing here that you do not have to go 'into' the tool but can just give it a command line.
If so, just $SPAWN/NOWAIT/OUT=... DISKBLOCK TEST ... device
Or submit the same batch job several times with a parameter for the disk to test and define a logical name for that disk just before running the command
Or create several temp commandd files on the fly and spawn or submit those.
>> so it maybe a good idea to integrate the command into a script and do it concurrently
That may be a great idea to a thoroughly bad idea depending on what you want to measure. The disk or the controller?
>> I have tried several ways, but always failed. So can anyone give me some suggestions?
Here is anovel idea.... how about you explain to us:
a) what you tried
b) why you think it failed.
Was there an error message?
Did it not do what you expected?
How did you come to that conclusion?
We are all superbly smart here, but we are only amateur mind readers.
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 12:45 PM
тАО05-03-2007 12:45 PM
Re: How to integrate diskblock command into a script
As Heuvel mentioned, DISKBLOCK is OpenVMS Freeware tool. I use the "test" function to create the IO to disks.
$DISKBLOCK
DISKBLOCK>test /iosize=2 /queue=10 /readpercent=100 /duration=3600*48 /random /compare
This could be fine if I just test one disk, but if I want to test more than one disk, for example 10 disks, it is not a good idea to run it separately.
I have tried to define a symbol as following:
TEST :== $DISKBLOCK test /iosize=2 /queue=10 /readpercent=100 /duration=3600*48 /random /compare
But when I issue $TEST on the command line, the DISKBLOCK> shows up, but the command won't run.
I am new to OpenVMS,can't figure out
good ways to in a short time,but the task is a bit urgent. So I wonder if anyone can give me some suggestions to get my goal.
Thanks for Heuvel and Cheweda's comments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 01:04 PM
тАО05-03-2007 01:04 PM
Re: How to integrate diskblock command into a script
command procedure?:
$ diskblock
test /iosize=2 /queue=10 /readpercent=100 /duration=3600*48 /random /compare
> I am new to OpenVMS, [...]
How much don't you know? (It's hard to be
helpful with no knowledge of the audience.)
It appears that DISKBLOCK is not expecting
options on its command line. It reads them
from the user at SYS$INPUT (or SYS$COMMAND,
depending).
Of course, I don't use the program, so I'm
just guessing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 01:28 PM
тАО05-03-2007 01:28 PM
Re: How to integrate diskblock command into a script
This appears to make sense as according to its help you need to 'select' a device first and such.
So here is the general, untested, approach
$close/nolog x
$disks = "x:,y:,z:"
$i = 0
$loop:
$disk = f$element(i,",",disks)
$if disk.eqs."" then goto done:
$i = i + 1
$open/write x disk_'i'.tmp
$write x "select " + disk
$write x "test ..."
$close x
$spawn /nowait/inpu=disk_'i'.tmp/out=disk_'i'.log run diskblock
$goto loop
$done:
$! Figure out to wait for all to complete...
Actually the waiting is slightly tricky.
So it would be better to SUBMIT instead of spawn and then use SYNC
Or... you can just run one at a time
with a similar loop:
$close/nolog x
$disks = "x:,y:,z:"
$i = 0
$loop:
$disk = f$element(i,",",disks)
$if disk.eqs."" then goto done:
$i = i + 1
$open/write x disk_'i'.tmp
$write x "select " + disk
$write x "test ..."
$close x
$define/user sys$input disk_'i'.tmp
$define/user sys$output disk_'i'.log
$run diskblock
$goto loop
$done:
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2007 09:27 AM
тАО05-07-2007 09:27 AM
Re: How to integrate diskblock command into a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2007 06:11 AM
тАО05-09-2007 06:11 AM
Re: How to integrate diskblock command into a script
$ test :== "pipe write sys$output ""test /iosize=2 /queue=10 /readpercent=100 /duration=3600*48 /random /compare"" | diskblock"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2007 05:46 PM
тАО05-16-2007 05:46 PM