If you weren't running ZFS I would have suggested the following:
-  boot the system from CD
-  manually partition the new disk
-  mount each slice on the new disk on a temporary mount point then
ufsdump each corresponding slice on the old disk and pipe it to
ufsrestore in the temporary mount point. (eg  cd /tmp/s0; ufsdump 0f -
/dev/dsk/c0d0s0 | ufsrestore rf -; rm restoresymtable)

However, I have not yet played with ZFS and can't say whether it would
work with it...

Mausul. 

-----Original Message-----
From: opensolaris-discuss-boun...@opensolaris.org
[mailto:opensolaris-discuss-boun...@opensolaris.org] On Behalf Of UNIX
admin
Sent: Sunday, March 22, 2009 5:35 AM
To: opensolaris-discuss@opensolaris.org
Subject: Re: [osol-discuss] output from prtvtoc

You're stuck.

There's no clean-cut way to do what you want; you can't copy the VTOC
over, because of the geometry mismatch.

The way to do what you want is with a combination of find(1) and
cpio(1):

Assuming that the 500GB disk is mounted on /mnt,

( find / -mount -local -depth -print | cpio -pvdmu /mnt 1>
/tmp/cpio.log) 2> /tmp/cpio.err

will copy the files over; lathe, rinse, and repeat for every other
filesystem you might have.  You'll also need to install the boot block
on the 500GB disk, see installboot(1M) on sparc, respectively
installgrub(1M) on the i86pc.

In other words, this is such a messy operation which has to be performed
with the utmost attention to detail, that it's *cheaper* to just back up
the data you need, if you have any, and reinstall the operating system.
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to