HiHi All!
I've migrated bunches of drives under RH (yeah since 4.2) but I'm an OBSD
xtreme-nooobeee. Been reading tons of docs and I think I've got my ducks
lined up but want to double check with an opinion or two.
Box has 3 drives, boot, home, and backup.
I did the install with just the one boot drive mostly because the
faq4.html wasn't *absolutely* clear *exactly* how to implement the word
'possible' in "note that it is possible to leave some partitions
untouched..." and I'd rather be 'too safe' than go to the backups. Don't
get me wrong, the docs are excellent, just a couple of points of unclarity
like that one.
So after the install I had a few adventures learning about wd** and labels
and such and now I've got:
#
# /etc/fstab
#
# boot and 'c' and such
/dev/wd2a / ffs rw 1 1
/dev/wd2g /home ffs rw,nodev,nosuid 1 2
/dev/wd2d /tmp ffs rw,nodev,nosuid 1 2
/dev/wd2f /usr ffs rw,nodev 1 2
/dev/wd2e /var ffs rw,nodev,nosuid 1 2
#
# old 500G home drive
/dev/wd1j /home-b ext2fs rw,nodev,nosuid 1 2
#
# backup 400G drive
/dev/wd0i /400 ext2fs rw,nodev,nosuid 1 2
Yep I relabeled the old home to home-b before plugging it it.
So what I think I need to do is:
1) umount home
2) umount home-b
3) relabel home to home-spare
4) relabel home-b to home
5) In fstab change these lines from:
/dev/wd2g /home
/dev/wd1j /home-b
to:
/dev/wd2g /home-spare
/dev/wd1j /home
6) And mount -av
Sounds good?
====
Ok now on to the users. BTW this is a small home server thing just a few
friends with accounts and a buncha services user names total about 40.
Would it be 'better' to migrate /etc/passwd as described in
http://openbsd.rt.fm/faq/faq9.html#passwd, which I have already built
files for but not installed, or should I adduser them all from scratch and
let the system take care of UIDs and groups.
If I migrate, then there's the remote possibility of some incompatibility
of a user name I miss (lots of editing/checking,) and I have to build the
group file by hand.
If I recreate users, then it's fully compatible. But I need to chmod the
whole /home/* to match the new ID numbers, though that's not a big deal by
script.
OK even as I'm writing that I'm already leaning towards recreate. I'd
rather be safe and guaranteed compatible than slip and push a wrong button
and take hours to find out what I screwed up.
Colorful Caveats: If you comment, and you're right, then the check will be
in the mail on monday morning. But, if you're wrong, you'll be hearing
from guido *and* my attorney on tuesday afternoon. LOL!!!!
TYIA
Have a :) day!
Jim
--
[email protected] <-- No that's not back up yet, it's under the /home drive.