User Tools

Site Tools


computing:unix:omnios

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:unix:omnios [2021/03/30 11:15]
gcooper
computing:unix:omnios [2024/12/17 20:43] (current)
gcooper
Line 1: Line 1:
 ====== OmniOS ====== ====== OmniOS ======
 +
 +**Howto**: https://napp-it.org/downloads/omnios.html
  
 See also **[[va:va_shared_storage|Shared Storage System Notes]]**. See also **[[va:va_shared_storage|Shared Storage System Notes]]**.
Line 76: Line 78:
  
 Run the same command again without the 'n' flag to actually do the update.  Run the same command again without the 'n' flag to actually do the update. 
 +
 +If you get stuck with updating, try:
 +
 +<file>
 +pkg refresh --full
 +pkg update -f
 +reboot -p
 +</file>
  
 ===== Upgrading ===== ===== Upgrading =====
Line 262: Line 272:
 </file> </file>
  
-==== Mirror the Boot Drive (on x86 System) ====+==== Mirror the Boot Drive ====
  
-FIXME This may have changed on newer systems. +FIXME This section is a mix of old and new information.  It needs editing.
- +
-<note tip>New command to install bootloader? +
-''bootadm  install-bootloader -Mfv''</note>+
  
 See also **[[computing:storage:napp-it|Napp-IT ZFS Storage Server]]** See also **[[computing:storage:napp-it|Napp-IT ZFS Storage Server]]**
  
-http://wiki.openindiana.org/oi/2.1+Post-installation +<note tip>Read the help first in **Napp-IT -> Home -> Disks -> Mirror Bootdisk**</note>
- +
-http://darkstar-solaris.blogspot.co.uk/2008/09/zfs-root-mirror.html+
  
 List all disks and ZFS pools: List all disks and ZFS pools:
Line 279: Line 284:
 <file> <file>
 echo |format echo |format
- 
 zpool list zpool list
- 
 cfgadm -s "select=type(disk)" cfgadm -s "select=type(disk)"
- 
 zpool status rpool zpool status rpool
 </file> </file>
  
-In the following example: +  ''p0'' is entire disk 
- +  * ''s0'' is first slice
-  c5t2d0 is the initial installation drive +
-  * c5t3d0 is the new disk we want to become the mirror +
-  * p0 is entire disk+
  
 Create one large partition: Create one large partition:
  
-<file> +<note tip>If there is any preexisting configuration on the disk (many drives come partitioned!), such as partition info, reinitialize it with **Napp-IT -> Home -> Disks -> Initialize**</note> 
-pfexec fdisk -B c5t3d0p0 + 
-</file>+FIXME Is the following necessary?
  
 Set up SMI label with same partitioning as original boot disk: Set up SMI label with same partitioning as original boot disk:
Line 310: Line 309:
 pfexec zpool attach -f rpool c5t2d0s0 c5t3d0s0 pfexec zpool attach -f rpool c5t2d0s0 c5t3d0s0
 </file> </file>
 +
 +If your bootdisk ends with ''s0'' (ex c0t0d0s0), ''s0'' is added to newdisk like:
 +''zpool attach -f rpool c0t0d0s0 c0t1d0s0''.
  
 :!: Do not continue until the resilver is finished. :!: Do not continue until the resilver is finished.
Line 322: Line 324:
  
 <file> <file>
-pfexec installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c5t3d0s0+bootadm  install-bootloader -Mfv -P rpool
 </file> </file>
  
computing/unix/omnios.1617124502.txt.gz · Last modified: 2021/03/30 11:15 by gcooper