Re: System backup

From: Beardy (beardy_at_beardy.net)
Date: 11/29/04


Date: Mon, 29 Nov 2004 20:00:05 +0000

Michael Tosch wrote:
> In article <41ab2a11$0$2108$626a14ce@news.free.fr>, "Philippe Mary" <philippe.mary@pasdenvoi.fr> writes:
>
>>Thank you for your answer.
>>
>>I checked what you told but all seems to be correct
>>
>>Filesystem kbytes used avail capacity Mounted on
>>/dev/dsk/c0t0d0s3 2206755 950586 1212034 44% /var
>>
>>Part Tag Flag Cylinders Size Blocks
>> 0 root wm 2127 - 3119 1.37GB (993/0/0) 2868777
>> 1 swap wu 0 - 2126 2.93GB (2127/0/0)
>>6144903
>> 2 backup wm 0 - 24619 33.92GB (24620/0/0) 71127180
>> 3 var wm 3120 - 4679 2.15GB (1560/0/0) 4506840
>> 4 unassigned wm 0 0 (0/0/0)
>>0
>> 5 unassigned wm 4680 - 6097 1.95GB (1418/0/0) 4096602
>> 6 usr wm 6098 - 8012 2.64GB (1915/0/0) 5532435
>> 7 unassigned wm 8013 - 8069 80.41MB (57/0/0) 164673
>>
>>/dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /var ufs 1
>> no -
>>
>
>
> Yes, this looks correct.
> And the blocks stated in the warning message are *far* beyond the disk
> capacity.
>
> If fsck -n does not show severe errors like "DUPs", then maybe Sun is
> right, and open files really can show these messages.
>
> fuser -C /
> fuser -C /var
> fuser -C /usr

Err... -C is cased incorrectly. Should be -c

> should show the processes that hold files open.
>
> The command
> init S
> or
> init 0
> should be enough to kill the process with open files.

Michael, the OP said "with Solaris prior 8 on servers which
cannot be stopped easily". I suspect that the init
suggestions above might stop the servers "easily" ;-)

> If there are still open files, you can manually kill them
> (do an echo $$ first to not kill your shell; instead, cd to
> another file system).

fuser -ck may be the OP's friend. I still believe that fuser
should have really been "fu". The options would have been
much more entertaining ;-)

> You should also watch out for known UFS problems, e.g.
> at http://sunsolve.sun.com

I hope that the maintainers of sunsolve.sun.com don't suffer
too many UFS problems ;-)



Relevant Pages

  • Re: System backup
    ... and open files really can show these messages. ... fuser -C /var ... If there are still open files, you can manually kill them ...
    (comp.sys.sun.admin)
  • Re: need help on shell scripting
    ... Ed Morton wrote: ... > Michael Tosch wrote: ... You also need to init av to avoid a blank in that case: ...
    (comp.unix.shell)