OpenIndiana/Nexenta

Mirror rpool

http://serverfault.com/questions/365027/solaris-10-zfs-boot-how-to-add-mirror-of-boot-drive

Duplicate the disk partition (x86 only):

fdisk -W /var/tmp/rpool-fdisk /dev/rdsk/c1t0d0p0
fdisk -F /var/tmp/rpool-fdisk /dev/rdsk/c1t1d0p0

Duplicate the label (both x86 and SPARC)

prtvtoc /dev/rdsk/c1t0d0s0 | fmthard -s - /dev/rdsk/c1t1d0s0

Mirror the root pool (both x86 and SPARC):

zpool attach -f rpool c1t1d0s0

Install the GRUB boot loader (x86 only):

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

Install the boot loader (SPARC only):

installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t1d0s0

Set the BIOS (x86) or the OpenBOOT prom (SPARC) to have the new disk bootable.

In the latter case (SPARC), that should be something like:

eeprom "boot-device=disk1 disk2" 

Make sure the ZFS resilvering is completed before rebooting. Use the zpool status rpool command to monitor resilvering.

Change to static IP

http://www.sotechdesign.com.au/creating-a-static-ip-in-openindianaopensolaris/

Do the following (the # at the beginning means you need to have superuser permissions for this, and any line without bolded text at the end means you just hit enter):

 

    # nwamcfg

    nwamcfg> create ncp lan

    nwamcfg:ncp:lan> create ncu phys e1000g0

    Created ncu ‘e1000g0′. Walking properties …

    activation-mode (manual) [manual|prioritized]> prioritized

    enabled (true) [true|false]>

    priority-group> 0

    priority-mode [exclusive|shared|all]> shared

    link-mac-addr>

    link-autopush>

    link-mtu>

    nwamcfg:ncp:lan:ncu:e1000g0> end

    Committed changes

    nwamcfg:ncp:lan> create ncu ip e1000g0

    Created ncu ‘e1000g0‘. Walking properties …

    enabled (true) [true|false]>

    ip-version (ipv4,ipv6) [ipv4|ipv6]> ipv4

    ipv4-addrsrc (dhcp) [dhcp|static]> static

    ipv4-addr> 10.0.1.2

    ipv4-default-route> 10.0.1.1

    nwamcfg:ncp:CorpNet:ncu:e1000g0> end

    Committed changes

    nwamcfg:ncp:lan> end

    nwamcfg> end

    # nwamadm enable -p ncp lan
    
    

http://www.sotechdesign.com.au/creating-a-static-ip-in-openindianaopensolaris/

 
openindiana_nexenta.txt · Last modified: 2012/12/02 11:38 by richardham
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki