OnDemand User Group
Support Forums => MP Server => Topic started by: Michel de Kraker on January 27, 2011, 06:53:06 AM
-
Hi All,
I want to store multiple files back into TSM with arsadmin store command. (aix system)
I want to retrieve all objects from the tsm server and store them in a new SSAM server.
We are talking about 24 million objects.
The syntax is:
arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx FILE1 FILE2 FILE3
Suppose i want to store 1500 objects i can do this with a for loop:
for i in `cat /tmp/objects`
do
arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx $i
done
Is there another "more efficient" way to do this? With the example above arsadmin store is executed 1500 times. This seems not efficient.
Perhaps there is a way to do something like the following:
arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx `cat /tmp/objects`
Thx for any hints.
Michel.
-
Hi All,
anybody?
Thx.
Michel.
-
Hello Michel,
Well, it could be possible that this method works. You need to test it with a few files and check that all pointers are correctly point to the correct document.
Otherwise for your "script" problem
for i in `cat /tmp/objects`
do
arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx $i
done
or
arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx `cat /tmp/objects`
I would suggest the following:
cat /tmp/objects | xargs arsadmin store -d /migrate -g P024 -h archive -n 3-0 -p xxxxx -u xxxxx
So it will fill as much as possible the command line with files without running into the unfamous "Too many files" shell error.
Cheers,
Alessandro
-
Hi Alessandro Perucchi,
If we are in need to retrieve documents using arsadmin retrieve command my questions are:
1. Can we retrieve whole documents under one application group at a time because, As we need to specify the names of documents in the storage (example:1FAAA) in the arsadmin retrieve command is a big challenge for us ,as single application group may contains So many documents.
2. Even if we try with linux shell script as our environment is linux but its not easy to run arsadmin command that many times example 1500 times is a performance affected issue.
3.And adding to this we want to retrieve all the filenames (1FAA) under one application group from querying the database is that appropriate way or else any alternate is suggested by you Sir..?