Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

extendfs(8) [osf1 man page]

extendfs(8)						      System Manager's Manual						       extendfs(8)

NAME
extendfs - Extends UFS file systems SYNOPSIS
/sbin/extendfs [- s] [disk_blocks] device_name DESCRIPTION
Use the extendfs command to increase the storage space in a UFS file system. The file system must not be mounted when you perform this operation. To extend a mounted (in use) UFS file system, use the mount command with the -o extend option. The procedure for increasing the storage space of a UFS file system is as follows: Look at the contents the /etc/fstab file to identify the disk partition that maps to the file system. Ensure that there is available storage space on the target disk as follows: If LSM is in use on your system, use LSM commands to increase the size of the LSM volume as described in the Logical Storage Manager guide. If LSM is not in use on your system, use the disklabel command or the diskconfig graphical user interface to check the current size and use of partitions on the disk. If there is adequate space on an adjacent partition, use the disklabel command to write the current label to a file as fol- lows: # disklabel -r dsk4 > d4label Edit the disklabel file to change the size of the partition on which your UFS file system resides. Increase the number of disk blocks on the partition and decrease the disk block size of the adjacent partition by an equivalent number. Use the disklabel command with the -R option to write the revised label to the raw disk as follows: # disklabel -R /dev/rdisk/dsk4 d4label When the disk label is revised, extend the file system using the extendfs command. You can either use the full extent of the newly sized partition or extend the file system in stages. The following example commands show both methods. To extend the file system to use all the available space, you specify the disk partition on which the file system resides, as follows: # extendfs /dev/disk/dsk4g To extend the file system to use only part of the available space, you specify a number of disk blocks, as follows: # extendfs -s 300000 /dev/disk/dsk4g The remainder of the extended partion is reserved for future use. You can extend a file system as many times as necessary, up to the physical limit of the storage device. When no more space is available on the storage device, you must back up the file system using the dump command and restore the file system to a storage device that has more available space. Once you have extended a file system, the operation cannot be reversed except by a back up and restore operation. Use the dump command to back up the file system. You can then reset the partition sizes manually and restore the file system to the storage device. ERRORS
The disklabel command produces output similar to that of the newfs command. If a list of disk blocks is not displayed on the terminal, the command has failed. Verify the partition settings and the mount status of the target file system. The disklabel command does not permit you to overwrite a partition if it is in use. Refer to the disklabel(8) reference page for more information on label errors. FILES
Specifies the command path. RELATED INFORMATION
diskconfig(8), disklabel(8), mount(8), and fstab(4). extendfs(8)

Check Out this Related Man Page

extendfs_vxfs(1M)														 extendfs_vxfs(1M)

NAME
extendfs_vxfs: extendfs - extend VxFS file system size SYNOPSIS
size] special DESCRIPTION
If the VxFS file system image created on special does not use all of the available space, increases the capacity of a VxFS file system by updating the file system structure to include the extra space. special specifies the device special file of either a logical volume or a disk partition. If special refers to a mounted file system, you must unmount special before running (see mount(1M)). The Version 5 disk layout supports file systems up to 32 terabytes. The size to which a Version 5 disk layout file system can be increased depends on the file system block size: o 1024 bytes 4,294,967,039 sectors (4 TB) o 2048 bytes 8,589,934,078 sectors (8 TB) o 4096 bytes 17,179,868,156 sectors (16 TB) o 8192 bytes 34,359,736,312 sectors (32 TB) The Version 6 disk layout supports file systems up to 256 terabytes. The size to which a Version 6 disk layout file system can be increased depends on the file system block size: o 1024 bytes 34,359,736,312 sectors (32 TB) o 2048 bytes 68,719,472,624 sectors (64 TB) o 4096 bytes 137,438,945,248 sectors (128 TB) o 8192 bytes 274,877,890,496 sectors (256 TB) The maximum file system size supported is 2 terabytes. For a file system's size to be increased to 32 terabytes or greater, the file sys- tem must be on a 64-bit kernel operating system and must reside on a VERITAS Volume Manager volume. If the file system resides on a volume set, will fail. Use the fsvoladm(1M) command to extend a multi-volume file system. When the file system size is grown with the extendfs command, the intent log size is not automatically increased. Options recognizes the following options: Specify the VxFS file system type. Query special to determine the size. The file system is not extended. Specify the number of blocks to add to the file system. If size is omitted, the maximum possible size is used. Specify verbose mode, which displays the resulting size of file system along with output of the newly sized file system. Without there is no output. Operands recognizes the following operand: special The device special file of either a logical volume or a disk partition. If special refers to a mounted file system, you must unmount special before running (see mount(1M)). EXAMPLES
This example shows how to increase the capacity of a file system created on a logical volume. SEE ALSO
extendfs(1M), lvextend(1M), mkfs(1M), mount(1M), umount(1M), fs_vxfs(4). extendfs_vxfs(1M)
Man Page