unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (HP-UX-11.11)
Page:
Section:
Apropos / Subsearch:
optional field



 arrayfmt(1M)							arrayfmt(1M)




 NAME
      arrayfmt - formats a LUN or an entire disk array.

 SYNOPSIS
      arrayfmt -L LUN [-V] [-?] array-id

      arrayfmt -F [-h] [-V] [-?] array-id

 DESCRIPTION
      arrayfmt formats the LUN (logical devices) identified by LUN or the
      entire disk array identified by array-id.

      WARNING: This is a destructive command. Data on the selected LUN or
      disk array will be destroyed following successful completion of this
      command.	Backup all vital data before performing a format.

      The array-id used to address the disk array can be the disk array
      serial number, the character device file name of any LUN on the array
      (LUN 0 if no LUNs are created), or the alias text string assigned to
      the disk array.

    Options
      arrayfmt supports the following options:

	   -F [ -h ]	  Format the entire disk array identified by array-
			  id.  By default, only disks currently included in
			  the array configuration will be formatted. If the
			  -h option is specified, all disks installed in the
			  cabinet will be formatted, even those that are not
			  included in the array configuration.

	   -L LUN	  Format the LUN specified by LUN.

	   -V		  Verbose mode displays additional command
			  execution, state, and/or status messages.

	   -?		  Display expanded usage message. This option
			  overrides all others.

 EXTERNAL INFLUENCES
    Environment Variables
      LC_MESSAGES determines the language in which messages are displayed.
      The current language settings can be checked with locale(1).

 RETURN VALUE
      arrayfmt returns the following values:

	   0  Successful completion.
	   1  An error in execution (I/O, subsystem, security, etc.)
	      occurred.




				    - 1 -	  Formatted:  August 2, 2006






 arrayfmt(1M)							arrayfmt(1M)




	   2  An error in command syntax occurred: for example, an unknown
	      command-line option was passed.
	   3  Timeout in communication to server. May indicate ARMServer is
	      not running.

 DIAGNOSTICS
      The following messages can be generated by arrayfmt:

      Usage: arrayfmt {-L LUN | -F [-h]} [-V] [-?] <&lt&lt&lt;array-id>&gt&gt&gt;
	   An error in command syntax has occurred. Re-enter the command
	   with all necessary arguments.

      arrayfmt: Arg out of range
	   One of the arguments has exceeded its maximum or minimum size, or
	   is incorrect in form.  Check the size and form of each argument.

      arrayfmt: Unknown argument
	   An invalid argument was specified. Check command usage.

      arrayfmt: No such file or directory
	   The specified array-id does not exist or does not identify a disk
	   array that is communicating with the system. Verify the correct
	   array-id with ioscan(1M).

      arrayfmt: Error in command execution, <&lt&lt&lt;Additional Error Info>&gt&gt&gt;:
      <&lt&lt&lt;Error Info Decode>&gt&gt&gt;
	   The command failed due to a device error, an internal error, or a
	   system error. The Additional Error Info and Error Info Decode
	   fields will hold specifics about the failure and its cause.

      arrayfmt: Cannot format array while a diagnostic is running.
	   An attempt was made to format the array while a diagnostic was in
	   progress. Allow the diagnostic to complete or cancel the test
	   using dteststat.

      arrayfmt: Device was just powered-on or reset.
	   A command failed because the disk array has been powered-on or
	   reset.  Reissue the command and it should succeed.

 EXAMPLES
      Format LUN 1 on disk array serial number 00786b5c0000:

	   arrayfmt -L 1 00786b5c0000

      Format the entire disk array identified by device file
      /dev/rdsk/c2t0d0:

	   arrayfmt -F /dev/rdsk/c2t0d0

 DEPENDENCIES
      ARMServer must be running to execute this command. See ARMServer(1M).



				    - 2 -	  Formatted:  August 2, 2006






 arrayfmt(1M)							arrayfmt(1M)




 SECURITY CONFIGURATION
      This command is modified for all security configurations.

    Security Behavior/Restrictions
      Use of this command is restricted to authorized users only.

    Command Authorizations
      This command requires the sysadmin authorization to successfully
      execute.

    Privileges
      The command has been modified to support least privilege. The
      potential privileges possessed by the command and their uses include:

      allowdacread	  This privilege is raised to provide discretionary
			  read access to the devices.

      allowdacwrite	  This privilege is raised to provide discretionary
			  write access to the devices.

      allowmacread	  This privilege is raised to provide mandatory read
			  access to the devices.

      allowmacwrite	  This privilege is raised to provide mandatory
			  write access to the devices.

      filesysops	  This privilege is raised to allow the mknod(2)
			  system call to succeed.

      writeaudit	  The command generates its own audit records and
			  submits these directly to the system audit trail.
			  This privilege is raised whenever the command
			  needs to write an audit record.

 AUTHOR
      arrayfmt was developed by HP.

 SEE ALSO
      ARMServer(1M), arraycfg(1M), arraydsp(1M), arraylog(1M), arraymgr(1M),
      arrayrbld(1M), arrayrecover(1M), download(1M), drivetest(1M),
      dteststat(1M), logprint(1M).













				    - 3 -	  Formatted:  August 2, 2006