HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 36

Disks and File Systems: IRIX vs. HP-UX

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Disks and File Systems
31
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.