Table of ContentsView in Frames

How you use the wildcard character with the disk ownership commands

You can use the wildcard character ("*") with some commands, including commands to manage disk ownership. However, you should understand how Data ONTAP expands the wildcard character.

You can use the wildcard character with the following disk ownership commands:

When you use the wildcard character with these commands, Data ONTAP expands it with zero or more characters to create a list of disk names that will be operated on by the command. This can be very useful when you want to assign all of the disks attached to a particular port or switch, for example.

Note: Be careful when you use the wildcard character. It is accepted anywhere in the disk name string, and is a simple string substitution. Therefore, you might get unexpected results.

For example, to assign all disks on port 1 of the switch brocade23 to node03, you would use the following command: disk assign brocade23:1.* -o node03

However, if you left off the second ".", as in the following command, you would assign all disks attached to ports 1, 10, 11, 12, and so on: disk assign brocade23:1* -p 0

Assigning multiple disks attached to an HBA

To assign all of the disks attached to the B port of the HBA in expansion slot 5 to pool0, you would use the following command: disk assign 5b.* -p 0