Sector size is 1K, use the following commands: To specify the new size of the file system in sectors, then reduce Thus, you want to resize the file system to However, you decide you only need 2 GB with an additional 1 System, allowing the contraction process to succeed when retried.įor example, suppose your VxFS file system is currentlyĦ GB.
Is currently unavailable, file system defragmentation of both directoriesĪnd extents might consolidate free space toward the end of the file Not currently in use otherwise, it fails. The file system, provided the blocks it attempts to deallocate are Reducing a File System Created with OnlineJFS The only current file system type able to do onlineĬoalescence and size reduction is OnlineJFS, and it can fail in someĬases. Volume, create a new file system in the smaller logical volume, and So you must back up the data in the file system, reduce the logical Most types of file system are unable to do such coalescence,
Logical volume reclaims space at the end of the logical volume, requiringįile system drivers to coalesce and rearrange data blocks ahead of
Because of file system block allocation strategies,ĭata can be scattered throughout the logical volume. Reducing the size of a file system is more complicated You might want to shrink a file system that hasīeen allocated more disk space than it needs, allowing that disk space Reflects the expansion by entering bdf, df, or fsadm -E. NFS clients, export it on the server ( exportfs -a) and remount it on the clients ( mount -a).
NOTE: If the file system will continue to be used by # /sbin/mount /dev/vg01/rlvol2 / mount_point You can skip any additional steps to mount theįile system and export it, since the boot process mounts and exports Unmounted the file system, mount it again. To extend the file system to 332 MB, the number of blocks The block size of the file system /work/project5 is 1 KB. Specified in terms of the block size of the file system. If you did not have to unmount the file system, Is unmounted, use the extendfs command as follows: The file system size to the logical volume size. This increases the size of this volume to 332 MB. Using the logical volume, or it is a system directory such as /var or /usr, change to single-user To other systems, verify that no one is using those other systems, NOTE: If the file system is exported using NFS The underlying applications no longer need it. If the logical volume is in use, confirm that In any file system mounted to this logical volume and that it is no System, mount it for users to access it, and add it to /etc/fstab so that it is automatically mounted at boot time. On other systems that use long file names can be moved to your system HP recommends using long file names for flexibility files created Long file names allow up to 255 characters. Short file names areġ4 characters maximum. By default, the length of file system names areĬonsistent with those of the root file system. When creating a VxFS file system, file names willįor HFS, use the -s or -l option to specify a file system with short or long 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. If you do not use the -F fstype option, then newfs creates a file systemīased on the content of your /etc/fstab file.
Use lvcreate, as describedĬreate the file system using the character device file. The volume group, you can add a disk to the volume group, as described The vgdisplay command to calculate this information,Īs described in “Creating a Logical Volume”. If there is sufficient disk space available in the volume group. Volume containing a file system, see “Setting Up Logical Volumes for File Systems”. To estimate the size requirements for a logical
See HP-UX System Administrator's Guide: Configuration Management for information on how to add a file system type.įor the logical volume. Normally, VxFS has beenĬonfigured into the kernel as part of the default configuration. To reconfigure the new type into the kernel. Create a new file system of a type other than HFS, you might need