Table of ContentsLibraryView in Frames

How you use the wildcard character with the disk command

You can use the wildcard character ("*") when you use certain commands to manage disk ownership. However, you need to be sure you understand how Data ONTAP expands the wildcard character.

You can use the wildcard character with the following commands:
  • disk show
  • disk assign
  • disk remove_ownership

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 address string, and is a simple string substitution. You might get unexpected results.

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

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, use the following command:disk assign 5b.* -p 0