HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 36
Disks and File Systems: IRIX vs. HP-UX
View all HP Visualize J210XC manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 36 highlights
Disks and File Systems Mounting File Systems Automatically at Bootup To automatically mount a file system at bootup, list it in the /etc/fstab file. See the man page for fstab for details. Extending the Size of a File System Within a Logical Volume If you use SAM to increase the size of a logical volume containing a file system, SAM automatically runs extendfs for you. When using lvextend to increase the size of the logical volume container, the size of its contents is not automatically increased. When you first create a file system within a logical volume, the file system assumes the same size as the logical volume. If you later increase the size of the logical volume using the lvextend command, the file system within does not know that its container has been enlarged. You must explicitly tell it, using the extendfs command. Suppose the current size of a logical volume is 1024MB (1 gigabyte). Assuming the users of the file system within this logical volume have consumed 95% of its current space and a new project is being added to their work load, the file system needs to be enlarged. To increase the size of the file system, follow these steps: 1. Unmount the file system. # umount /dev/vg01/lvol1 2. Increase the size of the logical volume. # /usr/sbin/lvextend -L 1200 /dev/vg01/lvol1 Note that -L 1200 represents the new logical volume size in MB, not the increment in size. 3. Increase the file system capacity to the same size as the logical volume. Notice the use of the character device file name. # extendfs /dev/vg01/rlvol1 4. Re-mount the file system. # mount /dev/vg01/lvol1 /project 5. Run bdf to confirm that the file system capacity has been increased. Disks and File Systems: IRIX vs. HP-UX IRIX uses the Logical Volume Manager to manage disk space and file systems and, beginning with version 10, so does HP-UX, though the commands have different names. HP-UX and IRIX also support whole disk file systems when logical volumes do not want to be used (for example, on systems with a single disk). Both systems use a file called /etc/fstab to automate the mounting of file systems at bootup. HP-UX supports journaled file systems, as does IRIX; both also support non-journaled file systems. The two operating systems are alike in many ways, though sometimes in concept rather than execution. Both systems use both character and block device files for file systems. Both systems use the mount command in similar ways: both have mount points, mounts must occur in order for file systems to be accessible, and both have mechanisms for automatic mounting. The two systems' file system data structures are similar. However, to check the amount of space for each file system, IRIX uses the df command, which displays file system sizes in 512-byte blocks; while HP-UX uses the bdf command, which displays sizes in KB. 31