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:23]
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 271: Line 279:
  
 <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 283: 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 306: 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 317: Line 323:
 Make the mirror drive bootable: Make the mirror drive bootable:
  
-<note tip>New command to install bootloader? +<file
-''bootadm  install-bootloader -Mfv -P rpool''</note>+bootadm  install-bootloader -Mfv -P rpool 
 +</file>
  
 :!: To boot to the second drive, select it in the BIOS as the first boot device. :!: To boot to the second drive, select it in the BIOS as the first boot device.
computing/unix/omnios.1691529794.txt.gz · Last modified: 2023/08/08 15:23 by gcooper