United States-English |
|
|
HP-UX Reference > Ddisksecn(1M)Servers OnlyHP-UX 11i Version 3: February 2007 |
|
NAMEdisksecn — calculate default disk section sizes DESCRIPTIONdisksecn is used to calculate the disk section sizes based on the Berkeley disk partitioning method. disksecn recognizes the following options:
If neither -p nor -d table selection switches are specified a default table of the section sizes and range of cylinders used is output. Disk section sizes are based on the total amount of space on the disk as given in the table below (all values are supplied in units of 256-byte sectors). If the disk is smaller than approximately 44 Mbytes, disksecn aborts and returns the message disk too small, calculate by hand.
NoteIt is important to note the difference between the block size passed into disksecn via the -b switch argument and the sector size the user is asked to input when an unknown disk name is passed to disksecn via the -n switch argument. The block size is the sector size that disksecn assumes the disk to have when it prints the requested tables. All information printed in the tables is adjusted to reflect this assumed sector size (block size) passed in by the user. The sector size requested by disksecn when an unknown disk name is passed does not necessarily have to be the same as the assumed sector size (block size) passed in by the -b switch argument. For example, a user wants to see the device driver tables for the disk named hp7945 with an assumed sector size (block size) of 256 bytes. The user has the following information about the hp7945 disk:
The user invokes disksecn by typing the following command: disksecn -p -b 256 -n hp7945 Assuming that hp7945 is an unknown disk name, disksecn prompts the user for the necessary disk information. The user should input the information as shown above, reflecting a sector size of 512 bytes. All the information will be adjusted within disksecn to reflect the assumed sector size (block size) of 256 bytes, passed as the argument of the -b switch, before the requested device driver table is output. This adjustment also takes place when the disk name is known and an assumed sector size (block size) is passed in as the argument of the -b switch which is not DEV_BSIZE bytes, the assumed sector size (block size) used to create the etc/disktab file. RETURN VALUEdisksecn returns the following values:
disksecn aborts and prints an error message under the following conditions:
WARNINGSAlternate names are not included in the output when the -d switch is used. Blanks are required in the command line between each of the switches when invoking disksecn. A blank is required between the -n switch and the disk name argument to that switch. For example: disksecn -p -b 1024 -n hp9712 disksecn does not save the block size used to generate the /etc/disktab disk description file. The system assumes that the block size used was DEV_BSIZE when it reads the information stored in the etc/disktab file. |
Printable version | ||
|