La commande 'fileplace' permet de visualiser la position d'un fichier sur des volumes logiques ou des disques physiques(hdisk)
La syntaxe de base est 'fileplace nom_fichier'.
D'autres options existent, notamment '-v' pour avoir plus d'informations.
Commands Reference, Volume 2, d - h
fileplace Command
Purpose
Displays the placement of file blocks within logical or physical volumes.
Syntax
fileplace [ { -l | -p [-o FragOffset] [-n FragNumber] } [ -i ] [ -v ]] File | [-m LogicalVolumeName]
Description
The fileplace command displays the placement of a specified file within the logical or physical volumes containing the file.
By default, the fileplace command lists to standard output the ranges of logical volume fragments allocated to the specified file. The order in which the logical volume fragments are listed corresponds directly to their order in the file. A short header indicates the file size (in bytes), the name of the logical volume in which the file lies, the block size (in bytes) for that volume, the fragment size in bytes, and the compression, indicating if the file system is compressed or not.
Occasionally, portions of a file may not be mapped to any fragments in the volume. These areas, whose size is an integral number of fragments, are implicitly zero-filled by the file system. The fileplace command indicates which areas in a file have no allocated fragments.
Optionally, the fileplace command also displays:
- Statistics indicating the degree to which the file is spread within the volume.
- The indirect block addresses for the file.
- The file's placement on physical (as opposed to logical) volume, for each of the physical copies of the file.
Notes:
- The fileplace command is not able to display the placement of remote Network File System (NFS) files. If a remote file is specified, the fileplace command returns an error message. However, the placement of the remote file can be displayed if the fileplace command is run directly on the file server.
- The fileplace command reads the file's list of blocks directly from the logical volume on disk. If the file is newly created, extended, or truncated, the file system information may not yet be on the disk when the fileplace command is run. Use the sync command to flush the file information to the logical volume.
- There is no Indirect/Double Indirect blocks concept in JFS2 filesystem. The file is represented in terms of extents. Therefore the size of the maximum extent depends on the aggregate block size. With a 512 byte aggregate block size (the smallest allowable), the maximum extent is 512*(2^ 24-1) bytes long (slightly under 8G). With a 4096 byte aggregate block size (the largest allowable), the maximum extent is 4096*(2^ 24-1) bytes long (slightly under 64G).
These limits apply only to a single extent; in no way do they have any limiting effects on overall file sizes.
Flags
Examples
- To display the placement of a file in its logical volume, enter:
fileplace data1
This example displays the list of fragments and the logical volume that contains the file data1.
- To display the indirect blocks for a file, enter:
fileplace -i data1
In addition to the default list of logical volume fragments, the indirect blocks (if any) used to store the file block addresses in the file system are enumerated.
- To display more placement information for a file, enter:
fileplace -v data1
In addition to the default list of logical volume fragments, statistics about the placement efficiency are displayed.
- To display all information about the placement of a file on its physical volumes, enter:
fileplace -piv data1
This example displays the list of file and indirect blocks in terms of the underlying physical volumes, and includes statistics about the efficiency of the placement.
- To display the locations of the underlying physical volume for the first 18 blocks in the /usr/lib/boot/unix_mp file, enter:
fileplace -n 18 -p /usr/lib/boot/unix_mp
- To display the locations of the underlying physical volume from the 18th block to the last block in the /usr/lib/boot/unix_mp file, enter:
fileplace -p -o 17 /usr/lib/boot/unix_mp
- To display the location of the underlying physical volume of the 18th block in the /usr/lib/boot/unix_mp file, enter:
fileplace -o 17 -n 1 -p /usr/lib/boot/unix_mp