HPlogo Volume Management: HP 3000 MPE/iX Computer Systems > Chapter 3 Using Volume Management

Moving files

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Depending on your disk space plan, you may need to move files from the system volume set to a nonsystem volume set.

System volume files can be moved to a nonsystem volume set by using the RESTORE command to move the entire group or account. For more information on this command, refer to the Storing Files and Backing Up the System Reference Manual (32650-90140) manual.

Example: Moving Files

This example shows how to move all of the files in an account from the system volume set to a nonsystem volume set.

NOTE: Itis important to follow this example in order to create the account structure and directory entries necessary on both the system and nonsystem volume set.
  1. Logon to the system.

  2. Use the REPORT command to display information about the account, MANUF, on the system volume. You should also use the LISTUSER command to display users and their capabilities for the @.MANUF users, and the LISTGROUP command to display group information. Refer to the MPE/iX Commands Reference Manual Volumes 1 and 2 (32650-90003 and 32650-90364) for more information.

       :REPORT @.MANUF
    
    
    
       ACCOUNT FILESPACE=SECTORS  CPU-SECONDS  CONNECT-MINUTES
    
       /GROUP      COUNT  LIMIT   COUNT  LIMIT   COUNT  LIMIT
    
    
    
       MANUF        288    **      0      **      0      **
    
       /PROD        272    **      0      **      0      **
    
       /PUB         16     **      0      **      0      **
    
    
    
       :LISTUSER @.MANUF
    
    
    
       *************
    
       USER: USER1.MANUF
    
    
    
       HOME GROUP: PUB                 PASSWORD: **
    
       MAX PRI   : 150                 LOC ATTR: $00000000
    
       LOGON CNT : 0
    
       CAP: AM,AL,GL,ND,SF,BA,IA
    
    
    
       ...
    
    
    
  3. Use the STORE command to copy the system files to tape by account. Refer to the Storing Files and Backing Up the System Reference Manual (32650-90140) manual for more information on storing files.

       :FILE T;DEV=TAPE
    
       :STORE @.@.MANUF; *T;SHOW
    
  4. Use the REPORT command to make sure the account does not exist on the nonsystem volume set. Here ONVS refers to "on the specified volume set." ONVS can also be used to refer to the system volume set.

       :REPORT @.MANUF;ONVS=PROD_SET
    
    
    
       NON-EXISTENT ACCOUNT (CIERR 909)
    
       :
    
    NOTE: Remember to purge the account or group on the system volume first before using the RESTORE command with the CREATE option. The account structure will not be created correctly if the account or group exists on either the system or nonsystem volume set when the files are restored.
  5. Use the PURGEACCT command to delete the account from the system volume set. If you were moving files by group, you would need to use the PURGEGROUP command to purge the group from the system volume set. Refer to the MPE/iX Commands Reference Manual Volumes 1 and 2 (32650-90003 and 32650-90364) for more information.

       :PURGEACCT MANUF
    
  6. Use the RESTORE command with the CREATE option to restore the files from tape to the nonsystem volume set, PROD_SET.

       :RESTORE *T;@.@.MANUF;CREATE;SHOW;VOLSET=PROD_SET
    

    This command creates the necessary group and account entries on both the system and nonsystem volume sets.

    NOTE: This command will only create user who are creators of the files restored. If there are any @.MANUF users that only read or modify files but do not create them, these users will not be created. Hence the use of the LISTUSER command in Step 2 of this procedure.
       RESTORE CREATED ACCOUNT "MANUF  "
    
                 ON VOLUMESET "PROD-SET"
    
       RESTORE CREATED ACCOUNT "MANUF  "  MIRROR     
    
                FOR VOLUMESET "PROD_SET"
    
       RESTORE CREATED GROUP "PROD  "
    
                 ON VOLUMESET "PROD-SET"
    
       RESTORE CREATED GROUP "PROD  "  MIRROR     
    
                FOR VOLUMESET "PROD_SET"
    
       WILL RESTORE  2 FILES; NUMBER OF FILES ON TAPE  2
    
       FILENAME GROUP   ACCOUNT  VOLUME    RESTRICTIONS     SECTORS CODE   REEL
    
       SAMPLE1 .PROD    .MANUF   PROD_SET                   :200    10      1
    
       SAMPLE2 .PROD    .MANUF   PROD_SET                   :72     10      1
    
       SAMPLE  .PUB     .MANUF   COULD NOT BE GIVEN SPECIFIED VOLUME RESTRICTIONS
    
       SAMPLE  .PUB     .MPEXL_SYSTEM_VOLUME_SET            :16     10      1
    
    
    
       FILES RESTORED:
    
    CAUTION: Make sure you see the message verifying that the files were successfully restored. Any error that occurs during file restoration means that the files need to be restored again.

    "MIRROR" on the screen tells you that the account, MANUF was created on both the system volume set and the nonsystem volume set.

  7. Use the REPORT command to make sure the account now exists on the nonsystem volume set. Notice that the PUB group still resides on the system volume set.

    NOTE: The PUB group normally resides on the system volume set. When files are restored from tape, the PUB group's files will automatically be restored to the system volume set. If you want to change the home group of the PUB group, you will need to use the ALTGROUP command. Refer to the MPE/iX Commands Reference Manual Volumes 1 and 2 (32650-90003 and 32650-90364) for more information on this command.
  :REPORT @.MANUF;ONVS=PROD_SET



  ACCOUNT FILESPACE=SECTORS  CPU-SECONDS  CONNECT-MINUTES

  /GROUP      COUNT  LIMIT   COUNT  LIMIT   COUNT  LIMIT



  MANUF         272    **       0     **       0     **

   /PROD        272    **       0     **       0     **

   /PUB          0     **       0     **       0     **



  :REPORT @.MANUF



  ACCOUNT FILESPACE=SECTORS  CPU-SECONDS  CONNECT-MINUTES

  /GROUP      COUNT  LIMIT   COUNT  LIMIT   COUNT  LIMIT



 MANUF         16     **       0     **       0     **

  /PROD         0     **       0     **       0     **

  /PUB         16     **       0     **       0     **


NOTE: Because the accounts, groups and users will be created with default capabilities, you may need to use the ALTACCT, ALTGROUP and ALTUSER commands to alter the account's, group's and user's capabilities. Remember to reset the passwords and UDCs because they are lost when you use RESTORE with the CREATE option.

Another way to avoid this would be to use the NEWACCT;ONVS=, ALTGROUP;HOMEVS=, and NEWGROUP;ONVS= (after having first stored the files), then restore the files. This keeps all capabilities, users, UDCs, and passwords intact.

Be sure to use ALTUSER on all users to add UV capability, or they will not be able to logon or access the files in this account.

Feedback to webmaster