Re: [osol-discuss] Few questions w.r.t. OS 2009.06 ZFS mirroring and installation.

2009-06-06 Thread stephen bond
just use -f as suggested.

this is a bug and there is an answer to that question posted already in this 
forum. just look a few posts below on subject how to move the os to anther 
disk
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Few questions w.r.t. OS 2009.06 ZFS mirroring and installation.

2009-06-04 Thread James Carlson
Karel Gardas writes:
 Hello,
 I do have few questions w.r.t. OS 2009.06 ZFS mirroring and installation:
 
 1) if I install OS2009.06 on one drive and then just attach another drive to 
 the installation to form the mirror, will it also mirror all needed 
 information from the boot block and partition table? i.e. will second drive 
 be bootable (if I for example need to change the first one)?

You'll need to run installgrub.  The zpool attach command will
remind you to do that when you create the mirror.

 2) what's the recommended practice? Partition the drive or let OS install to 
 whole drive? How it'll affect (1)? (I'm talking here about options provided 
 by the livecd installer)

If you don't have anything special on the drive and don't plan to have
GRUB entries for different OSes, it's simpler to say whole drive.

-- 
James Carlson, Solaris Networking  james.d.carl...@sun.com
Sun Microsystems / 35 Network Drive71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Few questions w.r.t. OS 2009.06 ZFS mirroring and installation.

2009-06-04 Thread andrew
 Hello,
 I do have few questions w.r.t. OS 2009.06 ZFS
 mirroring and installation:
 
 1) if I install OS2009.06 on one drive and then just
 attach another drive to the installation to form the
 mirror, will it also mirror all needed information
 from the boot block and partition table? i.e. will
 second drive be bootable (if I for example need to
 change the first one)?
 
 2) what's the recommended practice? Partition the
 drive or let OS install to whole drive? How it'll
 affect (1)? (I'm talking here about options provided
 by the livecd installer)
 
 Thanks,
 Karel

You need to set up a partition on the drive you are attaching as a mirror 
otherwise you will not be able to boot from the new drive since ZFS will use an 
EFI partition, which you cannot boot from. You should probably try to make the 
partition table of the second drive match the partition table of the first 
drive - it makes things simpler if they are identical but it is not essential.

Use the format tool in interactive mode to inspect the partition table of the 
first drive and the same tool to set up the partitions on the second drive.

There is an added complication in that Solaris has two types of partitions: 
fdisk partitions and Solaris partitions. fdisk partitions are what we all know 
as partitions. Solaris can only use primary partitions, not extended 
partitions. There must only be at most one Solaris fdisk partition per disk. 
Within the Solaris fdisk partition Solaris creates its own sub-partitions 
called slices. These are of the same format as Solaris partitions (slices) on 
SPARC. Make sure you have both a slice 0 and slice 2 on your second disk 
otherwise you won't be able to install grub.

Once you set up the partitions on the second drive you can attach it to the 
pool. You then need to install grub on the second drive as follows:

installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c4d0s2

(replace c4d0s2 with the root slice on your second drive).

Cheers

Andrew.
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Few questions w.r.t. OS 2009.06 ZFS mirroring and installation.

2009-06-04 Thread Gary Bainbridge
Can you partition the second drive with fmthard so the table is identical to 
the primary drive?
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org