> I have a script (dd) that copy t0 to t1.  Thus, 2
> bootable disks.
> 
> Thanks,
> Kitty

That's not really the recommended way of doing things with ZFS. By using dd you 
have defeated one of the big advantages of ZFS - namely that it can detect and 
correct disk errors that other filesystems can't. SImply copying sectors from 
one disk to another makes it more likely that you will see errors, and because 
you are using a single disk pool there will be redundancy in the data (unless 
you set copies=2 or 3 before you put files into the pool).

If you really want 2 bootable disks, the recommended way of doing it with ZFS 
is to create a mirrored pool. Then ZFS itself writes to the second disk which 
should make sure that everything is OK. This is not a one step process however. 
You need to do this:

1. Delete whatever partitions & slices are on your second disk.
2. Create a single fdisk partition on this disk of whatever size you need it to 
be - e.g. the whole disk.
3. Create slices (partitions) as follows:
      i. boot partition covering the first cylinder.
      ii. root partition covering the whole disk except the first cylinder.
      iii. backup slice covering the whole disk.
4. Add the disk as a mirror to your first disk with a command like 'zpool 
attach c4t0d0p0 c4t1d0p0'.
5. Install grub onto the disk: 'installgrub /boot/grub/stage1 /boot/grub/stage2 
/dev/rdsk/c4t1d0s1'.
6. Wait for ZFS to finish copying everything to the second disk. You can 
monitor the progress with 'zpool status'.

Cheers

Andrew.
-- 
This message posted from opensolaris.org

Reply via email to