Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/ctladm/ctladm.8
Show All 30 Lines | |||||
.\" | .\" | ||||
.\" ctladm utility man page. | .\" ctladm utility man page. | ||||
.\" | .\" | ||||
.\" Author: Ken Merry <ken@FreeBSD.org> | .\" Author: Ken Merry <ken@FreeBSD.org> | ||||
.\" | .\" | ||||
.\" $Id: //depot/users/kenm/FreeBSD-test2/usr.sbin/ctladm/ctladm.8#3 $ | .\" $Id: //depot/users/kenm/FreeBSD-test2/usr.sbin/ctladm/ctladm.8#3 $ | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd August 6, 2020 | .Dd November 23, 2020 | ||||
.Dt CTLADM 8 | .Dt CTLADM 8 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm ctladm | .Nm ctladm | ||||
.Nd CAM Target Layer control utility | .Nd CAM Target Layer control utility | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Aq Ar command | .Aq Ar command | ||||
▲ Show 20 Lines • Show All 976 Lines • ▼ Show 20 Lines | |||||
.Dl ctladm create -b ramdisk -s 10485760000000000 | .Dl ctladm create -b ramdisk -s 10485760000000000 | ||||
.Pp | .Pp | ||||
Create a thin provisioned LUN with a ramdisk as a backing store. | Create a thin provisioned LUN with a ramdisk as a backing store. | ||||
The LUN will have maximal backing store capacity of 10 gigabytes, | The LUN will have maximal backing store capacity of 10 gigabytes, | ||||
while reporting size of 10 terabytes, | while reporting size of 10 terabytes, | ||||
.Pp | .Pp | ||||
.Dl ctladm create -b ramdisk -s 10T -o capacity=10G | .Dl ctladm create -b ramdisk -s 10T -o capacity=10G | ||||
.Pp | .Pp | ||||
Create a LUN using the block backend, and specify the file | Create a LUN using the block backend, specify the ZFS volume | ||||
.Pa src/usr.sbin/ctladm/ctladm.8 | .Pa tank/example | ||||
as the backing store. | |||||
The size of the LUN will be derived from the size of the file. | |||||
.Pp | |||||
.Dl ctladm create -b block -o file=src/usr.sbin/ctladm/ctladm.8 | |||||
.Pp | |||||
Create a LUN using the block backend, specify the file | |||||
.Pa src/usr.sbin/ctladm/ctladm.8 | |||||
as the backing store, and specify the | as the backing store, and specify the | ||||
.Tn SCSI | .Tn SCSI | ||||
VPD page 0x80 and 0x83 serial number | VPD page 0x80 and 0x83 serial number | ||||
.Fl ( S ) | .Fl ( S ) | ||||
and device ID | and device ID | ||||
.Fl ( d ) . | .Fl ( d ) . | ||||
The size of the LUN will be derived from the size of the ZVOL. | |||||
.Pp | .Pp | ||||
.Dl ctladm create -b block -o file=src/usr.sbin/ctladm/ctladm.8 -S MYSERIAL321 -d MYDEVID123 | .Dl ctladm create -b block -o file=/dev/zvol/tank/example -S MYSERIAL321 -d MYDEVID123 | ||||
.Pp | .Pp | ||||
Use to specify generic options on ioctl frontend port, now it is | Use to specify generic options on ioctl frontend port, now it is | ||||
only possible to set pp and/or vp port number. | only possible to set pp and/or vp port number. | ||||
.Pp | .Pp | ||||
.Dl ctladm port -c -O pp=11 -O vp=12 | .Dl ctladm port -c -O pp=11 -O vp=12 | ||||
.Pp | .Pp | ||||
Remove specified targ_port. | Remove specified targ_port. | ||||
.Pp | .Pp | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |