Select the Pool (1-2): 1
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 2 | test2 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 0 | 0 | LTO-3 | 0000-00-00 00:00:00 |
| 3 | 000016L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 22 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 4 | 000018L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 0 | 0 | LTO-3 | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
Enter MediaId or Volume name: test2
Volume "test2" has VolStatus Append. It must be Purged or Recycled before relabeling.
Now in this exapmle, steps how to delete volume test2
1st purged the volume name like this
*purge
This command is can be DANGEROUS!!!
It purges (deletes) all Files from a Job,
JobId, Client or Volume; or it purges (deletes)
all Jobs from a Client or Volume without regard
for retention periods. Normally you should use the
PRUNE command, which respects retention periods.
You have the following choices:
1: files
2: jobs
3: volume
Choose item to purge (1-3):3
Defined Pools:
1: Default
2: Scratch
Select the Pool (1-2):1
then type volume name or Media Id i.e test2 or 2
now in list volumes you can see test2 makred ad purged.
*list volumes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Pool: Default
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 2 | test2 | Purged | 1 | 64,512 | 0 | 31,536,000 | 1 | 0 | 0 | LTO-3 | 0000-00-00 00:00:00 |
Pool: Scratch
No results to list.
Now time to delete test2 volume
*delete test2
In general it is not a good idea to delete either a
Pool or a Volume since they may contain data.
You have the following choices:
1: volume
2: pool
3: jobid
Choose catalog item to delete (1-3): 1
Defined Pools:
1: Default
2: Scratch
Select the Pool (1-2): 1
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 2 | test2 | Purged | 1 | 64,512 | 0 | 31,536,000 | 1 | 0 | 0 | LTO-3 | 0000-00-00 00:00:00 |
Enter MediaId or Volume name: test2
This command will delete volume test2
and all Jobs saved on that volume from the Catalog
Are you sure you want to delete Volume "test2"? (yes/no): yes
Deleted ..now you can see in volumes test2 permantly deleted.
*list volumes
Pool: Default
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | 000014L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 5 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 3 | 000016L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 22 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 4 | 000018L4 | Purged | 1 | 64,512 | 0 | 31,536,000 | 1 | 17 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 5 | 000012L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 1 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 6 | 000011L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 8 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 7 | 000013L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 9 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 8 | 000015L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 10 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 9 | 000020L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 16 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 10 | 000019L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 20 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 11 | 000017L4 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 21 | 1 | LTO-3 | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: Scratch
No results to list.
*
Tuesday, October 12, 2010
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment