Getting the following error "Logbackup failed - function open tape device /informix/backup/logs/ failed code -1 errno 0" while perfrorming the ontape in 11.7
Posted in 2011
Topics: Backup & Restore, Storage & Space Management, Logging & Checkpoints, Versions, Editions & End-of-Life
Hi ,
Any one could you please let me help me to solve this issue
when i take the ontape backup i am getting the following error
message .
informix@HR-Server:~> ontape -a
Performing automatic backup of logical logs.
The primary group for user informix must be group informix.
Logbackup failed - function open tape device /informix/backup/logs/
failed code -1 errno 0
I also checked the permissions of the file it looks fine
informix@HR-Server:/informix> ll
total 8
drwxrw-r-x 4 informix informix 4096 2011-04-30 11:16 backup
drwxrwx--- 2 informix informix 4096 2011-04-30 11:44 chunks
informix@HR-Server:/informix> cd backup
informix@HR-Server:/informix/backup> ll
total 8
drwxrwx--- 2 informix informix 4096 2011-05-10 05:26 archives
drwxrwx--- 2 informix informix 4096 2011-04-30 11:16 logs
informix@HR-Server:/opt/IBM/informix> onstat -
IBM Informix Dynamic Server Version 11.70.UC2E -- On-Line -- Up
00:00:13 -- 144156 Kbytes
Thanks in advance .
On May 23, 6:40 am, karthik rajan <karthikrajan1...@gmail.com> wrote:
> Hi ,
>
> Any one could you please let me help me to solve this issue
> when i take the ontape backup i am getting the following error
> message .
>
> informix@HR-Server:~> ontape -a
> Performing automatic backup of logical logs.
> The primary group for user informix must be group informix.
> Logbackup failed - function open tape device /informix/backup/logs/
> failed code -1 errno 0
>
> I also checked the permissions of the file it looks fine
>
> informix@HR-Server:/informix> ll
> total 8
> drwxrw-r-x 4 informix informix 4096 2011-04-30 11:16 backup
> drwxrwx--- 2 informix informix 4096 2011-04-30 11:44 chunks
> informix@HR-Server:/informix> cd backup
> informix@HR-Server:/informix/backup> ll
> total 8
> drwxrwx--- 2 informix informix 4096 2011-05-10 05:26 archives
> drwxrwx--- 2 informix informix 4096 2011-04-30 11:16 logs
>
> informix@HR-Server:/opt/IBM/informix> onstat -
>
> IBM Informix Dynamic Server Version 11.70.UC2E -- On-Line -- Up
> 00:00:13 -- 144156 Kbytes>
> Thanks in advance .
Well that error does seem to come from the code where the server is
getting the group id of the directory structure with the group id of
the entry for informix from the password file. So while user informix
is probably in group informix, is group informix it's primary group,
or the group id from the password file?
Jacques Renaut
IBM Informix Advanced Support
APD team
On May 23, 8:22 pm, jrenaut <jpren...@yahoo.com> wrote:
> On May 23, 6:40 am, karthik rajan <karthikrajan1...@gmail.com> wrote:
>
>
>
>
>
> > Hi ,
>
> > Any one could you please let me help me to solve this issue
> > when i take the ontape backup i am getting the following error
> > message .
>
> > informix@HR-Server:~> ontape -a
> > Performing automatic backup of logical logs.
> > The primary group for user informix must be group informix.
> > Logbackup failed - function open tape device /informix/backup/logs/
> > failed code -1 errno 0
>
> > I also checked the permissions of the file it looks fine
>
> > informix@HR-Server:/informix> ll
> > total 8
> > drwxrw-r-x 4 informix informix 4096 2011-04-30 11:16 backup
> > drwxrwx--- 2 informix informix 4096 2011-04-30 11:44 chunks
> > informix@HR-Server:/informix> cd backup
> > informix@HR-Server:/informix/backup> ll
> > total 8
> > drwxrwx--- 2 informix informix 4096 2011-05-10 05:26 archives
> > drwxrwx--- 2 informix informix 4096 2011-04-30 11:16 logs
>
> > informix@HR-Server:/opt/IBM/informix> onstat -
>
> > IBM Informix Dynamic Server Version 11.70.UC2E -- On-Line -- Up
> > 00:00:13 -- 144156 Kbytes>
> > Thanks in advance .
>
> Well that error does seem to come from the code where the server is
> getting the group id of the directory structure with the group id of
> the entry for informix from the password file. So while user informix
> is probably in group informix, is group informix it's primary group,
> or the group id from the password file?
>
> Jacques Renaut
> IBM Informix Advanced Support
> APD team- Hide quoted text -
>
> - Show quoted text -
Hi Renaut,
Thanks for the reply
Could you please clear me how to solve this issue still i am not
clear.
Regards,
Karthik
When logged in as informix what does "id" return? It should return something like : uid=301(informix) gid=101(informix) groups=52(st) i.e. gid is the "primary group" If it isn't you need get that sorted :o)
On May 23, 10:54 pm, karthik rajan <karthikrajan1...@gmail.com> wrote:
> On May 23, 8:22 pm, jrenaut <jpren...@yahoo.com> wrote:
>
>
>
> > On May 23, 6:40 am, karthik rajan <karthikrajan1...@gmail.com> wrote:
>
> > > Hi ,
>
> > > Any one could you please let me help me to solve this issue
> > > when i take the ontape backup i am getting the following error
> > > message .
>
> > > informix@HR-Server:~> ontape -a
> > > Performing automatic backup of logical logs.
> > > The primary group for user informix must be group informix.
> > > Logbackup failed - function open tape device /informix/backup/logs/
> > > failed code -1 errno 0
>
> > > I also checked the permissions of the file it looks fine
>
> > > informix@HR-Server:/informix> ll
> > > total 8
> > > drwxrw-r-x 4 informix informix 4096 2011-04-30 11:16 backup
> > > drwxrwx--- 2 informix informix 4096 2011-04-30 11:44 chunks
> > > informix@HR-Server:/informix> cd backup
> > > informix@HR-Server:/informix/backup> ll
> > > total 8
> > > drwxrwx--- 2 informix informix 4096 2011-05-10 05:26 archives
> > > drwxrwx--- 2 informix informix 4096 2011-04-30 11:16 logs
>
> > > informix@HR-Server:/opt/IBM/informix> onstat -
>
> > > IBM Informix Dynamic Server Version 11.70.UC2E -- On-Line -- Up
> > > 00:00:13 -- 144156 Kbytes>
> > > Thanks in advance .
>
> > Well that error does seem to come from the code where the server is
> > getting the group id of the directory structure with the group id of
> > the entry for informix from the password file. So while user informix
> > is probably in group informix, is group informix it's primary group,
> > or the group id from the password file?
>
> > Jacques Renaut
> > IBM Informix Advanced Support
> > APD team- Hide quoted text -
>
> > - Show quoted text -
>
> Hi Renaut,
> Thanks for the reply
> Could you please clear me how to solve this issue still i am not
> clear.
>
> Regards,
> Karthik
Ok here''s some examples from my unix workstation.
If I grep user informix out of the /etc/passwd file I get the
following:
informix:x:200:102::/export/home/informix:/bin/ksh
So informix userid is 200, and it's primary groupid is 102. So, from
what I said in my previous post, groupid 102 has to then be group
informix. So here would be an example of some /etc/group output that
would be incorrect.
/etc/group:
tech::102:
informix::103:informix
So in the above example, user informix's primary group is tech, but it
then also in group informix.
So to fix this, so that user informix's primary group was informix,
you would then need to modify /etc/passwd file group id and replace
102 with 103, and if you still needed to have user informix in group
tech, add informix into the tech group line of the /etc/group file.
Jacques Renaut
IBM Informix Advanced Support
APD Team