logging problem in Solaris7

logging problem in Solaris7

Post by ra.. » Tue, 12 Sep 2000 21:59:22



Hi,
    Solaris7 by default provides filesystem logging option. I mount a
filesystem with "-o logging" option and then crash the filesystem. For
crashing, while a copy of a directory is going on to the filesystem I
power off the machine. Next time i am able to mount the same filesystem
without having to do an fsck.
    But the same does not happen if i mount the filesystem with mount
(2) system call with the flag MNTOPT_LOGGING. Sample code is below

--------------Ex code ---------------
struct ufs_args ufs_mount;
ufs_mount.flags = UFSMNT_LARGEFILES|UFSMNT_LOGGING;
length = sizeof(ufs_mount);

mount(dev[i],mntpoint[i],MS_DATA,filesys,(char *)&ufs_mount,length);

-----------------------------------------

     I could avoid this by following the below steps:
1. mount the required filesystem with mount(1) command
           mount -o logging /dev/dsk/c1t5d0s0 /mnt
2. Do some activity on it. ex cp,rm and then unmount.
3. Now use the mount(2)system call and mount the filesystem(above prog).
     After following these steps even if the filesystem crashed it can
be mounted next time with the mount(2) system call without an fsck(1).

     I have also observed that a filesystem mounted using mount(2) call
very frequently gives a "ufs log error , errno = 5" and needs an fsck
after  very few crashes.

     I have tried this on both 32 & 64 bit Solaris7.

thanks in advance,
rakesh.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

logging problem in Solaris7

Post by Andrew Gabri » Wed, 13 Sep 2000 04:44:12




Quote:>Hi,
>    Solaris7 by default provides filesystem logging option. I mount a
>filesystem with "-o logging" option and then crash the filesystem. For
>crashing, while a copy of a directory is going on to the filesystem I
>power off the machine. Next time i am able to mount the same filesystem
>without having to do an fsck.
>    But the same does not happen if i mount the filesystem with mount
>(2) system call with the flag MNTOPT_LOGGING.

Having done this, issue the mount command (or look in /etc/mnttab)
and see if filesystem really is mounted with logging enabled.

--
Andrew Gabriel
Consultant Software Engineer

 
 
 

logging problem in Solaris7

Post by ra.. » Wed, 13 Sep 2000 16:53:38






> >Hi,
> >    Solaris7 by default provides filesystem logging option. I mount a
> >filesystem with "-o logging" option and then crash the filesystem.
For
> >crashing, while a copy of a directory is going on to the filesystem I
> >power off the machine. Next time i am able to mount the same
filesystem
> >without having to do an fsck.
> >    But the same does not happen if i mount the filesystem with mount
> >(2) system call with the flag MNTOPT_LOGGING.

> Having done this, issue the mount command (or look in /etc/mnttab)
> and see if filesystem really is mounted with logging enabled.

> --
> Andrew Gabriel
> Consultant Software Engineer

The entry to the /etc/mnttab is given by my program through the mount
(2) call. so what ever option is have given is only reflected in
/etc/mnttab

thanks,
rakesh

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. Need HELP to Log User Log-ins form the internet

Hi,

I've setup a FreeBSD 4.1.1-STABLE box to connect a network to the internet
with natd and ipfw firewall.
I've also setup the FreeBSD box to let teleworkers log in with FTP and
telnet.

Now I would like to log FTP and telnet Log-in's from teleworkers who connect
to the machine from the internet.
I woul like to see the time and IP numer from which users Log-in.

I have looked at the /var/log/messages file but this only shows SU Login's.

All help is greatly appriciated!

Luke

2. Connecting Linux to NT Server or visa versa

3. Logging problem in Solaris7

4. Sockets question - TIME_WAIT/CLOSE_WAIT and Denial Of Service

5. solaris7: ufs logging goes bezerk

6. Secure FTP questions

7. Solaris7 pam logging

8. not so good performance of 2.5.52 on TIO bench

9. Logging anon ftp on Solaris7

10. supraexpress modems (28.8) problems w/dial-ins

11. Netscape plug-ins problem

12. Problems with dialing out when dial-ins are enabled

13. Netscape 4.51 and plug-ins problem