Changeset View
Changeset View
Standalone View
Standalone View
sbin/geom/class/part/gpart.8
Show First 20 Lines • Show All 1,140 Lines • ▼ Show 20 Lines | |||||
.Sh SYSCTL VARIABLES | .Sh SYSCTL VARIABLES | ||||
The following | The following | ||||
.Xr sysctl 8 | .Xr sysctl 8 | ||||
variables can be used to control the behavior of the | variables can be used to control the behavior of the | ||||
.Nm PART | .Nm PART | ||||
GEOM class. | GEOM class. | ||||
The default value is shown next to each variable. | The default value is shown next to each variable. | ||||
.Bl -tag -width indent | .Bl -tag -width indent | ||||
.It Va kern.phys2unit: | |||||
This variable add map which and how the disk should be renamed. | |||||
bcr: adds a map | |||||
wblockUnsubmitted Not Done Inline ActionsEven then... not sure what this is saying. Maybe: Add a map for how the disk is to be renamed. wblock: Even then... not sure what this is saying. Maybe:
```Add a map for how the disk is to be… | |||||
If this is recognized by CAM the mapping looks like: | |||||
.Li bNRtNRlNR=disk | |||||
where b is for a bus, t is for target and l is for lun. | |||||
All those values can be get from | |||||
bcrUnsubmitted Not Done Inline Actionss/get/queried/ bcr: s/get/queried/ | |||||
wblockUnsubmitted Not Done Inline ActionsAll these values can be queried with wblock: ```All these values can be queried with``` | |||||
.Xr camcontrol 8 | |||||
wblockUnsubmitted Not Done Inline Actions.Xr camcontrol 8 . wblock: ```.Xr camcontrol 8 .``` | |||||
tool. | |||||
wblockUnsubmitted Not Done Inline ActionsDelete this. wblock: Delete this. | |||||
For example the | |||||
wblockUnsubmitted Not Done Inline ActionsFor example,``` (add comma, no "the") wblock: ```For example,``` (add comma, no "the") | |||||
.Pa b0t1l0=12 | |||||
will means that disk on bus 0, target 0 and lun 0 should be renamed to disk12. | |||||
bcrUnsubmitted Not Done Inline Actionss/means/mean/ bcr: s/means/mean/ | |||||
wblockUnsubmitted Not Done Inline Actionsmeans that the disk on bus 0, target 0 and lun 0 should be renamed to disk12. wblock: ```means that the disk on bus 0, target 0 and lun 0 should be renamed to disk12.``` | |||||
If the this is connected to the mfi the | |||||
bcrUnsubmitted Not Done Inline Actionskill the first "the". bcr: kill the first "the". | |||||
wblockUnsubmitted Not Done Inline ActionsUnclear here, mfi(4)? If the disk is connected to an .Xr mfi 4 controller, the wblock: Unclear here, mfi(4)?
```If the disk is connected to an
.Xr mfi 4
controller, the``` | |||||
.Pa ENR:SNR=disk | |||||
notation is used. | |||||
.Ar E | |||||
stands for enclosure and | |||||
.Ar S | |||||
stands for slot. | |||||
All those values can be get from | |||||
bcrUnsubmitted Not Done Inline Actionss/get/queried/ bcr: s/get/queried/ | |||||
wblockUnsubmitted Not Done Inline ActionsValues can be queried with .Xr mfiutil 8 . wblock: ```Values can be queried with
.Xr mfiutil 8 .``` | |||||
.Xr mfiutil 8 | |||||
tool. | |||||
wblockUnsubmitted Not Done Inline ActionsDelete this line. wblock: Delete this line. | |||||
Space should be used to separate multiple disks. | |||||
wblockUnsubmitted Not Done Inline ActionsSeparate disk mappings, not disks. Use spaces to separate multiple disk mappings. wblock: Separate disk mappings, not disks.
```Use spaces to separate multiple disk mappings.``` | |||||
For | |||||
.Pa b0t1l0=0 b0t2l0=1 | |||||
wblockUnsubmitted Not Done Inline ActionsThis is not a path, so not .Pa. Delete the "For". (Untested, but I think this is the right idea.) .Bd -literal -offset indent wblock: This is not a path, so not .Pa. Delete the "For". (Untested, but I think this is the right… | |||||
two disk will be renamed. | |||||
bcrUnsubmitted Not Done Inline Actionss/disk/disks/ bcr: s/disk/disks/ | |||||
wblockUnsubmitted Not Done Inline ActionsDelete this line. wblock: Delete this line. | |||||
Disk on bus 0, target 1 and lun 0 will be renamed to disk0, and disk on bus 0, | |||||
bcrUnsubmitted Not Done Inline ActionsRemove the extra space before "disk". bcr: Remove the extra space before "disk". | |||||
wblockUnsubmitted Not Done Inline ActionsUse the serial comma. The disk on bus 0, target 1, lun 0 will be renamed to disk0. The disk on bus 0, target 2, lun 0 will be renamed to disk 1. wblock: Use the serial comma.
```The disk on bus 0, target 1, lun 0 will be renamed to disk0.
The disk… | |||||
target 2 and lun 0 will be renamed to disk 1. | |||||
When this sysctl is in use the ad, ada or mfisyspd devices will not be created | |||||
bcrUnsubmitted Not Done Inline ActionsPut a comma after ada bcr: Put a comma after ada | |||||
wblockUnsubmitted Not Done Inline ActionsMore commas, including a serial comma. When this sysctl is in use, the ad, ada, or mfisyspd devices will not be created wblock: More commas, including a serial comma.
```When this sysctl is in use, the ad, ada, or mfisyspd… | |||||
if device is on the list. | |||||
wblockUnsubmitted Not Done Inline Actionsif the device is on this list. Why sysctl and which device? Not sure what this is trying to say. Maybe Add .Xr ad 4 , .Xr ada 4 , .Xr mfisyspd ? devices to this list to prevent device creation by those drivers. But it is not clear. Please explain in detail. wblock: ```if the device is on this list.```
Why sysctl and which device? Not sure what this is… | |||||
.Pp | |||||
.It Va kern.geom.part.auto_resize: No 1 | .It Va kern.geom.part.auto_resize: No 1 | ||||
wblockUnsubmitted Not Done Inline ActionsNot sure what "No 1" means. wblock: Not sure what "No 1" means. | |||||
This variable controls automatic resize behavior of | This variable controls automatic resize behavior of | ||||
wblockUnsubmitted Not Done Inline ActionsAutomatic resize behavior. When this variable is enabled and a new provider size is detected, the schema metadata is resized. Run .Cm gpart commit to commit changes to disk. wblock: ```Automatic resize behavior.
When this variable is enabled and a new provider size is detected… | |||||
.Nm | .Nm | ||||
GEOM class. | GEOM class. | ||||
When this variable is enable and new size of provider is detected, the schema | When this variable is enable and new size of provider is detected, the schema | ||||
metadata is resized but all changes are not saved to disk, until | metadata is resized but all changes are not saved to disk, until | ||||
.Cm gpart commit | .Cm gpart commit | ||||
is run to confirm changes. | is run to confirm changes. | ||||
This behavior is also reported with diagnostic message: | This behavior is also reported with diagnostic message: | ||||
.Sy "GEOM_PART: (provider) was automatically resized." | .Sy "GEOM_PART: (provider) was automatically resized." | ||||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |
adds a map