• Aucun résultat trouvé

HP-UX Series 300, 800 Only

Dans le document HP-UX Reference (Page 177-184)

SDFFSCK (1M)

Orphaned files (allocated but unreferenced) with non-zero sizes are, with the operator's con-currence, reconnected by placing them in the l08t+found directory on the SDF file system. The name assigned is the inode number. The only restriction is that l08t+found must exist in the root of the SDF file system being checked, and must have empty slots in which entries can be made. This is accomplished by executing

sdfmkdir SDFdev:/lost+found (using the name of the SDF device for SDFdev).

Orphaned directories and files with zero size are, with the operator's concurrence, returned directly to the free list. This will also happen if the lost+found directory does not exist.

WARNINGS

Sdffsck cannot check devices with a logical block size greater than 4096.

AUTHOR

Sdffsck was developed by HP.

SEE ALSO

sdf(4), fsck[SDF](lM), sdfmkdir(l),

Series 500 HP-UX System Administrator Manual.

Hewlett-Packard Company - 2 - Version B.l, October 1986

SDFFSDB (1M) HP-UX Series 300, 800 Only

SDFFSDB (1M)

NAME

sdffsdb - examine/modify an SDF file system SYNOPSIS

sdffsdb SDFdevice DESCRIPTION

Sdffdsb is intended to mimic the series 500 implementation of /sdb[SDFJ(lM).

Sdffsdb provides you with the ability to perform the following functions on the specified SDFdev-ice:

1. Find the inode number of a file, given its full path name.

2. Examine and modify the contents of the superblock (volume header).

3. Examine and modify the contents of any inode or other file attribute.

Integer input to sdffsdb may be entered in decimal (default), octal (with a preceding "0"), or hexadecimal (with a preceding "Ox").

SDFdemce is a raw or block special file describing the device on which the SDF file system is located.

Sdffsdb execution is interactive. Prompts consist of requests for the needed information. When execution begins, sdffsdb displays the following menu:

1 - find inode numbers.

2 - examine superblock.

3 - examine inodes.

q - quit.

after which you are requested to enter one of the options shown.

Typing 1 causes sdffsdb to accept full pathnames of files (relative to the door directory of the SDF file system); it returns the corresponding inode number. Typing q returns you to the main menu.

Typing 2 displays the contents of each record in the superblock. Each record is numbered. If a right parenthesis ")" follows the number, then the record can be modified. If a right curly bracket

"}" follows the number, then the record cannot be modified. You are then asked whether or not

Typing q at the main menu level terminates the sdffsdb command.

WARNINGS

Sdffsdb is deceptively easy to use, and therefore should be used with extreme care. Be sure you know what you are doing before you enter too deeply into options 2 or 3. You are given the opportunity to abort any operation before you have changed anything (by typing q), so consider carefully what you are about to do before you do it. Sdffsdb does not provide an "undo" function and the changes you make are immediate.

Sdffsdb cannot examine devices with a logical block size greater than 4096.

AUTHOR

Sdffsdb was developed by the Hewlett-Packard Company.

Hewlett-Packard Company - 1 - Version B.1, October 1986

SDFFSDB(IM)

SEE ALSO

HP-UX Series 300, 800 Only

sdf(4), fsck[SDF](lM), fsdb[SDF](lM).

Hewlett-Packard Company 2

-SDFFSDB (1M)

Version B.l, October 1986

SDFINIT[SDF] (1M) HP-UX Series 500 Only

SDFINIT[SDF] (1M)

NAME

sdfinit - initialize Structured Directory Format volume SYNOPSIS

/etc/sdfinit [-i) pathname [blocksize [bootsize [interleave]]]

DESCRIPTION

Sdfinit initializes a Structured Directory Format (SDF) volume associated with a specified special file.

Pathname refers to a character or block special file which must be accessible and not mounted.

Blocksize specifies the number of bytes per logical block. It is rounded up, if necessary, to the next multiple of the physical record size for the volume. If absent or less than one (1), the system selects a reasonable default.

Bootsize specifies the number of bytes to be allocated for boot area on the volume. It is rounded up to an integer number of logical blocks. Default is zero (no boot area).

Interleave defines the sector interleave factor. Default is 1 (not necessarily the best value for all devices). In the special case of initializing memory volumes (those volumes accessed through driver number 10 as explained in the HP-UX System Administrator Manual), interleave specifies the number of 256-byte physical sectors that are to be used for the memory volume "device". The maximum number of sectors allowed is 2047 which yields 524032 bytes.

The root directory on the newly-initialized volume is always owned by super-user and has permis-sions of 755.

The -i option inhibits certification, limiting the operation to initialization only which consists of writing a directory structure. This saves a considerable amount of time in most cases. However, the -i option is not recommended for most removable media, unless the media was recently certified in the same type of drive.

Sdfinit does not return until the operation is complete which may require considerable time. For example, certification can consume up to 47 minutes for an HP 7933 disk or up to 67 minutes on an HP 88140L (DC-600) cartridge tape. Initialization requires an additional one to five minutes.

Note that during this certification and initialization process, sdfinit monopolizes the interface select code so that no other devices can be accessed. This means that if the root device is using the same interface as the device being accessed by sdfinit, the root device is also inaccessible for the duration.

RETURNS

Appropriate error messages are given if the argument list is incorrect, pathname cannot be initial-ized or any other error occurs.

WARNINGS

The effective user ID must be zero (super-user). The disk must not be mounted.

AUTHOR

Sdfinit was developed by HP.

SEE ALSO

See section (7) device special file manual pages.

Hewlett-Packard Company - 1 - Version B.1, October 1986

SETMNT(lM) HP-UX SETMNT(lM)

NAl'v1E

setmnt - establish mount table mnttab SYNOPSIS

/etc/setmnt DESCRIPTION

FILES

Setmnt creates the /etc/mnttab table (see mnttab(4)), which is needed for both the mount{lM) and umount commands~ Setmnt reads standard input and creates a mnttab entry for each line.

Input lines have the format:

filesys node

where filesys is the name of the file system's special file (e.g., "dsk/?s?") and node is the root name of that file system. Thus filesys and node become the first two strings in the mnttab(4) entry.

/etc/mnttab SEE ALSO BUGS

devnm{IM), mount{IM), mnttab(4).

Filesys and node are truncated to MNTLEN bytes.

Setmnt silently enforces an upper limit on the maximum number of mnttab entries.

It is unwise to use setmnt to create false entries for mount{IM) and umount.

Hewlett-Packard Company - 1 - Version B.l, October 1986

SETPRIVGRP (1M) HP-UX Series 200, 300, 800 Only

SETPRIVGRP (1M)

NAME

setprivgrp - set special attributes for group SYNOPSIS

setprivgrp -g I -n I group-name [ privileges

1

setprivgrp -f file DESCRIPTION

FILES

Setprivgrp associates a group with a kernel capability. This allows subsetting of super-user like privileges for members of a particular group or groups. In the first form the first argument to set-privgrp is either a group name, -g, or -n which specifies a particular group, all groups or no groups respectively. The optional second and subsequent arguments are symbolic names indicating kernel capabilities. In the second form the -f option is used to specify a file, typically /etc/privgroup, from which group capabilities are set. The group access privileges are changed to reflect the specified kernel capabilities.

RTPRIO

gives access to the rtprio(2) system call for setting real-time priorities.

MLOCK

gives access to the plock(2) system call for locking process text and data into memory, and the SHM-.LOCK command used with shmctl(2) system call.

CHOWN

gives access to the chown(2) system call.

Specifying no access privileges removes any privileges that may currently be assigned. Note that capabilities set by this command are not additive. If you wish to add a capability for a particular group, you need to respecify all capabilities that were already set for that group in addition to the new capability.

The file named using the -f option should contain one or more lines in the following format:

-g I -n I group-name [ privileges 1 Only the super user may use this command.

/ etc/privgroup /etc/group ERRORS

Setprivgrp returns 1 if caller is not super user, and 2 if there is not enough table space to hold a new privileged group assignment.

AUTHOR

Setprivgrp was developed by the Hewlett-Packard Company.

SEE ALSO

getprivgrp(I), getprivgrp(2), privgrp(4), rtprio(2), plock(2), shmctl(2), chown(2).

Hewlett-Packard Company - 1 - Version B.l, October 1986

SHUTDOWN (1M) HP-UX SHUTDOWN (1M)

Shutdown is part of the HP-UX system operation procedures. Its primary function is to terminate all currently running processes in an orderly and cautious manner. Shutdown can be used to put

Shutdown goes through the following steps:

All file systems' super blocks are updated; see sync(lM). This must be done before rebooting the system to ensure file system integrity.

All users logged on the system are notified to log out by a broadcast message. The opera-tor may display his/her own message at this time. Otherwise, a standard warning mes-sage is displayed.

All currently executing processes are terminated except those essential to the system or associated with the shutdown procedure.

All file systems are unmounted.

The next step depends on which of the following options are selected:

-h Shutdown the system and halt.

-r

grace Grace specifies, in seconds, a grace period for users to log off before shut-ting down. The default is 60 seconds. If grace is zero, shutdown runs more quickly, but gives users very little time to log out.

If neither -r or -h is specified, the system will be placed in run-level s; see init(lM).

RETURNS

The most common error diagnostic that will occur is device busy. This happens when a particular file system could not be unmounted; see mount(lM).

EXAMPLES

To immediately reboot the system and run HP-UX again:

shutdown -r 0

To halt the system in 5 minutes:

shutdown -h 300

To go to init run-level s in 10 minutes:

shutdown 600

Hewlett-Packard Company - 1 - Version B.l, October 1986

SHUTDOWN (1M)

HARDW ARE DEPENDENCIES

Dans le document HP-UX Reference (Page 177-184)

Documents relatifs