Child pages
  • Advanced - Creating an rpool manually

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
### Note the rpool disk(s):
:; zpool status rpool | grep ONLINE | awk '{print $1}' | egrep '^c.+s.$' | \
   while read SLICE; do echo "=== $SLICE"; \
     /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 "/dev/rdsk/$SLICE"; \
   done
:; zpool set failmode=continue rpool
:; zpool set bootfs=rpool/ROOT/openindiana rpool
:; zfs set org.openindiana.caiman:install=ready rpool
  
:; zfs set mountpoint=/rpool rpool
:; zfs mount rpool###rpool
### Just in case - should become /a/rpool
:; mkdir -p /a/rpool/boot/grub/bootsign
:; for F in capability menu.lst splash.xpm.gz; do \
   cp -pf /a/boot/grub/$F /a/rpool/boot/grub/; done 
 
### Set up "boot signs" to point GRUB to bootable pools:
:; mkdir -p /a/rpool/etc:; touch /a/rpool/boot/grub/bootsign/pool_rpool
:; echo "pool_rpool" >> /a/rpool/etc/bootsign 
:; touch /a/reconfigure
:; bootadm update-archive -R /a
 
### When you are ready to try the new pool...
:; init 6

...