Managing Volumes

NOTE:  If your network needs to support large volumes and files, or large numbers of volumes, directories, and files, consider using Novell® Storage ServicesTM (NSS), the new file system. NSSTM mounts volumes more quickly, using only 1 MB of RAM, and NSS gives you more options for gathering free space to use for volumes. NSS can be used along with the traditional NetWare® file system. See Novell Storage Services (NSS).


Changing Volume Size

To increase the size of a volume, add new segments using the procedure in this section. For background information, see Understanding Volume Segments.

NOTE:  To reduce the size of the volume, you must delete the entire volume, and then re-create the volume. You can add segments to a volume without destroying data, but removing any segment from a volume destroys all of the data on the volume. Before deleting a volume, back up all data on the volume. See Deleting a Volume.

A volume can have multiple segments spanning multiple hard disks. This arrangement allows you to add a hard disk when you need to expand a volume.

Keep the following requirements in mind if you plan to expand volumes:


Prerequisites


Procedure

  1. At the server console prompt, type

    NWCONFIG

  2. From the Installation Options menu choose Disk Options and then NetWare Volume Options.

  3. Press Insert or F3 to view existing volume segments.

  4. Select a segment that has free space (no volume assignment) and press Enter.

    NOTE:  If no free space exists, you can't add a segment to a volume.

  5. To add this segment to an existing volume, select Make This Segment Part of Another Volume and press Enter.

    A list of existing volumes appears.

  6. Select the volume you want to add this segment to, and press Enter.

    The Volume Disk Segment List appears with the new segment listed, showing the name of the volume you assigned the segment to.

  7. (Optional) If you want to modify the size of the segment being added, select the new segment and press Enter. The Status column for the segment being added shows the letter N, for New.

    1. In the Disk Segment Size field, type the size (in megabytes), of the segment to be added to the volume. Then press Enter.

    2. Press F10 or Esc to save changes and return to the Volume Disk Segment list.

  8. Verify the segment size and the volume it will be added to in the Volume Disk Segment List. Then press Esc or F10.

  9. To save volume assignments to disk, press F10 and Yes to verify.


Deleting a Volume

This procedure tells you how to delete an entire volume.

WARNING:  Deleting one volume segment deletes all existing data on the volume! You cannot delete only part of a volume.

  1. Back up the data stored on the volume you want to delete.

  2. Dismount the volume you want to delete.

  3. At the server console prompt, type

    NWCONFIG

  4. From the Installation Options menu, choose Disk Options and then NetWare Volume Options and press Enter.

    A list of existing volumes is displayed.

  5. From the list of existing volumes, select the volume you want to delete and press Delete.

    A warning similar to the following appears:

    Volume  volume_name may contain valuable data that will be lost if you confirm Yes in the box that follows this message and if you save volume changes on exit from the volumes list.

    <Press ENTER to continue>

  6. Press Enter if you want to continue.

  7. When the Delete Existing Volume? prompt appears, select Yes and press Enter.


Renaming a Volume

IMPORTANT:  Do not change the name of volume SYS: to another name. A volume called SYS: is mandatory.

  1. Dismount the volume you want to rename.

  2. At the server console prompt, type

    NWCONFIG

  3. From the Installation Options menu, choose Disk Options and then NetWare Volume Options and press Enter.

    All existing volumes are listed.

  4. Select the volume whose name you want to change and press Enter.

    The Volume Information screen is displayed.

  5. Use the arrow keys to highlight the Name field, and press Enter.

  6. Backspace to erase the old name; then type in a new name and press Enter.

  7. Press Esc twice; then press F10 to save the volume information.

    If you have not dismounted the volume it is automatically dismounted now.

  8. When prompted, answer Yes to mount the volume with the new name.

  9. To set the Volume object name and context in NDS®, you are prompted to log in to the Directory.

  10. After you log in, verify that the displayed context and Volume object name are correct.

    NOTE:  Renaming a volume with NWCONFIG creates a Volume object with the new name. It does not delete the Volume object with the old name.

  11. Use NetWare Administrator to delete the old Volume object from the Directory tree.


Repairing a Volume

Typically, you can't mount a volume if it has even minor damage. Occasionally, however, a damaged volume mounts, but causes errors in the process.

Use VREPAIR to correct volume problems or to remove name space entries from File Allocation Tables (FATs) and Directory Entry Tables (DETs). (See VREPAIR for a general description of the command.)

NOTE:  If you need to repair an NSS volume, see Rebuild NSS Volumes.

You can run VREPAIR on a damaged volume while other volumes are mounted. Following are typical instances when VREPAIR can help:

If a volume fails to mount as the server is booting, VREPAIR loads automatically and attempts to repair the volume.

When VREPAIR autoloads, it uses the default options. If you want to use an alternate option, load VREPAIR manually and set the alternate option before running VREPAIR.

NOTE:  If you don't want VREPAIR to automatically repair a volume that won't mount, use the SET parameter named Automatically Repair Bad Volumes to change the default.


Prerequisites


Procedure

  1. At the server console prompt, type

    VREPAIR [ volume name] [ logfile name]

    (Optional) Replace volume name with the name of the volume to repair. If there is only one volume that is dismounted, you don't need to specify this parameter, since VREPAIR will attempt to repair that volume.

    (Optional) If you want to save the error log, replace the logfile name with the name of the file you want VREPAIR to create. VREPAIR creates a log of errors it finds. VREPAIR displays the errors on screen and will write them to a file if you specify a filename.

    When you load VREPAIR, an Options menu is displayed.

  2. Accept the default options, or select alternate options, as appropriate.

    The first time you try to repair a volume, accept the default options. If the default options fail to repair the volume, select alternate options.

    1. To accept the default options, continue with Step 3.

    2. To set alternate options at the Options menu, choose Set VRepair Options by typing

      2 Enter

  3. To begin the repair process, choose Repair A Volume from the Options menu.

    • If more than one volume is dismounted, select the volume to repair from those listed.
    • If only one volume is dismounted, VREPAIR assumes it is the volume that needs repairing and begins the repair.

    As the volume is being repaired, the server console screen displays a message indicating VREPAIR activity.

  4. (Optional) Modify error log settings after the repair has started.

    If VREPAIR finds many errors during the repair process, you might want to change some of the run-time error settings. To modify these settings after the repair has started, press F1 to display the Current Error Settings menu.

    • Select Option 1 if you do not want VREPAIR to pause after each error.
    • Select Option 2 if you want VREPAIR to log errors in a text file.
    • Select Option 3 to stop the repair of the volume.
    • Select Option 4 to continue with a volume repair after you have stopped it.

  5. When the repair is complete, answer Y when prompted to write repairs to the disk.

  6. If VREPAIR has found errors, run VREPAIR again by repeating Step 2 through Step 6. Repeat until VREPAIR finds no errors.

    If you are unable to mount the volume after running VREPAIR several times, you must delete the volume, re-create the volume using NWCONFIG, and then restore the data from backups.


Viewing Volumes

You can view Volume objects in NetWare Administrator (see NetWare Administrator). You can also view statistical information on disk space availability, block size, directory entries, name space support, etc.

MAP lists a NetWare server's volume names. (See MAP.)

In addition, the DOS DIR command lists the volume name for the specified network drive (for example, Volume in drive F: is SYS:).

This corresponds to the DOS or OS/2 volume label shown by the DIR command for local disks (floppy disks or workstation hard disks). A local disk can be given a volume label during formatting or with the DOS or OS/2 LABEL command.