Amanda-Users

Re: raw device ownership & permissions on SGI machine

2003-03-12 07:49:09
Subject: Re: raw device ownership & permissions on SGI machine
From: Harri Haataja <harri.haataja AT smilehouse DOT com>
To: "Stephen D. Lane" <drsteve AT nature.Berkeley DOT EDU>
Date: Wed, 12 Mar 2003 13:02:52 +0200
On Tue, Mar 11, 2003 at 03:35:44PM -0800, Stephen D. Lane wrote:
> Greetings.  I am using amanda to back up several clients, one of which
> is an SGI Origin workstation.  This client was recently rebuilt from
> scratch to IRIX 6.5.19m (yesterday, as a matter of fact :), and I
> don't know if the following "problem" was present prior to the rebuild
> (it was at 6.5.18m, after having been upgraded from 6.5.3m).  I do
> know that amanda was working fine.
> After I rebuilt the client, it had the following:
>    0 crw-------    1 root     sys         0,125 Mar 11 15:26 /hw/rdisk/root
> As this is the device amcheck complains about when I tell it I want to
> back up the root partition, I made the following changes:
>    0 crw-rw----    1 amanda   disk        0,125 Mar 11 15:26 /hw/rdisk/root
> This is how it was configured before the rebuild, and amcheck is
> perfectly happy with this.
> If I reboot the machine, however, the device goes back to:
>    0 crw-------    1 root     sys         0,125 Mar 11 15:26 /hw/rdisk/root
> 
> Is anyone familiar with this behavior in IRIX?  I am seriously contemplating
> a root cronjob...

I believe the /hw filesystem is created on the fly like /proc or a
devfs. Actually..

blades@azrael% uname
IRIX64
blades@azrael% mount | grep hw
/hw on /hw type hwgfs (rw)
blades@azrael% man -k hwgfs
hwgraph, hwgfs, hw (4)  - hardware graph and hardware graph file system

And from there, I find:

Since hwgfs is a pseudo-filesystem whose files don't actually use any
disk space, there is no persistent information associated with files
under /hw.  In particular, file attributes (mode, owner, group) are not
stored across reboots under hwgfs.  Rather, reasonable default are used
for all hwgfs special files.  These defaults can be changed in the
normal ways (i.e. with chmod(1), chown(1), chgrp(1)), but the changes
only last until the next time the system is rebooted.  In order to
supply the appearance of special file attributes that are persistent
across reboots, hwgfs uses the ioconfig(1m) utility, controlled by the
contents of the file /etc/ioperms.

Nice to know this. I have not used amanda and dump on Irix so I haven't
come across this.

-- 
I suggest that you refrain from posting in a forum such as this one,
in which you are clearly intellectually overmatched. Perhaps you
should find a debating companion that more closely reflects your natural
abilities, such as a rock.      -- Jake, in the Monastery

<Prev in Thread] Current Thread [Next in Thread>