Manual:Store - prior to v6.20 release: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Versions|v3, v4}} | __TOC__ | ||
{{Versions|v3, v4+}} | |||
'''Store''' manages storage devices used by RouterOS various facilities. | '''Store''' manages storage devices used by RouterOS various facilities. | ||
Line 40: | Line 41: | ||
/store add disk=CF1 type=user-manager activate=yes | /store add disk=CF1 type=user-manager activate=yes | ||
==Store management== | |||
<p id="shbox"><b>Sub-menu:</b> <code>/store</code></p> | |||
===Properties=== | |||
{{Mr-arg-table-h | |||
|prop=Property | |||
|desc=Description | |||
}} | |||
{{Mr-arg-table | |||
|arg=activate | |||
|type=yes {{!}} no | |||
|default=no | |||
|desc= | |||
}} | |||
{{Mr-arg-table | |||
|arg=comment | |||
|type=string | |||
|default= | |||
|desc= | |||
}} | |||
{{Mr-arg-table | |||
|arg=disabled | |||
|type=yes {{!}} no | |||
|default=no | |||
|desc= | |||
}} | |||
{{Mr-arg-table | |||
|arg=disk | |||
|type=string | |||
|default= | |||
|desc= | |||
}} | |||
{{Mr-arg-table | |||
|arg=name | |||
|type=string | |||
|default= | |||
|desc= | |||
}} | |||
{{Mr-arg-table-end | |||
|arg=type | |||
|type=user-manager {{!}} web-proxy | |||
|default= | |||
|desc= | |||
}} | |||
===Menu specific commands=== | |||
==Disk management== | |||
<p id="shbox"><b>Sub-menu:</b> <code>/store disk</code></p> | |||
===Read-only Properties=== | |||
{{Mr-arg-table-h | |||
|prop=Property | |||
|desc=Description | |||
}} | |||
{{Mr-arg-ro-table | |||
|arg=free-space | |||
|type=integer [KiB] | |||
|desc=Shows the free space left on the disk. | |||
}} | |||
{{Mr-arg-ro-table | |||
|arg=name | |||
|type=string | |||
|desc=Name of the disk | |||
}} | |||
{{Mr-arg-ro-table | |||
|arg=status | |||
|type=strung | |||
|desc=Shows the current status of the disk, can be '''ready''', '''formating''' etc. | |||
}} | |||
{{Mr-arg-ro-table | |||
|arg=system | |||
|type=yes {{!}} no | |||
|desc=Shows whether disk is used as system drive | |||
}} | |||
{{Mr-arg-ro-table-end | |||
|arg=total-space | |||
|type=integer [KiB] | |||
|desc=Shows total available disk space | |||
}} | |||
===Menu specific commands=== | |||
[[Category:Manual|S]] | [[Category:Manual|S]] | ||
[[Category:System|S]] | [[Category:System|S]] |
Revision as of 15:13, 28 March 2012
Applies to RouterOS: v3, v4+
Store manages storage devices used by RouterOS various facilities.
Currently Store can be used for:
- Webproxy
- User Manager
- the Dude
This is especially useful for RouterBOARD devices with SD/CF slots - as the built-in storage is quite small, an external drive comes in very handy when you want a big User Manager database.
You can add as many external or secondary drives as you want, and select any number of them for each of the mentioned feature use. For example User Manager could be used on 3 disks, one of them would be the active database, and the rest would be backups. You can then add a fourth disk, copy the active data to it - unplug it - and move to another server, to keep using the actual database.
This means migration and backup made easy!
Note: For proper operation router needs to be rebooted after adding or removing external storage.
Creating a Store instance
[normis@demo.mt.lv] /store> print Flags: X - disabled, A - active # NAME TYPE DISK STATUS 0 A web-proxy1 web-proxy system active [normis@demo.mt.lv] /store> add activate comment copy-from disabled name disk type [normis@demo.mt.lv] /store> add name=webproxy_backup disk=disk1 type=web-proxy activate=no
This will add a new storage place for Webproxy on disk1, and will set it as inactive.
Activate new store instance to save proxy cache on secondary disk (other proxy settings configured separately from /ip proxy menu),
[normis@demo.mt.lv] > store activate webproxy-backup
E.g. RB1000 with populated CF Card slot and User Manager, one can add the CF card for use by User manager to store all it's data as follows
/store add disk=CF1 type=user-manager activate=yes
Store management
Sub-menu: /store
Properties
Property | Description |
---|---|
activate (yes | no; Default: no) | |
comment (string; Default: ) | |
disabled (yes | no; Default: no) | |
disk (string; Default: ) | |
name (string; Default: ) | |
type (user-manager | web-proxy; Default: ) |
Menu specific commands
Disk management
Sub-menu: /store disk
Read-only Properties
Property | Description |
---|---|
free-space (integer [KiB]) | Shows the free space left on the disk. |
name (string) | Name of the disk |
status (strung) | Shows the current status of the disk, can be ready, formating etc. |
system (yes | no) | Shows whether disk is used as system drive |
total-space (integer [KiB]) | Shows total available disk space |