ERROR OCURRED

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, October 12, 2010

Bacula:tape Volume purging & deletion steps.

Posted on 9:10 PM by Unknown
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.
*
Read More
Posted in | No comments

Steps how to change VolStatus in Bacula through bonsole.

Posted on 9:07 PM by Unknown
In my example MediaId=4 or Volumename=000018L4 shows volstatus is Purged.


*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 |

SO their is the steps to change Purged to Append. Command is update.

*update
Update choice:
1: Volume parameters
2: Pool from resource
3: Slots from autochanger
Choose catalog item to update (1-3): 1
Parameters to modify:
1: Volume Status
2: Volume Retention Period
3: Volume Use Duration
4: Maximum Volume Jobs
5: Maximum Volume Files
6: Maximum Volume Bytes
7: Recycle Flag
8: Slot
9: InChanger Flag
10: Volume Files
11: Pool
12: Volume from Pool
13: All Volumes from Pool
14: Enabled
15: RecyclePool
16: Done
Select parameter to modify (1-16): 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 |
| 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 | 302,561,280 | 3 | 31,536,000 | 1 | 1 | 1 | LTO-3 | 2010-10-13 01:44:17 |
| 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 |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Enter MediaId or Volume name: 000018L4
Updating Volume "000018L4"
Current Volume status is: Purged
Possible Values are:
1: Append
2: Archive
3: Disabled
4: Full
5: Used
6: Cleaning
7: Recycle
8: Read-Only
Choose new Volume Status (1-8): 1
New Volume status is: Append
Parameters to modify:
1: Volume Status
2: Volume Retention Period
3: Volume Use Duration
4: Maximum Volume Jobs
5: Maximum Volume Files
6: Maximum Volume Bytes
7: Recycle Flag
8: Slot
9: InChanger Flag
10: Volume Files
11: Pool
12: Volume from Pool
13: All Volumes from Pool
14: Enabled
15: RecyclePool
16: Done
Select parameter to modify (1-16): 16
Selection terminated.
*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 | Append | 1 | 64,512 | 0 | 31,536,000 | 1 | 17 | 1 | LTO-3 | 0000-00-00 00:00:00 |
| 5 | 000012L4 | Append | 1 | 302,561,280 | 3 | 31,536,000 | 1 | 1 | 1 | LTO-3 | 2010-10-13 01:44:17 |
| 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




Enjoy....
Read More
Posted in | No comments

Monday, October 11, 2010

How to find which scsi device you have.

Posted on 8:49 PM by Unknown
Find out how to specify their control address (/dev/sg2 or /dev/sg4 ) on the Changer Device = Bacula ( my example)

1) check the command lssci if not found then install

#yum install lsscsi

#[root@inf1sysadm1 ~]# lsscsi -dg
[0:0:0:0] disk ATA WDC WD1600BEVT-7 11.0 /dev/sda [8:0] /dev/sg0[21:0]
[3:0:0:0] cd/dvd MATSHITA DVD+-RW UJ-875S D200 /dev/sr0 [11:0] /dev/sg1[21:1]


[root@inf1sysadm1 ~]# cat /proc/scsi/sg/
allow_dio def_reserved_size devices version
debug device_hdr device_strs
[root@inf1sysadm1 ~]# cat /proc/scsi/sg/device_hdr
host chan id lun type opens qdepth busy online
[root@inf1sysadm1 ~]# cat /proc/scsi/sg/devices
0 0 0 0 0 1 31 0 1
3 0 0 0 5 1 1 0 1
Read More
Posted in | No comments

Wednesday, October 6, 2010

response to SOA query was unsuccessful: solved

Posted on 11:42 PM by Unknown
check your zone file

[root@inf1sysadm1 data]# pwd
/var/named/data

# cat ind.raman.com.zone
$ORIGIN .
$TTL 3600 ; 1 hour
ind.raman.com IN SOA ns1.ind.raman.com. sysops.raman.com. (
2010106825 ; serial
3600 ; refresh (1 hour)
600 ; retry (10 minutes)
86400 ; expire (1 day)
3600 ; minimum (1 hour)
)
NS ns1.ind.raman.com.
$ORIGIN ind.raman.com.
ns1 A 127.0.0.1


