Media Flow Controller CLI Commands : media-cache

media-cache
Configure media caching parameters.
Tip! Find the names of various media cache using show media-cache (see description below). See “Managing the Media Cache” on page 91 for task details; see “Disk Cache Problems” on page 154 for troubleshooting.
media-cache disk [mount-new | <cache_name>]
cache {enable | disable}
format
repair
status {active | inactive}
Notes:
disk—Specify a media cache disk (use show media-cache disk list to get cache names), and set options or use mount-new (EXEC command) to discover a newly inserted disk, mount it, name it, and make it part of the disk cache system.
cache—Enable or disable the disk for caching. When the system boots and starts detecting disks, it auto-calibrates the disk, puts it in static mode, and enables the disk for caching. Use disable as needed; for example, if disk contents are rendered not-to-be-cached, or to reformat the disk; see the reformat and repair commands below. Important! a newly inserted disk must be formatted before being enabled. Note! The init-cache option, used during installation only, formats all the disks.
formatEXEC command. Use when you insert a disk into a running Media Flow Controller with the intent of not using the contents that exist in the disk.
repair—Not supported in Release 2.0.2.
status—Make the media-cache active or inactive. Use inactive if you need to pull the disk for any maintenance purposes; for example, to upgrade to a higher capacity disk, replace a SATA disk with a SAS disk, or replace a failed disk. Important! Media Flow Controller allows OIR (On-line Insertion and Removal) of HDD (Hard Disk Drives). However, the HDD MUST be made inactive to be removed. When a new HDD is in the disk, it must be made active and (if so decided) enabled for caching.
Note! To purge all objects when a disk cache is removed, reboot Media Flow Controller.
show media-cache {disk | file} {list |<cache_name>}
Display various media-cache characteristics. Notes:
list—List all disk drives, their names, information on the physical location, serial number, type, and capacity. Before you activate or enable a cache, run show media-cache disk list and get the name assigned to the disk to use in configuration.
<cache_name>—List information on the specified cache.
Note! Media Flow Controller supports 3 cache tiers corresponding to SSD (tier 1), SAS HDD (tier 2), and SATA HDD (tier 3). "Hot" content should stay in tier1 (the highest). Media Flow Controller promotes contents between the cache tiers based on content hotness (see ““Hot” Content (Short Tail vs. Long Tail)” on page 29, for explanation). As content gets hotter, it is promoted to the next higher tier. 1st time content is always put in the lowest cache tier. The default values are: tier1 weight = 6, tier2 weight = 2, tier3 weight = 1. So, any content requested once is cached in Tier 3; requested twice and it is promoted to Tier2; and, if requested 6 times, it is promoted to Tier1. Example:
show media-cache disk list
Device Type Tier Active Cache Free Space State
------ ---- ---- ------ ----- ---------- -----
dc_1 SATA Tier-3 yes yes 38890 MiB cache running
dc_2 SATA Tier-3 yes yes 68668 MiB cache running
show media-cache disk dc_2
Disk Cache Configuration & Status:
Device Name/Type: dc_2/SATA
Cache Tier: Tier-3
Activated: yes
Cache Enabled: yes
Free Space: 68596 MiB
Disk State : cache running
-------------------------------------

Report an Error
Media Flow Controller Administrator's Guide and CLI Command Reference
Copyright © 2010 Juniper Networks, Inc.