Oracle® Server CLI Tools for Oracle Solaris 11.2 User's Guide

Exit Print View

Updated: November 2015
 
 

Start or Stop a Task on a Disk or RAID Volume

The start task and stop task subcommands control the execution of maintenance tasks on a disk or RAID volume.

  • Do one of the following:
    • To start a task on a disk or RAID volume, type:

      raidconfig start task -t taskname [-d|-r]

    • To stop a task on a disk or RAID volume, type:

      raidconfig stop task -t taskname [-d|-r]

      The following are command examples for the start task and stop task subcommands:

      • A RAID ID must be provided for the verify check (verify) and initialization task (init).

        • To start the verify task on a specified RAID volume, type:

          raidconfig start task -t verify -r=raidvolume

          For example:

          raidconfig start task -t verify -r=c0r1

        • To stop the init task on a specified RAID volume, type:

          raidconfig stop task -t init -r=raidvolume

          For example:

          raidconfig stop task -t init -r=c0r1

      • A disk must be provided for the rebuild and clear tasks.

        • To start the rebuild task on a specified disk, type:

          raidconfig start task -t rebuild -d=disk

          For example:

          raidconfig start task -t rebuild -d=c0d1


          Note -  This can only be run on a disk that is part of a RAID volume.
        • To start the clear task on a specified disk, type:

          raidconfig start task -t clear -d=disk

          For example:

          raidconfig start task -t clear -d=c0d1


          Note -  This can only be run on a disk that is not part of a RAID volume.
      • Source and destination disks must be provided for the copy task.

        To start the copy task from one disk to another, type:

        raidconfig start -task -t copy --src-disk=source_disk --dst-disk=destination_disk

        For example:

        raidconfig start -task -t copy --src-disk=c0d2 --dst-disk=c0d3


        Note -  The source disk must be in a RAID volume. The destination disk cannot be in a RAID volume.

      The available background tasks are shown in the following table.

      Task
      Description
      verify
      Checks the validity of the RAID volume redundant data.
      init
      Initializes the RAID volume to write out the initial parity values. The initialization goes over the entire volume and initializes the parity data.
      copy
      Copies and moves an online physical disk onto a hotspare or unconfigured good drive. The copy is performed while the volume is online. Once completed, the destination disk is added to the logical volume configuration while the original source disk is removed from it.
      rebuild
      Regenerates the data of a single physical disk that is part of a logical volume with data redundancy. The physical disk is reconstructed from another physical disk and/or parity disks. A disk rebuild typically occurs after a disk replacement or repair.
      clear
      Clears a physical disk by writing zeroes over the entire disk.

      Note -  Not all devices support all tasks. To check the tasks a device supports, use the list subcommand and check the output under Startable tasks. If this field is blank, the device does not support any tasks.

      The start task and stop task subcommands accept the options shown in the following table.

      Short Option
      Long Option
      Description
      –t
      –-task
      Specifies the type of task to execute. Possible options are verify, init, rebuild, clear, or copy.
      –d
      –-disk
      Specifies the disk to execute the task on. Required by the rebuild and clear tasks.
      –r
      –-raid
      Specifies the RAID volume to execute the task on. Required by the verify and init tasks.
      n/a
      --src-disk
      Specifies the source disk to use in a copy task.
      n/a
      --dst-disk
      Specifies the destination disk to use in copy task.