Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
castor
CASTOR
Commits
578bccff
Commit
578bccff
authored
Nov 01, 2010
by
Eric Cano
Browse files
Added more environment{srvclass}
parent
8dbdeb38
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/tapegateway_release_tests/CastorTapeTests.pm
View file @
578bccff
...
...
@@ -394,7 +394,7 @@ sub cleanup_migrated ()
for
(
my
$i
=
0
;
$i
<
scalar
(
@remote_files
);
$i
++
)
{
my
%f
=
%
{
$remote_files
[
$i
]};
if
(
$f
{
type
}
eq
"
file
"
&&
$f
{
status
}
eq
"
migrated
"
)
{
`
su
$environment
{username} -c
\
"STAGE_SVCCLASS=
dev
stager_rm -M
$f
{name}
\
"
`;
`
su
$environment
{username} -c
\
"STAGE_SVCCLASS=
$environment
{svcclass}
stager_rm -M
$f
{name}
\
"
`;
$remote_files
[
$i
]
->
{
status
}
=
"
invalidation requested
";
print
"
t=
"
.
elapsed_time
()
.
"
s. Removed
$f
{name} (was migrated) from stager.
\n
";
}
...
...
@@ -1348,7 +1348,7 @@ sub reinstall_stager_db()
`
nslistclass | grep NAME | awk '{print
\
$2}' | xargs -i enterFileClass --Name {} --GetFromCns
`;
`
enterSvcClass --Name default --DiskPools default --DefaultFileSize 10485760 --FailJobsWhenNoSpace yes --NbDrives 1 --TapePool stager_dev03 --MigratorPolicy defaultMigrationPolicy --StreamPolicy streamPolicyAlwaysReturning1
`;
`
enterSvcClass --Name
dev
--DiskPools extra --DefaultFileSize 10485760 --FailJobsWhenNoSpace yes
`;
`
enterSvcClass --Name
$environment
{svcclass}
--DiskPools extra --DefaultFileSize 10485760 --FailJobsWhenNoSpace yes
`;
`
enterSvcClass --Name diskonly --DiskPools extra --ForcedFileClass temp --DefaultFileSize 10485760 --Disk1Behavior yes --FailJobsWhenNoSpace yes
`;
`
moveDiskServer default
$diskServers
[0]
`;
...
...
@@ -1356,13 +1356,13 @@ sub reinstall_stager_db()
`
rmAdminNode -r -R -n
$diskServers
[0]
`;
`
rmAdminNode -r -R -n
$diskServers
[1]
`;
# Add a tape-pool to
dev
service-class
# Add a tape-pool to
$environment{svcclass}
service-class
my
$tapePool
=
get_environment
('
tapepool
');
`
modifySvcClass --Name
dev
--AddTapePool
$tapePool
--MigratorPolicy defaultMigrationPolicy --StreamPolicy streamPolicyAlwaysReturning1
`;
`
modifySvcClass --Name
$environment
{svcclass}
--AddTapePool
$tapePool
--MigratorPolicy defaultMigrationPolicy --StreamPolicy streamPolicyAlwaysReturning1
`;
# Set the number of drives on the default and
dev
service-classes to desired number for each
# Set the number of drives on the default and
$environment{svcclass}
service-classes to desired number for each
`
modifySvcClass --Name default --NbDrives 1
`;
`
modifySvcClass --Name
dev
--NbDrives 2
`;
`
modifySvcClass --Name
$environment
{svcclass}
--NbDrives 2
`;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment