HP Large Objects System Management Manual

HP Large Objects System Management Manual – 543599.001
The Guardian Large Object environment is now ready to use.
2.4 Creating Buddy Groups, Sets and Spaces
Use the Large Object sample programs to establish Buddy Groups, Sets and Spaces.
These are placed under bin directory.
1. All samples programs require command line parameters - for usage run the
program without any parameters, for example:
createbgroup
2. Create one or more Buddy Groups, for example:
createbgroup grp01
createbgroup grp02… and so on.
3. Optionally override any parameters for the Buddy Group, for example:
setparm grp01 103 all 1000 (for further details see user guide)
4. Create Buddy Sets on multiple disks, for example:
5. createbset grp01 \$data01
createbset grp01 \$data02… and so on.
6. Optionally create more Buddy Spaces for individual powers, for example:
createbsp grp01 \$data01 bd01aa01 20 1 (create an additional Buddy Space for
power of two 20)
7. For each Buddy Group, run the Buddy Monitor program in a separate OSS session
for example:
buddymon grp01
buddymon grp02 (consider using SCF to make this a persistent Guardian process)
8. The Large Object environment is now ready for objects to be added, retrieved and
deleted.
2.5 Using the Test Program
You can test your newly created Large Object environment by using the supplied test
program to add, retrieve and delete objects.
1. Type buddytest without any command line parameters and see the usage for the
sample driver program
2. Add an object, for example to store the complete contents of a file called object1
which has a length of 721920 bytes:
buddytest put grp01 0 object1 0 721920
3. The previous put returns an objectId with the completion string:
Put object returned: 0 Object Id: -3925731500183519232
4. Retrieve an object, for example, to retrieve the previously stored object and create
a file called object2:
buddytest get grp01 -3925731500183519232 object2 0 0
5. Delete an object, for example, to delete the previously stored object:
buddytest delete grp01 -3925731500183519232
6. Reserve space for a very large object, for example, to reserve space for the
contents of a file called object3:
buddytest allocate grp01 object3
7. The previous allocate returns an objectId with the completion string:
Allocate object returned: 0 Object Id: -3931360999717732352
8. Store the first part of the object, for example, to store the first 10 MB of the object
content:
buddytest put grp01 -3931360999717732352 object3 0 10000000
Page 8 of 37