Normally Shareplex is able to reclaim space in rim directory by removing unwanted queue files. To override this for queue files belonging to Post queue, one can manually run a command named trim in qview after shutting down Shareplex. The command is described in detail in Shareplex Admin Guide Chapter titled "Shareplex Utilities" section "Viewing and removing queue files with qview". It is easy to run the command (as listed in documentation) if there are a small # of named Post queue involved. However, the session becomes quite repetitive and cumbersome as the # of queues to be dealt with increases as the following session shows:
Assuming that we have named Post queues q1, q2, q3, q4, ...... and we want to run "trim p" on all such queues. This is what a typical qview session look like:
qview -i
qview>qsetup
qview>list
The following queues exist:
q1
subqueues range from ......
WRITER .....
READER .....
q2
subqueues range from ......
WRITER .....
READER .....
q3
subqueues range from ......
WRITER .....
READER .....
.
.
and so on
qview>trim p
Queue q1 (y/n) <n>? y
qview>trim p
Queue q1 (y/n) <n>? n
Queue q2 (y/n) <n>? y
qview>trim p
Queue q1 (y/n) <n>? n
Queue q2 (y/n) <n>? n
Queue q3 (y/n) <n>? y
qview>trim p
Queue q1 (y/n) <n>? n
Queue q2 (y/n) <n>? n
Queue q3 (y/n) <n>? n
Queue q4 (y/n) <n>? y
qview>trim p
Queue q1 (y/n) <n>? n
Queue q2 (y/n) <n>? n
Queue q3 (y/n) <n>? n
Queue q4 (y/n) <n>? n
Queue q5 (y/n) <n>? y
.
.
.
and so on. As you can see, it will take a total of 15 such responses from the user if one wer
The trim command command if issued as "trim p" loops you through all earlier queues before prompting for the later ones to be trimmed.
There is another way to trim a named Post queue that will shorten this interaction in qview considerably. You need to specify the name of the Post queue you wish to trim instead of specifying the character "p" for the Post queue. The syntax is "trim <queuename>". For example, in the situation as above, you need to do the following:
qview -i
qview>qsetup
qview>list
The following queues exist:
q1
subqueues range from ......
WRITER .....
READER .....
q2
subqueues range from ......
WRITER .....
READER .....
q3
subqueues range from ......
WRITER .....
READER .....
.
.
and so on
qview>trim q1
qview>trim q2
qview>trim q3
qview>trim q4
qview>trim q5
.
.
.
and so on. Thus if there are 5 named queues, the # of such iterations is only 5, and so on. The suitability of a particular option depends on the # of Post queues to be trimmed.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center