Hi all,
Apologies for the delay in this summary. I was so far behind on that site
upgrade as a result of this and have been out of the office most of this
week.
Thanks to those who replied :
Alan Rollow
John Meaker
William Flett
Ronald Bowman
Bob Vickers
T Horsnell
Alexander Sakellaris
Wayne Sweatt
Cory Erickson
Paul Tyler
Damien Malczewski
Nandkishor Kale
My original message message is included at the end.
The suggestions included (in order of receipt) :
1. using the -r option to restore (apparently because -x offers no
guarantee about ownership) - I had omitted to mention that I had left that
one running as I left that evening and found it had failed in a similar
fashion (quite possibly identical result) when I arrived in the morning. I
have no knowledge about this claim about -x though, especially when this is
used in the examples in the man pages for dump for copying filesystems, and
I've used it countless times before.
2. use tar (I have a certain aversion to using this for copying filesystems
- call me old fashioned if you want :)
3. use vdump/vrestore (this is what I had success with)
4. look at -p option of restore (no such option exists ?)
5. this may have happened if restore failed at some point before it set
ownership (it hadn't - it was completing "successfully")
6. use cpio (in theory this should work, but I had the original filesystem
mounted ro and it appeared not to like this. I didn't bother trying it
with the original mounted rw since I was running on negative time already
!!)
The chocolate tim-tam goes to Paul Tyler who forwarded me his summary for
effectively the same problem. What annoys me is that he had only sent it
two weeks beforehand. His problem was restoring dumps made on a 4.0B
system onto a 4.0D system and permissions being screwed up. He solved his
problem by using the restore from a 4.0B system (I could have done this by
grabbing it from one of my other sites, but vdump/vrestore were just a bit
closer to hand).
Many thanks to all that responded so quickly.
Regards, Grant.
Original question :
>Hi all,
>
>I'm encountering a few problems migrating filesystems from one disk to
>another, and the result is a "non-replica" :)
>
>I'm using the tried and tested :
>
> dump -0f - /filesystem | (cd /new_disk; restore -xf -)
>
>and the ownership of most files (but not all) on the new disk has
>changed to root. Needless to say, the users don't appreciate this :)
>
>In case it's relevant, this is on a DEC 3000/700 running a freshly
>installed DU 4.0D, and the old filesystem is one that was from it's
>previous incarnation as a 3.something system (probably 3.2c).
>
>Has any one seen this before, and does anyone have some suggestions on
>how to rectify this ? I'm not real keen to have to go through and
>manually fix this.
>
>I have started a tape dump tonight and will try restoring some
>directories from this in the morning and see what this does, but I
>don't see why I should use this slow method when dump | restore
>normally works (& would normally save a heap of time :)
>
>Cheers, Grant.
Grant Ward ( Grant.Ward_at_cssip.edu.au )
Ph: +61-8-8302 3927 Mobile: +61-414-727 747
Fax: +61-8-8302 3124 Pager: 61414727747_at_sms.on.net
Received on Fri Dec 11 1998 - 13:57:46 NZDT