Adding or removing a mirror from a file system
A mirrored file system is one that has copies of itself on other disks or pools.
To add a mirror to a file system
- To add a mirror to a file system, enter the following:
Storage> fs addmirror tier_name fs_name pool1[,disk1,...] [protection=disk|pool] [iosize]
tier_name
Specifies which tier name. If the specified file system does not exist, an error message is displayed.
fs_name
Specifies which file system to add the mirror. If the specified file system does not exist, an error message is displayed.
pool1[,disk1,...]
Specifies the pool(s) or disk(s) to use for the file system. If the specified pool or disk does not exist, an error message is displayed, and the file system is not created. You can specify more than one pool or disk by separating the name with a comma, but do not include a space between the comma and the name.
To find a list of existing pools and disks, use the Storage> pool list command.
See About configuring storage pools.
To find a list of the existing disks, use the Storage> disk list command.
The disk needs to be part of the pool or an error message is displayed.
protection
The default value for the protection field is disk.
Available options are:
disk - if the protection is set to disk, then mirrorsare created on separate disks. This flag only works for file systems of type mirrored, mirrored-striped, and striped-mirror. The disks may or may not be in the same pool.
pool - if the protection is set to pool, then mirrors are created in separate pools. This flag only works for file systems of type mirrored, mirrored-striped, and striped-mirror. If not enough space is available, then the file system creation operation fails.
iosize
Size of the IO request.
To remove a mirror from a file system
- To remove a mirror from a file system, enter the following:
Storage> fs rmmirror tier_name fs_name [pool_or_disk_name]
fs_name
Specifies the file system from which to remove the mirror. If you specify a file system that does not exist, an error message is displayed.
pool_or_disk_name
Specifies the pool or the disk name to remove from the mirrored file system that spans the specified pools or disks. If a pool name is the same as the disk name, then the mirror present on the pool is deleted.
tier_name
Specifies the tier name.
For a striped-mirror file system, if any of the disks are bad, the Storage> fs rmmirror command disables the mirrors on the disks that have failed. If no disks have failed, Access Appliance chooses a mirror to remove.