Disks and File Systems

   

HP-UX Virtual Partitions
By Marty Poniatowski

Table of Contents
Chapter 11.  System Administration Manager (SAM)


Disks and File Systems helps you manage disk devices, file systems, logical volumes, swap, and volume groups (you may also manage other HP disk devices such as XP and disk arrays through SAM if you have these installed on your system.) There is no reason to manually work with these, since SAM does such a good job of managing these for you. Figures 11-26 and 11-27 show the hierarchy of Disks and File Systems:

Figure 11-26. Disks and File Systems Menu Structure

graphics/11fig26.gif

Figure 11-27. Disks and File Systems Menu Structure (continued)

graphics/11fig27.gif

Disk Devices

When you enter this subarea, SAM shows you the disk devices connected to your system. Figure 11-28 shows a listing of the disks for a Series 800 unit:

Figure 11-28. Disk Devices Window

graphics/11fig28.gif

The first two entries refer to internal disks in an L-Class system. The third entry is a CD-ROM drive. Let's compare this output to what we would see when we run ioscan:

 $  /usr/sbin/ioscan  -funC disk  Class    I  H/W Path     Driver S/W State   H/W Type      Description  =====================================================================  disk     1  0/0/1/1.2.0  sdisk CLAIMED     DEVICE        SEAGATE ST318203LC                          /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0  disk     2 0/0/2/0.2.0   sdisk CLAIMED     DEVICE        SEAGATE ST318203LC                          /dev/dsk/c2t2d0   /dev/rdsk/c2t2d0  disk     3 0/0/2/1.4.0   sdisk CLAIMED     DEVICE        TOSHIBA CD-ROM XM-6201TA                          /dev/dsk/c3t4d0   /dev/rdsk/c3t4d0 

The ioscan output jives with the disk information produced by SAM. The SAM output also indicates that the first disk is used and the second unused, which ioscan does not show.

We can now add one of the unused disks in SAM by selecting Add from the Actions menu. Using Logical Volume Manager, we can create a new volume group or select the volume group to which we wish to add the new disk. We would then select the new logical volumes we wanted on the volume group or extend the size of existing logical volumes. Other information such as the mount directory and size of the logical volume, would be entered as well.

Most disks connected to your system can be managed through SAM. Figure 11-29 shows a SAM screen shot of a V-Class system with an XP-256 attached to it:

Figure 11-29. Disk Devices Window with XP-256 Disks Shown

graphics/11fig29.gif

A small subset of the total disks attached is shown in the screen shot. The first eight disks are internal to the V-Class and the remainder are XP disks. All of the devices shown in this figure can be managed through SAM.

File Systems

File Systems shows the Mount Directory, Type of file system, and Source Device or Remote Directory. Figure 11-30 shows the information you see when you enter File Systems for the L-Class system used in earlier examples:

Figure 11-30. File Systems Window

graphics/11fig30.gif

At this level, you can perform such tasks as Add Local File System and Add Remote File System, and you can perform VxFS Maintenance from the Actions menu.

Several types of file systems may be listed under the Type column. The most common are:

Auto-Indirect

Directory containing auto-mountable remote NFS file systems. You may see the /net directory here if you have auto-mounter running.

Auto-Mount

Auto-mountable remote NFS file system.

CDFS

CD-ROM file system if it is currently mounted. If, for instance, you have a CD-ROM mounted as /SD_CDROM, you will see this as type CDFS in the list.

HFS

Local HFS file system. These are local HFS file systems that are part of your system. HP's version of the UNIX File System. This was the most common file system under earlier versions of HP-UX.

NFS

Remote NFS file system that is currently mounted.

LOFS

Loopback file system that allows you to have the same file system in multiple places.

VxFS

Local Journaled File System (JFS). This is the HP-UX implementation of the Veritas journaled file system (VxFS), which supports fast file system recovery. JFS is the default HP-UX file system.

Add Local File System allows you to mount an unmounted, local file system. Add Remote File System gives you the ability to mount a file system from another host. The VxFS Maintenance subarea is where you can perform some file system maintenance tasks on your JFS file system. Here, you can create reports on extent and directory fragmentation. Once these are reviewed and you find that you do indeed need to perform maintenance, you can choose the option to reorganize either the extents or the directory.

Logical Volumes

You can perform several functions related to logical volume manipulation in SAM. Such tasks as Create, Modify, Remove, and Increase Size can be performed in SAM. Figure 11-31 shows increasing the size of lvol5 (/home) from 52 MBytes to 6 MBytes:

Figure 11-31. Increase Size Window

graphics/11fig31.gif

SAM will increase the size of the logical volume only if it can be unmounted. Viewing the log file after this task has been completed shows that SAM ran such commands as /sbin/lvextend and /sbin/extendfs to extend the size of the logical volume and file system, and /usr/sbin/umount and /usr/sbin/mount to unmount and mount the file system.

See the Logical Volume Manager detail in Chapter 9 for definitions of Logical Volume Manager terms. There is also a description of some Logical Volume Manager commands.

Increasing the Size of a Logical Volume in SAM

SAM may create a unique set of problems when you attempt to increase the size of a logical volume. Problems may be encountered when increasing the size of a logical volume if it can't be unmounted. If, for instance, you wanted to increase the size of the /opt logical volume, it would first have to be unmounted by SAM. If SAM can't umount /opt, you will receive a message from SAM indicating that the device is busy. You can go into single-user state, but you will have to have some logical volumes mounted, such as /usr and /var, in order to get SAM to run. You would then need to reboot your system with shutdown -r after you have completed your work. This works for directories such as /opt, which SAM does not need in order to run.

Alternatively, you could exit SAM and kill any processes accessing the logical volume you wish to extend the size of, and then manually unmount that logical volume. You could then use SAM to increase the size of the logical volume.

The HP OnLineJFS add-on product allows you to perform many of these LVM functions without going into single-user mode. For example, with OnLineJFS, logical volumes and file systems are simply expanded with the system up and running and no interruption to users or processes.

Swap

Both device swap and file system swap are listed when you enter Swap. Listed for you are the Device File/Mount Directory, Type, Mbytes Available, and Enabled. You can get more information about an item by highlighting it and selecting Zoom from the Actions menu.

Volume Groups

Listed for you when you enter volume groups are Name, Mbytes Available, Physical Volumes, and Logical Volumes. If you have an unused disk on your system, you can extend an existing volume group or create a new volume group. This window is useful to see how much disk space within a volume group has not been allocated yet. Another function here is the ability to import volume groups from other systems or ready a volume group for export to a remote system. You would use this when moving a volume group contained on an entire disk drive or set of disk drives from one system to another.


       
    Top
     



    HP-UX Virtual Partitions
    HP-UX Virtual Partitions
    ISBN: 0130352128
    EAN: 2147483647
    Year: 2002
    Pages: 181

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net