Running restore-accounts

This section details the addition of user data to the upgraded D3 environment. Those upgrading with a file-save tape should use this topic to continue the upgrade process.

If you are upgrading from other Pick-compatible environments (such as Ultimate or SCO), you cannot perform an account-restore from a tape blocked at anything but zero.

To set the default block size to zero:
  1. Access the TCL prompt.
  2. Set the device.
  3. Enter:
    set-def-tape-blk 0

For details on setting the default block size, see the Tapes topic in the D3 System Administration Guide.

About this task

Procedure

  1. Insert the file-save tape in the device.
  2. Enter:
    set-device

    You will see the list of tape devices in the configuration file. The tape device numbers might vary, depending on the particular system configuration.

    Tape  Status                              DD MMM YYYY   hh:mm:ss
    #    Type             Density       Owner   Device Name
    ------------------------------------------------------------
    0  | compressed    |              |         | /usr/lib/pick/ab
    1  | compressed    |              |         | /usr/lib/pick/dt
    2  | Quarter Inch  |              |         | /dev/rmt0.1
    3  | Quarter Inch  |              |         | /dev/rmt0.5 
    -------------------------------------------------------------
    Enter a unit number from the above list : 2
  3. Enter the number that corresponds to the file-save media device.

    In this example, 2 is entered for quarter-inch tape.

    You will see a prompt similar to:

    Block size: 16384
  4. Enter:
    t-rew
    restore-accounts
    Note:
    • If upgrading from release 7.4 or prior, the (f2000 option is required on the restore-accounts command.
    • If restoring data from an R83 or other Pick-compatible environment, see Restoring data for information about options used with restore-accounts.

    The file-save tape is read and any account on the tape that is not already on the system is restored. The elapsed time depends on the amount of data on the tape(s). If necessary, you will see a prompt for the next tape volume when it is ready.

    Load next volume and type ’c’ to continue
    #_
  5. Mount the next volume and type c, if necessary.

    After all accounts have been read, any indexes for the restored files are generated. When completed, you are returned to TCL.

  6. Enter:
    t-rew
    t-det
  7. Remove the file-save tape from the device.
  8. Enter:
    update-md

    You will see the following prompt:

    Create user id from each account name (y,<n>)?
  9. Respond to this prompt appropriately.
    • If you are not sure, type N (ENTER = default of N).
    • If you type Y, go to Step 10.
  10. At the Enter md file name: prompt, complete the following steps:
    1. Enter the name of one of the accounts just restored.
    2. Repeat Step 10a for all restored accounts.
    3. After all restored accounts are entered, press Enter again to exit the prompt.
      Note: The process of upgrading your existing accounts creates entries in the dm,CLASHES, file.

      For more information, see the Clashes File topic in the D3 Reference Manual.