Operating System - HP-UX
1833875 Members
2087 Online
110063 Solutions
New Discussion

/var/opt/omni directory full

 
SOLVED
Go to solution
Lai Nee Shyang_1
Frequent Advisor

/var/opt/omni directory full

Hi there,

I'm new to omniback and I'm having problem with this directory "/var/opt/omni" because it is nearly full. How can I clear some space?


Thanks
If it doesn't work, We'll make it work. If it works, We'll make it work better.
4 REPLIES 4
Karthik_2
Regular Advisor
Solution

Re: /var/opt/omni directory full

You have two options one is to clear up /var/opt/omni or extend the space in /var or /var/opt/omni depending on whether they are mounted on different file systems.

You can try clearing log files in /var/opt/omni/log .It may not release much space anyway.You can purge the old entries in omniback database using omnidb -purge option.
Then do a readascii and write ascii back to shrink the omnibd size .

If u have enough space I would recommend extending the filesystem.If /var/opt/omni is a directory it would be better to move it to a new file system.
create a new lvol .Mount it in a temp name and cpio the data under /var/opt/omni.

lvcreate -n lomni /dev/vgxx
lvextend -L 200 /dev/vgxx/lomni /dev/dsk/cxtxdx
newfs -F vxfs /dev/vgxx/rlomni
mkdir /tmp/omni
mount /dev/vg02/lvomni /tmp/omni
omnistat
/opt/omni/sbin/omnisv.sh stop
cd /var/opt/omni
find . -depth -print | cpio -pdumV /tmp/omni
mv /var/opt/omni /var/opt/omni.old
mkdir /var/opt/omni
update /etc/fstab
umount /dev/vg02/lvomni
mount /var/opt/omni
/opt/omni/sbin/omnisv.sh start
omnistat
run some query to database

Note :Verify that the file and directory permissions are appropriate.

Karthik...
Its ALL in the MATRIX
Tom Danzig
Honored Contributor

Re: /var/opt/omni directory full

Try purging the OmniBack database. These files can consume quite a bit of space unless managed regularly.
Brian Markus
Valued Contributor

Re: /var/opt/omni directory full

Try the following. The omnidb get's full rather quickly. You need to do maintance on it about once a month. These are the procedures:

Purging the Omniback database

UNIX
======
1. Calculate the size of the existing Omniback database, by running the
command:
omnidbutil -info
The amount of disk space can be determined by adding up the values in
the 'disk space' column.

2. Create an empty directory on a Mount Point that will accomodate at least
130% of the current size of the omniback database. For this discussion, I
will call this directory , which will include the full path to the
directory, ie, /tmp/omnidb

3. Run the command:
omnidb -strip
This will mark for removal any sessions for which the media has been
reused. When this completes-

4. Run the command:
omnidbutil -purge -detail -days 5
This will remove anything marked by the previous command. This will
remove all filenames for which there are no file versions. This remove any
Aborted Session, and failed Sessions, and Restore Sessions older than 5
days. This command will immediately return you back to the command prompt,
so you will need to periodically check the process list ('ps -ef | grep
omni') until there are no more 'psm' processes running.

5. Run the command:
omnidbutil -writeascii -cdb -mmdb
when this completes-

6. Run the command:
omnidbutil -readascii -cdb -mmdb



Hope this helps,

Brian
When a sys-admin say's maybe, they don't mean 'yes'!
Alexander M. Ermes
Honored Contributor

Re: /var/opt/omni directory full

Hi there.
Another option cold be to create a directory
on a disk with enough space and create a softlink, that points to this directory.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"