diskowner.1m (2010 09)
d
diskowner(1M) diskowner(1M)
NAME
diskowner - retrieve the owner of a storage device
SYNOPSIS
/usr/sbin/diskowner
[-A][-F] path
DESCRIPTION
The
diskowner command is used to retrieve the subsystem, if any, which is using the specified path.
The command is intended to help prevent users from overwriting storage that is already in use. The com-
mand will print out the owner of the path, or
none if no owner was found. A storage device is considered
owned by a subsystem if it has been formatted by that subsystem. For example, if a disk contains a VxFS
filesystem, but is not mounted or in use, it is still considered owned by the VxFS subsystem.
If the path specified is invalid or inaccessible, an error message will be printed.
Options and Arguments
The
diskowner command recognizes the following options and arguments:
path The path name to the storage device. The path may be a symbolic link, as long as it points to a
storage device, such as a file, disk, or logical volume.
-A List all the owners of the specified path, seperated by commas (
,).
-F Produce a compact output that is easily parsed by other scripts and programs. When used
with -A option, displays all the owners seperated by dots (.). This format is described in the
Compact Listing section below.
Output from diskowner
diskowner displays the following possible output:
owner The owner of the given path. owner can be one of the following:
none The path is not owned by any known subsystem.
lvm The path is part of an LVM volume group.
vxvm The path is part of a VxVM volume group.
vxfs The path has a VxFS filesystem on it.
hfs The path has a HFS filesystem on it.
swap The path is being used as a swap device.
dump The path is being used as a dump device.
asm The path is part of an Oracle database.
partition The path has EFI partitions on it.
message An error message displayed when the given path is invalid or inaccessible.
Compact Listing
The -F option generates a compact, colon delimited listing that is easy to parse. The output format is:
key1
=value1:key2=value2
and so forth.
The
-F option, when used with the -A option, produces this output format:
key1
=value1:key2=value21.value22.value23.....value2n
and so forth.
The current
diskowner command prints out the keys and values listed below. In the future, new keys
and/or values may be added to the output.
path=path :owner=owner
or
path=path:owner=owner1.owner2.owner3.....ownern
or
path=path :error=message
where
path is the pathname passed as argument
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1