man.bsd.lv manual page server

Manual Page Search Parameters

NATACONTROL(8) System Manager's Manual NATACONTROL(8)

natacontrolNATA device driver control program

natacontrol commandargs


natacontrol attach channel

natacontrol detach channel

natacontrol reinit channel

natacontrol create type [interleave] disk0 ... diskN

natacontrol delete raid

natacontrol addspare raid disk

natacontrol rebuild raid

natacontrol status raid

natacontrol mode device

natacontrol info channel

natacontrol cap device

natacontrol feature device acoustic soundsupplevel

natacontrol feature device apm apmlevel

natacontrol spindown device [seconds]

natacontrol list

The natacontrol utility is a control program that provides the user access and control to the DragonFly nata(4) subsystem.

The natacontrol utility can cause severe system crashes and loss of data if used improperly. Please exercise caution when using this command!

The channel argument is the ATA channel device (e.g., ata0) on which to operate. The following commands are supported:

Attach an ATA channel. Devices on the channel are probed and attached as is done on boot.
Detach an ATA channel. Devices on the channel are removed from the kernel, and all outstanding transfers etc. are returned back to the system marked as failed.
Reinitialize an ATA channel. Both devices on the channel are reset and initialized to the parameters the ATA driver has stored internally. Devices that have gone bad and no longer respond to the probe, or devices that have physically been removed, are removed from the kernel. Likewise are devices that show up during a reset, probed and attached.
Create a type ATA RAID. The type can be RAID0 (stripe), RAID1 (mirror), RAID0+1, SPAN or JBOD. In case the RAID has a RAID0 component, the interleave must be specified in number of sectors. The RAID will be created of the individual disks named disk0 ... diskN.

Although the nata(4) driver allows for creating an ATA RAID on disks with any controller, there are restrictions. It is only possible to boot on an array if it is either located on a “real” ATA RAID controller like the Promise or Highpoint controllers, or if the RAID declared is of RAID1 or SPAN type; in case of a SPAN, the partition to boot must reside on the first disk in the SPAN.

Delete a RAID array on a RAID capable ATA controller.
Add a spare disk to an existing RAID.
Rebuild a RAID1 array on a RAID capable ATA controller.
Get the status of an ATA RAID.
Without the mode argument, the current transfer modes of the device are printed. If the mode argument is given, the nata(4) driver is asked to change the transfer mode to the one given. The nata(4) driver will reject modes that are not supported by the hardware. Modes are given like “PIO3”, “udma2”, “udma100”, case does not matter.

Currently supported modes are: PIO0, PIO1, PIO2, PIO3, PIO4, WDMA2, UDMA2 (alias UDMA33), UDMA4 (alias UDMA66), UDMA5 (alias UDMA100) and UDMA6 (alias UDMA133). The device name and manufacture/version strings are shown.

Show detailed info about the device on device.
Set disk drive features. Currently, acoustic and apm features are supported.
acoustic soundsupplevel
Controls the disk drive Acoustic Management level. The soundsupplevel may be set to off which will turn off acoustic management, maxperf to optimize for maximum performance, maxquiet to optimize for maximum quiet, or a numeric level from 0 to 124. The higher the numeric level, the higher the theoretical sound level emitted from the drive. Note that few devices support this command and even fewer will allow the range of levels supported.
apm apmlevel
Sets the disk drive Advanced Power Management (APM) level. This command is generally used on laptop (notebook) hard disks to control the power level consumed by the drive (at the expense of performance).

The apmlevel may be set to one of: off (turn off APM), maxperf or minpower (optimize for maximum performance or minimum power, respectively), or a numeric level which can be 0 to 127 inclusive indicating an increasing level of performance over power savings. The numeric levels may be prefixed by s which will allow the drive to include suspension as part of the power savings. Note that not all hard drives will support the off command, and that the number of incremental power savings levels do not typically have as wide of a range as this command will support.

Set or report timeout after which the device will be spun down. To arm the timeout the device needs at least one more request after setting the timeout. To disable spindown, set the timeout to zero. No further actions are needed in this case.
Show info about the attached devices on the channel.
Show info about all attached devices on all active controllers.

To get information on devices attached to a channel, use the command line:

natacontrol info ata0

To see the devices' current access modes, use the command line:

natacontrol mode ad0

which results in the modes of the devices being displayed as a string like this:

current mode = UDMA100

You can set the mode with natacontrol and a string like the above, for example:

natacontrol mode ad0 PIO4

The new modes are set as soon as the natacontrol command returns.

nata(4)

The natacontrol utility first appeared in FreeBSD 4.6 and was imported into DragonFly 1.7.

The natacontrol utility was written by Søren Schmidt <sos@FreeBSD.org>.

This manual page was written by Søren Schmidt <sos@FreeBSD.org>.

December 31, 2017 DragonFly-5.6.1