XenServer Administrator's Guide 4.1.0

Storage
25
Note
The Repair Storage Repository function within XenCenter can be used to retry the PBD creation
and plugging portions of the sr-create operation. This can be valuable in cases where the LUN
zoning was incorrect for one or more member servers in a pool when the SR was created. Correct
the zoning for the affected hosts and use Repair Storage Repository instead of removing and re-
creating the SR.
3.3.8. Creating a shared NetApp SR over iSCSI
Device-config parameters for netapp SRs:
Parameter Name Description Optional
target the IP address or hostname of the NetApp server in which the SR will
reside
no
username the login username used to manipulate the LUNs on the filer no
password the login password used to manipulate the LUNs on the filer no
aggregate the aggregate name on which the FlexVol is created Required
for
sr_create
FlexVols the number of FlexVols to allocate per-SR yes
chapuser the username to be used during CHAP authentication yes
chappassword the password to be used during CHAP authentication yes
allocation this specifies whether thick or thin provisioning [thick | thin]; default is
thick
yes
asis this specifies whether to use A-SIS deduplication if available [true | false];
default is false
yes
To create a netapp SR use the following command.
xe sr-create host-uuid=<VALID_UUID> content-type=user \
name-label="Example shared NetApp SR" shared=true \
device-config:target=192.168.1.10 device-config:username=<admin username> \
device-config:password=<admin password> \
type=netapp
3.4. Managing Storage Repositories
This section covers various operations required in the ongoing management of Storage Repositories (SRs).
3.4.1. Destroying or forgetting a SR
You can destroy an SR, which will actually delete the contents of the SR from the physical media. Alterna-
tively an SR can be forgotten, which allows you to re-attach the SR, for example, to another XenServer
Host, without removing any of the SR contents. In both cases, the PBD of the SR must first be unplugged.
Forgetting an SR is the equivalent of the SR Detach operation within XenCenter.
1. Unplug the PBD to detach the SR from the corresponding XenServer Host:
xe pbd-unplug uuid=<PBD_UUID>