5.
Create the file system using the character device file. For example:
# newfs -F fstype /dev/vg02/rlvol1
If you do not use the
-F fstype
option, then
newfs
creates a file system based on the
content of your
/etc/fstab
file. If there is no entry for the file system in
/etc/fstab
, then
the file system type is determined from the file
/etc/default/fs
. For information on
additional options, see newfs(1M).
When creating a VxFS file system, file names will be long automatically.
For HFS, use the
-s
or
-l
option to specify a file system with short or long file names,
respectively. By default, the length of file system names are consistent with those of the root
file system. Short file names are 14 characters maximum. Long file names allow up to 255
characters. HP recommends using long file names for flexibility; files created on other systems
that use long file names can be moved to your system without being renamed.
6.
After you have created a file system, mount it for users to access it, and add it to
/etc/fstab
so that it is automatically mounted at boot time.
Extending a File System
Extending a file system inside a logical volume is a two-step task: extending the logical volume,
then extending the file system. The first step is described in
“Extending a Logical Volume” (page 53)
.
The second step, extending the file system itself, depends on the following factors:
•
What type of file system is involved? If it is HFS or VxFS? HFS requires the file system to be
unmounted to be extended.
Check the type of file system. For example:
# /usr/sbin/fstyp /dev/vg01/lvol2
vxfs
•
If the file system is VxFS, do you have the base VxFS product or the OnlineJFS product? If you
have only the base VxFS product, you must unmount the file system before extending it.
To see if the OnlineJFS product is installed, enter the following command:
# swlist -l product | grep -i OnlineJFS
OnlineJFS B.11.31 Online features of the VxFS File System
•
Can you unmount the file system? To unmount system directories such as
/var
and
/usr
, you
must be in single-user mode.
•
Is the file system the root file system (
/
)? If so, there are two complications:
◦
The logical volume containing the root file system is created with the contiguous allocation
policy, so it might not be possible to extend it in place.
◦
The root file system cannot ever be unmounted, even if you change to single-user state.
If you are using VxFS as your root file system and have the OnlineJFS product, you can extend
the original root file system without unmounting, provided contiguous disk space is available.
Otherwise, to extend the current root file system, you must create and mount another root disk
which enables you to work with the unmounted original root disk, extending it if contiguous
disk space is still available. If the original disk does not have contiguous disk space available,
instead of expanding the original root disk, you can create a new root file system on another
larger disk.
CAUTION:
This procedure can fail on a VxFS file system already at 100% capacity (Error 28).
You must remove some files before you attempt this operation.
Once you have the answers to these questions, follow these steps:
98
Administering LVM