Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
e14e0535
Commit
e14e0535
authored
11 years ago
by
Giuseppe Lo Presti
Browse files
Options
Downloads
Patches
Plain Diff
Replaced -d|--detailed with -x|--extra to be homogeneous with other
admin tools
parent
99d3b3f0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hsmtools/repack
+4
-4
4 additions, 4 deletions
hsmtools/repack
hsmtools/repack.man
+8
-8
8 additions, 8 deletions
hsmtools/repack.man
with
12 additions
and
12 deletions
hsmtools/repack
+
4
−
4
View file @
e14e0535
...
...
@@ -41,8 +41,8 @@ def usage(exitCode):
print
'
repack --bulkvolumeid <filename> -o serviceclass
'
print
'
repack -R <VID>[:<VID>[:...]]
'
print
'
repack --bulkdelete <filename>
'
print
'
repack -s|--statusAll [-
d
|--
detailed
]
'
print
'
repack -S <VID>:<VID>[:...]] [-
d
|--
detailed
]
'
print
'
repack -s|--statusAll [-
x
|--
extra
]
'
print
'
repack -S <VID>:<VID>[:...]] [-
x
|--
extra
]
'
print
'
repack -e <VID>[:<VID>[:...]] [-n <nbErrorsDisplayed>]
'
sys
.
exit
(
exitCode
)
...
...
@@ -52,7 +52,7 @@ def parseInputFile(fileName):
# first parse the options
try
:
options
,
arguments
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'
V:o:s
d
S:R:e:hn:v
'
,
[
'
volumeid=
'
,
'
bulkvolumeid=
'
,
'
svcclass=
'
,
'
statusAll
'
,
'
detailed
'
,
'
status=
'
,
'
delete=
'
,
'
bulkdelete=
'
,
'
errors=
'
,
'
help
'
,
'
nbErrorsDisplayed=
'
,
'
verbose
'
])
options
,
arguments
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'
V:o:s
x
S:R:e:hn:v
'
,
[
'
volumeid=
'
,
'
bulkvolumeid=
'
,
'
svcclass=
'
,
'
statusAll
'
,
'
extra
'
,
'
status=
'
,
'
delete=
'
,
'
bulkdelete=
'
,
'
errors=
'
,
'
help
'
,
'
nbErrorsDisplayed=
'
,
'
verbose
'
])
except
Exception
,
parsingException
:
print
parsingException
usage
(
1
)
...
...
@@ -76,7 +76,7 @@ for f, v in options:
vflag
=
True
elif
f
==
'
-s
'
or
f
==
'
--statusAll
'
:
sflag
=
True
elif
f
==
'
-
d
'
or
f
==
'
--
detailed
'
:
elif
f
==
'
-
x
'
or
f
==
'
--
extra
'
:
detailFlag
=
True
elif
f
==
'
-S
'
or
f
==
'
--status
'
:
vids
.
extend
(
v
.
split
(
'
:
'
))
...
...
This diff is collapsed.
Click to expand it.
hsmtools/repack.man
+
8
−
8
View file @
e14e0535
...
...
@@ -41,10 +41,10 @@ repack \- Move files from tape(s) to other tape destination
.BI \-\-bulkdelete\ <file>
.br
.B repack
.BI \-s|--statusAll\ [-
d
|--
detailed
]
.BI \-s|--statusAll\ [-
x
|--
extra
]
.br
.B repack
.BI \-S\ <VID>[:<VID>[...]]\ [-
d
|--
detailed
]
.BI \-S\ <VID>[:<VID>[...]]\ [-
x
|--
extra
]
.br
.B repack
.BI \-e\ <VID>[:<VID>[...]]\ [\-n\ <nbErrorsDisplayed>]
...
...
@@ -101,9 +101,9 @@ from the database and are not shown any longer.
shows the status of ongoing and finished repacks for the given tape(s). The tape(s) is(are) given by their
VID and the list is colon separated. As opposed to the \-s option, here the entire history is shown.
.TP
.BI \-
d
,\ \-\-
detailed
shows the status of ongoing and finished repacks as requested with the -s or -S options, including
detailed
figures for the count of ongoing or failed recalls and migrations, and a completion percentage.
.BI \-
x
,\ \-\-
extra
shows the status of ongoing and finished repacks as requested with the -s or -S options, including
extra
detailed
figures for the count of ongoing or failed recalls and migrations, and a completion percentage.
.TP
.BI \-e,\ \-\-errors
displays the errors that occured during the repack of a given tape, file by file. By default, the number of
...
...
@@ -134,7 +134,7 @@ SubmitTime RepackTime User Machine
---------------------------------------------------------------------------------------------------------------------
11-Jun-13 19:29 - - TOTAL 2 5 6.22KiB FINISHED
> repack -s
-d
> repack -s
x
=====================================================================================================================================================================
SubmitTime RepackTime User Machine Vid Total Size toRecall toMigr Failed Migrated Compl% Status
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
@@ -143,7 +143,7 @@ SubmitTime RepackTime User Machine
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
11-Jun-13 19:29 - - TOTAL 2 5 6.22KiB 0 0 0 5 100% FINISHED
> repack -S V21002 -
d
> repack -S V21002 -
x
=====================================================================================================================================================================
SubmitTime RepackTime User Machine Vid Total Size toRecall toMigr Failed Migrated Compl% Status
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
@@ -167,7 +167,7 @@ SubmitTime RepackTime User Machine
11-Jun-13 17:43 1mn15s itglp@CERN.CH lxc2dev2.cern.ch V21003 4 3.29KiB ABORTING
---------------------------------------------------------------------------------------------------------------------
> repack -S V21003 -
d
> repack -S V21003 -
x
=====================================================================================================================================================================
SubmitTime RepackTime User Machine Vid Total Size toRecall toMigr Failed Migrated Compl% Status
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment