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 [2023/08/08 15:13]
gcooper
computing:unix:omnios [2024/12/17 20:43] (current)
gcooper
Line 78: 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 265: Line 273:
  
 ==== Mirror the Boot Drive ==== ==== 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]]**
  
 <note tip>Read the help first in **Napp-IT -> Home -> Disks -> Mirror Bootdisk**</note> <note tip>Read the help first in **Napp-IT -> Home -> Disks -> Mirror Bootdisk**</note>
- 
-<note tip>If there is any preexisting configuration on the disk, such as partition info, reinitialize it with **Napp-IT -> Home -> Disks -> Initialize</note> 
  
 List all disks and ZFS pools: List all disks and ZFS pools:
Line 281: Line 289:
 </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 312: Line 320:
 zpool status -v rpool zpool status -v rpool
 </file> </file>
- 
-<note tip>New command to install bootloader? 
-''bootadm  install-bootloader -Mfv -P rpool''</note> 
  
 Make the mirror drive bootable: Make the mirror drive bootable:
  
 <file> <file>
-pfexec installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c5t3d0s0+bootadm  install-bootloader -Mfv -P rpool
 </file> </file>
  
computing/unix/omnios.1691529203.txt.gz · Last modified: 2023/08/08 15:13 by gcooper