[OpenAFS] file corruption after restoring large readonly
volumes
Chaskiel M Grundman
cg2v@andrew.cmu.edu
Wed, 25 Aug 2004 13:08:57 -0400
--==========CE7145518E3ED9ABAFD6==========
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--On Wednesday, August 25, 2004 12:18:06 -0400 Jeffrey Hutzelman
<jhutz@cmu.edu> wrote:
> nor does it set the parent volume ID's on vnodes in the new volume.
[..]
> The second problem will be completely fatal on namei platforms (such as
> Linux) if you ever try to move the RW volume to the site where you did
> the manual restore. If you don't plan on ever doing that, I believe
> doing the restore is safe,
Doing a restore followed by a release is not safe on namei platforms. This
is because the release operation does an (unneeded, I think)
AFSVolSetIdsTypes operation at the end of the release, and configures the
volume to use the read-write ID as the parent ID. This is correct if the
volume was created by cloning the read-write or by vos release itself, but
not if it was created by vos restore -readonly, which sets the parent ID to
the same value as the volume ID.
There are currently no tools that can be used to do this operation the
right way. However, if you use '-overwrite incremental' instead of
'-overwrite full' when doing the restore, then the procedure you used
should produce a usable volume. (but it's too late now if you've deleted
the RO volume at the remote site. if you have done that, then you will have
to do a single full release over the slow link or wait for someone (I am
not volunteering) to write the necessary code to make 'vos restore
-readonly' create the volume with the right parent ID)
--==========CE7145518E3ED9ABAFD6==========
Content-Type: application/pkcs7-signature
Content-Transfer-Encoding: base64
MIIOmAYJKoZIhvcNAQcCoIIOiTCCDoUCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3
DQEHAaCCDAQwggS/MIICp6ADAgECAgMAnckwDQYJKoZIhvcNAQEEBQAweTEQMA4G
A1UEChMHUm9vdCBDQTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIw
IAYDVQQDExlDQSBDZXJ0IFNpZ25pbmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkB
FhJzdXBwb3J0QGNhY2VydC5vcmcwHhcNMDQwNzEzMDEzODAyWhcNMDUwNzEzMDEz
ODAyWjA/MRkwFwYDVQQD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