Discussion:
[OpenAFS] Offline migration of AFS partition files (i.e. the contents of `/vicepX`)
Ciprian Dorin Craciun
2018-12-04 20:44:40 UTC
Permalink
Quick question regarding the following situation: one of my `/vicepX`
AFS partitions is currently stored on an old disk (with JFS as
file-system) and I thus I need to move all my AFS data from that
partition to a fresh one (Ext4); moreover during this movement
OpenAFS is not running (and I intend to upgrade the server version
also from 1.6.5 to the latest one).

Can I safely `rsync` the files from the old partition to the new one?

Is there another alternative that doesn't require actually staring OpenAFS?

(I know about `voldump`, however it requires me to execute it for each
volume, and thus I might "forget" something. Moreover it requires
extra storage space for the resulting archive.)

Thanks,
Ciprian.
Harald Barth
2018-12-05 13:29:15 UTC
Permalink
Post by Ciprian Dorin Craciun
Can I safely `rsync` the files from the old partition to the new one?
For Linux (The "new" server partition layout):

If the file tree really is exactly copied (including all permissions
and chmod-bits) then you have everything you need. This was not true
for the old file system layout for example in SunOS UFS.

I would copy to a not-yet used partition, mount it then as /vicepY
(where Y is a new unused letter) and then as the first thing when
startting the server run a salvage with the options
-orphans attach -salvagedirs -force

Harald.

PS: I like zfs
Ciprian Dorin Craciun
2018-12-06 21:19:34 UTC
Permalink
Post by Harald Barth
Post by Ciprian Dorin Craciun
Can I safely `rsync` the files from the old partition to the new one?
If the file tree really is exactly copied (including all permissions
and chmod-bits) then you have everything you need.
Am I safe to assume that on Linux only the "new" partition layout is
used? (Is there a way to check which layout am I using?)

Thanks,
Ciprian.
Harald Barth
2018-12-07 08:34:31 UTC
Permalink
Post by Ciprian Dorin Craciun
Am I safe to assume that on Linux only the "new" partition layout is
used? (Is there a way to check which layout am I using?)
Yes (under the old layout, you don't even see the files as they are not
hooked into directories).

Harald.

Loading...