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 [2020/05/30 08:07]
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 75: Line 77:
 </file> </file>
  
-Running  it 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 209: Line 219:
 PermitRootLogin yes PermitRootLogin yes
 GSSAPIAuthenication no                    # Fix slow logins GSSAPIAuthenication no                    # Fix slow logins
 +AllowUsers root backupuser                # If you need another user to use SSH
 </file> </file>
  
 <file> <file>
-svcadm disable ssh +svcadm restart svc:/network/ssh:default
-svcadm enable ssh+
 </file> </file>
  
Line 262: Line 272:
 </file> </file>
  
-==== Mirror the Boot Drive (on x86 System) ====+==== Mirror the Boot Drive ==== 
 + 
 +FIXME This section is a mix of old and new information.  It needs editing.
  
 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:
  
 <file> <file>
-format +echo |format 
-<ctrl-C> +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 304: 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 316: 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.1590847627.txt.gz · Last modified: 2020/05/30 08:07 by gcooper