1341
Comment:
|
6304
|
Deletions are marked like this. | Additions are marked like this. |
Line 18: | Line 18: |
vos archcand -server zyklop20 | #vos archcand -server zyklop20 |
Line 38: | Line 38: |
vos statistic -server zyklop20 | vos statistic -server <server> |
Line 43: | Line 43: |
#vos statistic -server zyklop19 |
|
Line 48: | Line 50: |
return the value of a variable {{{ }}} |
return the value of a given variable Usage: vos getvariable <Server> <variable> {{{ #vos getvariable zyklop20 LogLevel LogLevel = 0 }}} |
Line 51: | Line 61: |
{{{ }}} | set value of the specific variable in volserver Usage: vos setvariable -server <machine name> -name <of the variable> -value <to be set> Usage: {{{ # vos setvariable zyklop20 LogLevel 1 LogLevel = 1 }}} |
Line 53: | Line 72: |
{{{ }}} | sanity check for a volume Usage: vos salvage -id <volume name or ID> {{{ # vos salvage tn.testosd -localauth Salvaging volume 536900068 536900068: 332 local (953.813 mb) and 25 in OSDs (182.814 gb), 0 errors }}} |
Line 55: | Line 81: |
{{{ }}} | gather file statistic from server Usage: vos traverse -server <machine names> {{{ # vos traverse -server zyklop19 servers: zyklop19 File Size Range Files % run % Data % run % ---------------------------------------------------------------- 0 B - 4 KB 330 92.70 92.70 142.768 KB 0.00 0.00 4 KB - 8 KB 1 0.28 92.98 8.000 KB 0.00 0.00 8 KB - 16 KB 0 0.00 92.98 0 B 0.00 0.00 16 KB - 32 KB 0 0.00 92.98 0 B 0.00 0.00 32 KB - 64 KB 0 0.00 92.98 0 B 0.00 0.00 64 KB - 128 KB 0 0.00 92.98 0 B 0.00 0.00 128 KB - 256 KB 0 0.00 92.98 0 B 0.00 0.00 256 KB - 512 KB 0 0.00 92.98 0 B 0.00 0.00 512 KB - 1 MB 0 0.00 92.98 0 B 0.00 0.00 1 MB - 2 MB 0 0.00 92.98 0 B 0.00 0.00 2 MB - 4 MB 0 0.00 92.98 0 B 0.00 0.00 4 MB - 8 MB 0 0.00 92.98 0 B 0.00 0.00 8 MB - 16 MB 2 0.56 93.54 28.000 MB 0.02 0.02 16 MB - 32 MB 0 0.00 93.54 0 B 0.00 0.02 32 MB - 64 MB 0 0.00 93.54 0 B 0.00 0.02 64 MB - 128 MB 0 0.00 93.54 0 B 0.00 0.02 128 MB - 256 MB 0 0.00 93.54 0 B 0.00 0.02 256 MB - 512 MB 0 0.00 93.54 0 B 0.00 0.02 512 MB - 1 GB 3 0.84 94.38 2.793 GB 1.54 1.56 1 GB - 2 GB 0 0.00 94.38 0 B 0.00 1.56 2 GB - 4 GB 0 0.00 94.38 0 B 0.00 1.56 4 GB - 8 GB 11 3.09 97.47 73.192 GB 40.34 41.90 8 GB - 16 GB 9 2.53 100.00 105.406 GB 58.10 100.00 ---------------------------------------------------------------- Totals: 356 Files 181.420 GB Storage usage: --------------------------------------------------------------- 1 local_disk 332 files 953.821 MB Osd 2 zyklop20-al 24 objects 180.489 GB arch. Osd 4 arch 1 objects 953.673 MB --------------------------------------------------------------- Total 357 objects 182.351 GB Data without a copy: --------------------------------------------------------------- if !replicated: 1 local_disk 332 files 953.821 MB Osd 2 zyklop20-al 23 objects 179.557 GB --------------------------------------------------------------- Total 355 objects 180.489 GB }}} |
Line 57: | Line 137: |
{{{ }}} | split a volume at a certain directory Usage: vos splitvolume -id <volume name or ID> -newname <name of the new volume> -dirvnode <vnode number of directory where the volume should be split> |
Line 59: | Line 143: |
{{{ }}} |
dump a volume Usage: vos dump -id <volume name or ID> || '''osd''' || dump OSD files as normal files (include data) || || '''metadataonly''' || dump only directories and OSD metadata || |
Line 65: | Line 151: |
{{{ }}} | creates a new volume Usage: vos create -server <machine name> -partition <partition name> -name <volume name> |
Line 67: | Line 158: |
{{{ }}} | show information about a volume vos examine -id <volume name or ID> {{{ #vos examine tn.testosd tn.testosd 536900068 RW 190365038 K On-line zyklop19.ifh.de /vicepa 354 files RWrite 536900068 ROnly 536900069 Backup 536900070 MaxQuota 200000000 K, osd policy 1 Creation Thu Jun 4 13:37:30 2009 Copy Thu Jun 4 13:37:30 2009 Backup Wed Jun 24 00:20:01 2009 Last Update Fri Nov 13 11:01:03 2009 26755260 accesses in the past day (i.e., vnode references) RWrite: 536900068 number of sites -> 1 server zyklop19.ifh.de partition /vicepa RW Site }}} |
Line 69: | Line 180: |
{{{ }}} | list all objects on a specified osd vos listobjects -osd <osd or policy id> -volume |
Line 71: | Line 185: |
{{{ }}} | vos setfields: change volume info fields Usage: vos setfields -id <volume name or ID> Other Options || '''clearuse''' || clear dayUse || || '''noauth''' || don't authenticate || || '''verbose''' || verbose|| || '''encrypt''' || encrypt commands || || '''noresolve''' || don't resolve addresses || || '''localauth''' || use server tickets || |
Line 73: | Line 200: |
{{{ }}} | get a list of wipe candidates on OSDs Usage: vos wipecand -server <machine names> {{{ # vos wipecand -server zyklop19 processing zyklop19 }}} |
Contents
vos commands
vos archcand
gives a list of fids which need an archval copy
Usage: vos archcand -server <machine name>
#vos archcand -server zyklop20 Fid Weight Blocks 536900071.2.3 5015500 1000000 Totally 1 files with 1000000 blocks
Other Options:
wipeable |
ignore files < minwipesize |
force |
check also volumes without osd policy |
localauth |
use server tickets |
verbose |
verbose |
encrypt |
encrypt commands |
noresolve |
don't resolve addresses |
vos statistic
show data flow statistic of a given server
Usage: vos statistic -server <server>
#vos statistic -server zyklop19 Since 2009-11-08 04:00:01 (455348 seconds == 5 days, 6:29:08 hours) Total number of bytes received 0 0 bytes Total number of bytes sent 0 0 bytes
vos getvariable
return the value of a given variable
Usage: vos getvariable <Server> <variable>
#vos getvariable zyklop20 LogLevel LogLevel = 0
vos setvariable
set value of the specific variable in volserver
Usage: vos setvariable -server <machine name> -name <of the variable> -value <to be set> Usage:
# vos setvariable zyklop20 LogLevel 1 LogLevel = 1
vos salvage
sanity check for a volume Usage: vos salvage -id <volume name or ID>
# vos salvage tn.testosd -localauth Salvaging volume 536900068 536900068: 332 local (953.813 mb) and 25 in OSDs (182.814 gb), 0 errors
vos traverse
gather file statistic from server
Usage: vos traverse -server <machine names>
# vos traverse -server zyklop19 servers: zyklop19 File Size Range Files % run % Data % run % ---------------------------------------------------------------- 0 B - 4 KB 330 92.70 92.70 142.768 KB 0.00 0.00 4 KB - 8 KB 1 0.28 92.98 8.000 KB 0.00 0.00 8 KB - 16 KB 0 0.00 92.98 0 B 0.00 0.00 16 KB - 32 KB 0 0.00 92.98 0 B 0.00 0.00 32 KB - 64 KB 0 0.00 92.98 0 B 0.00 0.00 64 KB - 128 KB 0 0.00 92.98 0 B 0.00 0.00 128 KB - 256 KB 0 0.00 92.98 0 B 0.00 0.00 256 KB - 512 KB 0 0.00 92.98 0 B 0.00 0.00 512 KB - 1 MB 0 0.00 92.98 0 B 0.00 0.00 1 MB - 2 MB 0 0.00 92.98 0 B 0.00 0.00 2 MB - 4 MB 0 0.00 92.98 0 B 0.00 0.00 4 MB - 8 MB 0 0.00 92.98 0 B 0.00 0.00 8 MB - 16 MB 2 0.56 93.54 28.000 MB 0.02 0.02 16 MB - 32 MB 0 0.00 93.54 0 B 0.00 0.02 32 MB - 64 MB 0 0.00 93.54 0 B 0.00 0.02 64 MB - 128 MB 0 0.00 93.54 0 B 0.00 0.02 128 MB - 256 MB 0 0.00 93.54 0 B 0.00 0.02 256 MB - 512 MB 0 0.00 93.54 0 B 0.00 0.02 512 MB - 1 GB 3 0.84 94.38 2.793 GB 1.54 1.56 1 GB - 2 GB 0 0.00 94.38 0 B 0.00 1.56 2 GB - 4 GB 0 0.00 94.38 0 B 0.00 1.56 4 GB - 8 GB 11 3.09 97.47 73.192 GB 40.34 41.90 8 GB - 16 GB 9 2.53 100.00 105.406 GB 58.10 100.00 ---------------------------------------------------------------- Totals: 356 Files 181.420 GB Storage usage: --------------------------------------------------------------- 1 local_disk 332 files 953.821 MB Osd 2 zyklop20-al 24 objects 180.489 GB arch. Osd 4 arch 1 objects 953.673 MB --------------------------------------------------------------- Total 357 objects 182.351 GB Data without a copy: --------------------------------------------------------------- if !replicated: 1 local_disk 332 files 953.821 MB Osd 2 zyklop20-al 23 objects 179.557 GB --------------------------------------------------------------- Total 355 objects 180.489 GB
vos split
split a volume at a certain directory
Usage: vos splitvolume -id <volume name or ID> -newname <name of the new volume> -dirvnode <vnode number of directory where the volume should be split>
vos dump
dump a volume
Usage: vos dump -id <volume name or ID>
osd |
dump OSD files as normal files (include data) |
metadataonly |
dump only directories and OSD metadata |
vos create
creates a new volume
Usage: vos create -server <machine name> -partition <partition name> -name <volume name>
vos examine
show information about a volume
vos examine -id <volume name or ID>
#vos examine tn.testosd tn.testosd 536900068 RW 190365038 K On-line zyklop19.ifh.de /vicepa 354 files RWrite 536900068 ROnly 536900069 Backup 536900070 MaxQuota 200000000 K, osd policy 1 Creation Thu Jun 4 13:37:30 2009 Copy Thu Jun 4 13:37:30 2009 Backup Wed Jun 24 00:20:01 2009 Last Update Fri Nov 13 11:01:03 2009 26755260 accesses in the past day (i.e., vnode references) RWrite: 536900068 number of sites -> 1 server zyklop19.ifh.de partition /vicepa RW Site
vos listobjects
list all objects on a specified osd
vos listobjects -osd <osd or policy id> -volume
vos setfields
vos setfields: change volume info fields
Usage: vos setfields -id <volume name or ID>
Other Options
clearuse |
clear dayUse |
noauth |
don't authenticate |
verbose |
verbose |
encrypt |
encrypt commands |
noresolve |
don't resolve addresses |
localauth |
use server tickets |
vos wipecand
get a list of wipe candidates on OSDs
Usage: vos wipecand -server <machine names>
# vos wipecand -server zyklop19 processing zyklop19