[OpenAFS] Volume rename with active volumes
Jeffrey Altman
jaltman@secure-endpoints.com
Fri, 02 Sep 2011 17:28:23 -0400
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigC16402460E2ED965077C7B17
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
File handles on the location operation system are associated with the
AFS File ID (volumeId, vnodeId, uniquifier) and not the volume name. A
volume rename is a modification the volume location database that does
not alter the volumeId nor its location. Therefore, client systems that
are actively using the volume will not be immediately affected by the
rename.
The rename will be noticed when one of two things happens:
1. The old mount point contents are evaluated and the volume name
does not exist.
2. The new mount point contents are evaluated and the volume name
does not exist.
The clients treat the volume location information as being valid for two
hours. One possible course of action would be to alter the mount point
so that the target refers not to the old volume name but to the
volumeId. Then wait two hours and perform the volume rename followed by
updating the mount point to refer to the new volume name.
Jeffrey Altman
On 9/2/2011 5:04 PM, Richard Brittain wrote:
> Hi,
> we need to rename some data volumes, but they tend to be busy most of=
> the time, so I did some experiments with 'vos rename' and 'fs mkmount' =
etc.
>=20
> As expected, most clients get an error if the vos rename has happened,
> but not the rmmount/mkmount/release (since the mount points are
> replicated).
> However, a client with an open file on the volume seemed to be fine and=
> continued to work after rename, and even reported the correct voluume
> name to 'fs lq'.
>=20
> I tried two tests:
> - hold a file open for writing and append lines. Most or all of the
> activity would be to the local cache.
> - repeatedly open/append/close a file. I assume this pushed it out to=
> the fileserver. This also worked without error.
>=20
> Given this, is it safe to rename active volumes ?. I can't figure out
> how the active clients get this right.
>=20
> Thanks,
>=20
> Richard
--------------enigC16402460E2ED965077C7B17
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
iQEcBAEBAgAGBQJOYUp5AAoJENxm1CNJffh4cQ4H/0jpVFw6Chil+5F81lgjdZnQ
SlW0+awbhK70W3uJilsgKrs0r81d9gvh6ERRs9EAyVVIcFzO2Czf465/rq1AjbzV
lOwXiyTOPGPTpKro4Zhqf55WjL+r4ubvAOpPca93T8OwUU9Y5beGV9lR5cyWOiX+
LMk3xUdu6kWIZEU98OZ+OS2YmUQoHLmOiJHHE3GPxbbe8XX03VyN23jWQQ1foryP
/eSIiHixBUM9SUMIkJUZLNtTUNCj0mqjd5hiFIR+tdk0dp8y/pdzJZ7tA4D8VQEk
l+TafjyQqwsZEdReaGGrz5BZ9xX/07FZF8wS3nLRPerlPeYa08PP0jnTgVCLVLU=
=nOgH
-----END PGP SIGNATURE-----
--------------enigC16402460E2ED965077C7B17--