match the SOA record to NS as well.. after re run
[root@inf1sysadm1 data]# nsupdate
> key dhcpupdate G***************==
> update add test.ind.raman.com 3600 IN A 10.131.11.10
> send

working fine.
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Popular Posts

  • No package 'lua5.1' found
    hecking for LUA51... no checking for LUA51... configure: error: Package requirements (lua5.1 >= 5.1) were not met: No package 'lua5.1...
  • response to SOA query was unsuccessful: solved
    check your zone file [root@inf1sysadm1 data]# pwd /var/named/data # cat ind.raman.com.zone $ORIGIN . $TTL 3600 ; 1 hour ind.raman.com IN SO...
  • can't locate your x11 installation Fedora
    While install Conky, system through this error. Solution:- You need to install X11 Software Dev Package. Login on system with root user ...
  • Qmail Installation & Configuration step by step
    Tested under CentOS 5.8  64bit machine. 1)Packges which i installed for Qmail. httpd-2.2.3-76 php-5.1.6-39 perl-5.8.8 -38 gcc-4.1.2 mysql-5....
  • Dell MD3200 SAS Cabling With Diagram
    I have 2 MD3200 with SAS Ports + 2 Power Edge720. Task to connect Both DAS with Both server and make sure Both server showing  all DAS Parti...
  • It is safe to clean windows prefetch folder and registry folder ?
     It is safe to clean windows prefetch folder and registry folder ? Will this boost Windows operating system capabilities ? Many of you hav...
  • Windows 7 & Windows 8 fail to start
    Windows 7 fail to boot, what should I do? Is Windows 7 failing to boot after you installed the loader or after you just installed a fresh ne...
  • Steps how to change VolStatus in Bacula through bonsole.
    In my example MediaId=4 or Volumename=000018L4 shows volstatus is Purged. *list volumes Pool: Default +---------+------------+-----------+--...
  • Adobe Photoshop CS5 Error 16 , Adobe Photoshop CS5 Error 7
    When you install Adobe Photoshop CS5 you might get some errors. In case you get one you will see a code and a little description. Is very im...
  • X connection to localhost:10.0 broken (explicit kill or server shutdown).
    Solution:- With Xhost, you can solve this issue.

Categories

  • Adobe
  • Players
  • Reviews
  • Windows

Blog Archive

  • ►  2013 (27)
    • ►  October (3)
    • ►  August (1)
    • ►  June (1)
    • ►  April (3)
    • ►  February (10)
    • ►  January (9)
  • ►  2012 (29)
    • ►  December (2)
    • ►  November (7)
    • ►  October (10)
    • ►  September (4)
    • ►  August (1)
    • ►  June (2)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2011 (36)
    • ►  December (3)
    • ►  November (3)
    • ►  October (1)
    • ►  September (5)
    • ►  August (4)
    • ►  May (2)
    • ►  April (4)
    • ►  March (5)
    • ►  February (2)
    • ►  January (7)
  • ▼  2010 (24)
    • ►  December (1)
    • ►  November (1)
    • ▼  October (4)
      • Bacula:tape Volume purging & deletion steps.
      • Steps how to change VolStatus in Bacula through bo...
      • How to find which scsi device you have.
      • response to SOA query was unsuccessful: solved
    • ►  August (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (2)
    • ►  February (5)
    • ►  January (8)
  • ►  2009 (18)
    • ►  December (6)
    • ►  November (3)
    • ►  August (1)
    • ►  July (2)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2008 (16)
    • ►  December (1)
    • ►  October (1)
    • ►  August (1)
    • ►  July (5)
    • ►  April (2)
    • ►  February (1)
    • ►  January (5)
  • ►  2007 (4)
    • ►  July (3)
    • ►  June (1)
Powered by Blogger.

About Me

Unknown
View my complete profile