[OpenAFS-devel] Read-only file system

Erik Osterman e@osterman.com
Sun, 11 Mar 2007 13:11:21 -0700


This is a multi-part message in MIME format.
--------------090607000307080807080005
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I suspect it's something very fundamental that I don't understand.

/*Rule 2:* Follow the Read-only Path When Possible /

/If a mount point resides in a read-only volume and the volume that it 
references is replicated, the Cache Manager attempts to access a 
read-only copy of the volume; if the referenced volume is not 
replicated, the Cache Manager accesses the read/write copy. The Cache 
Manager is thus said to prefer a //read-only path through the filespace, 
accessing read-only volumes when they are available./


Does this mean that since I now have RO volumes, when I go into my home 
directory (the home volume mounted to /afs/ourcell/home), that it finds 
the RO replicated copy on our other server (donjulio) and since that's 
where I'm accessing it, that if I try to write to it I will get 
"Read-Only filesystem"? Surely, this can't be!

Best,

Erik Osterman



Erik Osterman wrote:
> Spent the better part of the day yesterday configuring replication. I 
> felt like I overcame the learning curve; OpenAFS was beginning to make 
> sense. Last night, everything was running just fine, by that I mean, I 
> had several RW volumes replicated to 2 different hosts. I could read 
> and write just fine on everything. I woke up today, and now it's 
> complaining "Read-only file system" every time to try to make any 
> modifications. I figured something must have flipped the RW partition 
> into a RO mode.
>
> This is happening to all my volumes, but I'll just refer to my "home" 
> volume. We have just a handful of users, so all users are just in home.
>
> vos listvldb jwalker
> home
>    RWrite: 536870918     ROnly: 536870919
>    number of sites -> 2
>       server jwalker partition /vicepa RW Site
>       server donjulio partition /vicepa RO Site
>
> vos listvol jwalker
> Total number of volumes on server jwalker partition /vicepa: 8
> home                              536870918 RW    5039076 K On-line
>
> vos examine home
> home                              536870918 RW    5039076 K  On-line
>    jwalker /vicepa
>    RWrite  536870918 ROnly  536870919 Backup          0
>    MaxQuota          0 K
>    Creation    Sat Mar 10 15:37:36 2007
>    Copy        Sat Mar 10 15:37:36 2007
>    Backup      Never
>    Last Update Sun Mar 11 04:00:33 2007
>    47061 accesses in the past day (i.e., vnode references)
>
>    RWrite: 536870918     ROnly: 536870919
>    number of sites -> 2
>       server jwalker partition /vicepa RW Site
>       server donjulio partition /vicepa RO Site
>
>
> What would cause this unexpected behavior?
>
> Dead in the water,
>
> Erik Osterman
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel


--------------090607000307080807080005
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I suspect it's something very fundamental that I don't understand. <br>
<br>
<i><b>Rule 2:</b> Follow the Read-only Path When Possible </i>
<p><i>If a mount point resides in a read-only volume and the volume
that it references is replicated, the Cache Manager attempts to access
a read-only copy of the volume; if the referenced volume is not
replicated, the Cache Manager accesses the read/write copy. The Cache
Manager is thus said to prefer a </i><i>read-only path through the
filespace, accessing read-only volumes when they are available.</i></p>
<br>
Does this mean that since I now have RO volumes, when I go into my home
directory (the home volume mounted to /afs/ourcell/home), that it finds
the RO replicated copy on our other server (donjulio) and since that's
where I'm accessing it, that if I try to write to it I will get
"Read-Only filesystem"? Surely, this can't be!<br>
<br>
Best,<br>
<br>
Erik Osterman<br>
<br>
<br>
<br>
Erik Osterman wrote:
<blockquote cite="mid45F45AD5.7050302@osterman.com" type="cite">Spent
the better part of the day yesterday configuring replication. I felt
like I overcame the learning curve; OpenAFS was beginning to make
sense. Last night, everything was running just fine, by that I mean, I
had several RW volumes replicated to 2 different hosts. I could read
and write just fine on everything. I woke up today, and now it's
complaining "Read-only file system" every time to try to make any
modifications. I figured something must have flipped the RW partition
into a RO mode.
  <br>
  <br>
This is happening to all my volumes, but I'll just refer to my "home"
volume. We have just a handful of users, so all users are just in home.
  <br>
  <br>
vos listvldb jwalker
  <br>
home
  <br>
&nbsp;&nbsp; RWrite: 536870918&nbsp;&nbsp;&nbsp;&nbsp; ROnly: 536870919
  <br>
&nbsp;&nbsp; number of sites -&gt; 2
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server jwalker partition /vicepa RW Site
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server donjulio partition /vicepa RO Site
  <br>
  <br>
vos listvol jwalker
  <br>
Total number of volumes on server jwalker partition /vicepa: 8
  <br>
home&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 536870918 RW&nbsp;&nbsp;&nbsp; 5039076 K On-line
  <br>
  <br>
vos examine home
  <br>
home&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 536870918 RW&nbsp;&nbsp;&nbsp; 5039076 K&nbsp; On-line
  <br>
&nbsp;&nbsp; jwalker /vicepa
  <br>
&nbsp;&nbsp; RWrite&nbsp; 536870918 ROnly&nbsp; 536870919 Backup&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0
  <br>
&nbsp;&nbsp; MaxQuota&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 K
  <br>
&nbsp;&nbsp; Creation&nbsp;&nbsp;&nbsp; Sat Mar 10 15:37:36 2007
  <br>
&nbsp;&nbsp; Copy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sat Mar 10 15:37:36 2007
  <br>
&nbsp;&nbsp; Backup&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Never
  <br>
&nbsp;&nbsp; Last Update Sun Mar 11 04:00:33 2007
  <br>
&nbsp;&nbsp; 47061 accesses in the past day (i.e., vnode references)
  <br>
  <br>
&nbsp;&nbsp; RWrite: 536870918&nbsp;&nbsp;&nbsp;&nbsp; ROnly: 536870919
  <br>
&nbsp;&nbsp; number of sites -&gt; 2
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server jwalker partition /vicepa RW Site
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server donjulio partition /vicepa RO Site
  <br>
  <br>
  <br>
What would cause this unexpected behavior?
  <br>
  <br>
Dead in the water,
  <br>
  <br>
Erik Osterman
  <br>
_______________________________________________
  <br>
OpenAFS-devel mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:OpenAFS-devel@openafs.org">OpenAFS-devel@openafs.org</a>
  <br>
<a class="moz-txt-link-freetext" href="https://lists.openafs.org/mailman/listinfo/openafs-devel">https://lists.openafs.org/mailman/listinfo/openafs-devel</a>
  <br>
</blockquote>
<br>
</body>
</html>

--------------090607000307080807080005--