SCRATCHVOL [ Volume Management ] MPE/iX 5.0 Documentation
Volume Management
SCRATCHVOL
The SCRATCHVOL command places a volume in the SCRATCH state. Although
the data remains on the volume after the command scratches (erases) the
volume, the user can consider the data deleted, unless the UNSCRATCHVOL
command is issued to undo this command. The command is typically used to
reinitialize a volume. The volume must be in the LONER state in order to
be scratched.
Task
Deletes data on a volume.
Capability
CV, create mountable volume set
Syntax
SCRATCHVOL [LDEV=]ldev
Parameters
ldev A number from 1 to 100 specifying the logical
device number of the volume to be scratched. The
volume must be in the LONER state. Required.
Example
This example shows how to put a volume in the SCRATCH state.
1. Use the DSTAT command to check the status of the volume to be
scratched.
2. Close the volume set to put the volume in the LONER state.
_______________________________________________________
| |
| |
| volutil: :DSTAT |
| |
| LDEV-TYPE STATUS VOLUME (VOLUME SET - GEN) |
| --------- ------- --------------------------- |
| 21-079330 MASTER BVOL1 (BSET-0) |
| 22-079350 MEMBER BVOL2 (BSET-0) |
| 23-079350 MEMBER BVOL5 (BSET-0) |
| |
| volutil: :VSCLOSE BSET |
| |
| |
_______________________________________________________
3. Use the SCRATCHVOL command to place the volume in the SCRATCH
state.
4. Use the DSTAT command to verify that the volume is in the SCRATCH
state.
_______________________________________________________
| |
| |
| volutil: SCRATCHVOL 23 |
| *Verify: Scratch volume on ldev 23 [Y/N]? Y |
| *Note: Loner volume scratched on ldev 23. |
| |
| volutil: :DSTAT |
| |
| LDEV-TYPE STATUS VOLUME (VOLUME SET - GEN) |
| --------- ------- --------------------------- |
| 21-079330 LONER BVOL1 (BSET-0) |
| 22-079350 LONER BVOL2 (BSET-0) |
| 23-079350 SCRATCH |
| |
| |
_______________________________________________________
MPE/iX 5.0 Documentation