Service manual
3-60 AlphaServer GS80/160/320 Service Manual
Example 3– 38 Fakedisk
P00>>> fakedisk a 10
P00>>> fakedisk * 15
P00>>> exer –a ‘?r-w-Rc’ –sec 15 dfa
P00>>> rm dfa
This command creates a fake disk in memory called dfa the size of ten 512
blocks.
This command creates a fake disk in memory for each disk controller on
each PCI in the system. The size of each RAM disk is fifteen 512 blocks.
This command causes the following to run for 15 seconds on fake disk dfa:
Set the current block address to the beginning of a random block.
From the beginning of the block read 512 bytes into buffer1.
Set the address back to the beginning of the block.
Write the data from buffer1 back to the block on the disk.
Set the address back to the beginning of the block.
From the beginning of the block read 512 bytes into buffer2.
Compare buffer1 with buffer2 and report discrepancies.
This command removes the fake disk from memory.
The fakedisk command creates RAM disks in memory so that disk controllers
on PCIs can be tested without disks attached. The controllers run in loopback
mode.
Once fake disks are set up in memory, exer is used to test the controllers.
The rm command is used to remove the “disks” from memory.
Syntax
fakedisk [controller_letter] [number_blocks]
where: controller_letter = a, b, … z, or * (* creates RAM disks = # of controllers)
number_blocks = the number of 512 blocks (bytes) for each fake disk in
memory