beautypg.com

Listing tiering rules, Running a migration task – HP StoreAll Storage User Manual

Page 189

background image

ibrix_migrator -A -f FSNAME -r RULE -S SOURCE_TIER -D DESTINATION_TIER

The following rule migrates all files that have not been modified for 30 minutes from Tier1 to Tier2:

[root@ibrix01a ~]# ibrix_migrator -A -f ifs1 -r 'mtime older than 30 minutes' -S Tier1 -D Tier2
Rule: mtimeCommand succeeded!

Listing tiering rules

To list all of the rules in the tiering policy, use the following command:

ibrix_migrator -l [-f FSNAME] -r

The output lists the file system name, the rule ID (IDs are assigned in the order in which rules are
added to the configuration database), the rule definition, and the source and destination tiers. For
example:

[root@ibrix01a ~]# ibrix_migrator -l -f ifs1 -r
HsmRules
========
FS Name Id Rule Source Tier Destination Tier
------- -- --------------------------- ----------- ----------------
ifs1 9 mtime older than 30 minutes Tier1 Tier2
ifs1 10 name = "*.mpeg4" Tier1 Tier2
ifs1 11 size > 4M Tier1 Tier2

Running a migration task

To start a migration task, use the following command:

ibrix_migrator -s -f FSNAME

For example:

[root@ibrix01a ~]# ibrix_migrator -s -f ifs1
Submitted Migrator operation to background. ID of submitted task: Migrator_163
Command succeeded!

NOTE:

The ibrix_migrator command cannot be run at the same time as ibrix_rebalance.

To list the active migration task for a file system, use the ibrix_migrator -i option. For example:

[root@ibrix01a ~]# ibrix_migrator -i -f ifs1
Operation: Migrator_163
=======================
Task Summary
============
Task Id : Migrator_163
Type : Migrator
File System : ifs1
Submitted From : root from Local Host
Run State : STARTING
Active? : Yes
EXIT STATUS :
Started At : Jan 17, 2012 10:32:55
Coordinator Server : ibrix01b
Errors/Warnings :
Dentries scanned : 0
Number of Inodes moved : 0
Number of Inodes skipped : 0
Avg size (kb) : 0
Avg Mb Per Sec : 0
Number of errors : 0

To view summary information after the task has completed, run the ibrix_migrator -i command
again and include the -n option, which specifies the task ID. (The task ID appears in the output
from ibrix migrator -i.)

Configuring tiers and migrating data using the CLI 189