c0t0d0 is the source. it is formatted as ufs. bummer.
c1t0d0 is the destination. it shall be formatted as ufs. bummer.
the bum deal is that the source disk has all of these volumes defined, and since the backup disk slice is being a punk, i can't resize any of the slices. that's okay. i really just want to plop everything on the same slice and go on with life. i could make this complicated - you know, re-create all the disk slices and ufsdump slice to slice, but i'm in a rush. if you're doing the later, as opposed to ufsdump root partion, just do the rdsk. it works.
first. format the destination disk.
# format
second. create a filesystem on the destination disk.
# newfs
third. mount the disk and initiate a ufsdump and restore. dd be damned.
i'm going to mount it under /mnt.
# mount -F ufs -o rw /dev/dsk/c1t0d0s0 /mnt # ufsdump 0f - / | ( cd /mnt ; ufsrestore xvf - ) # umount /mnt
at the end of it all, be sure to enable the disk to actually be booted.
# /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t0d0s0
for fun:
# fsck /dev/rdsk/c1t0d0s0
and, clean things up in /mnt/etc/vfstab . we don't want to mount things that aren't there, like the not-copied-over swap partition.
http://utahsysadmin.com/2008/02/07/adding-a-hard-drive-to-solaris-10/
http://nixforums.org/about22408-Copy-entire-Solaris-disk--to-new-Hard-Disk-.html
http://fengnet.com/book/Solaris_admin/ch01lev1sec15.html is a lovely discussion of smc admin tool. yay illegal yanking of copyrighted material prc peeps.
No comments:
Post a Comment