Hi!

I tried this guide as my setup was similar. I had a Linux installation (extended partitions) followed by a OpenSolaris (snv_132) installation.
1. Add the current NFS partition as a mirror of the existing ZFS one:
        eg      zpool attach rpool c0d0s0 c0d0p1        
This worked,
1.1 Add a boot block with installgrub to the old NTFS side of the mirror
I couldn't do this, because installgrub doesn't want to do anything to a partition or slice that is numbered differently than 0
2. Wait until 'zpool status' tells you that the resilver is complete.

3. Now detach the original ZFS fdisk partition leaving the one that
     was the old NTFS partition
        eg      zpool deatch rpool c0d0s0
worked, too. now I have:

    NAME        STATE     READ WRITE CKSUM
    rpool       ONLINE       0     0     0
      c4t0d0p2  ONLINE       0     0     0

4. Now boot from LiveCD and repartition (just fdisk alone should be
enough) to delete the old ZFS partition and make the old NTFS one the
size of the old NTFS one and the ZFS one together.  Making very sure it
starts in exactly the same place the old NTFS one did.  Making sure it
is tagged Solaris2 not NTFS.
this wasn't a problem either...
5. Reboot the system and the ZFS pool should have expanded to the size
of the original two partitions.
rebooting the system didn't work - as expected - because of the missing grub. Interestingly I could boot from the OpenSolaris live/install cd, selecting "boot from hd", finding myself in the boot menu of my hard disk. After modifying the findroot command I could even boot snv_132
If it hasn't run 'zpool autoexpand=on rpool'
That was the real fun part. Worked instantly...

Now I have two problems: getting grub to work without CD and getting rpool back to a slice instead of a partition.

I didn't print out my original disk label and have now this label:

Current partition table (original):
Total disk cylinders available: 32866 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       1 - 32865      251.76GB    (32865/0/0) 527976225
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wu       0 - 32865      251.77GB    (32866/0/0) 527992290
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0
  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
  9 unassigned    wm       0                0         (0/0/0)             0

0 was unassigned and these values are guessed by me after reading a couple of web pages.

"installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c4t0d0s0" wasn't the solution to all my problems. Before doing this I had a black screen, now I have "GRUB" in the upper left corner and nothing else...

I can boot via CD and "boot from harddisk" tough...
I had to modify findroot in /rpool/boot/grub/menu.lst from "findroot (pool_rpool,3,a)" to "findroot (pool_rpool,1)" to let grub find my system. Is it important to have a slice mentioned there?

Please include myself in reply as I'm not subscribed...
Bye...Frank
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to