AI-UAR

From pressy's brainbackup
Jump to: navigation, search

AI profile to restore a UAR

Still small profile will be needed to restore or install a server with an UAR.


<!DOCTYPE auto_install SYSTEM "file:///usr/share/install/ai.dtd.1">
<auto_install>
  <ai_instance name="sol-ai" auto_reboot="true" >
    <target>
      <logical>
        <zpool name="rpool" is_root="true">
          <filesystem name="export" mountpoint="/export"/>
          <filesystem name="export/home"/>
        </zpool>
      </logical>
    </target>
    <software type="ARCHIVE">
      <source>
        <file uri="file:///net/10.11.12.13/ai/uar/server-dr.uar"/>
      </source>
    <software_data action="install">
      <name>global</name>
    </software_data>
    </software>
  </ai_instance>
</auto_install>

Do not forget to update the profile in the AI:

# installadm update-manifest -m 2restore-server -n sol-ai -f /ai/config/server-dr.manifest


AI/UAR ISSUE

Had an issue while installing a new platform saying:

 
13:50:24    Error receiving ZFS stream file: 87281d79-bb82-4aa1-babd-eb54ccf145e2-0.zfs.3
13:50:24    Failed transfer of stream file: '87281d79-bb82-4aa1-babd-eb54ccf145e2-0.zfs.3' from file:///net/10.11.12.13/ai/uar/server.uar
13:50:25    Stream 'rpool@87281d79-bb82-4aa1-babd-eb54ccf145e2' transfer from archive 'file:///net/10.11.12.13/ai/uar/server.uar' failed.
13:50:25    Reason: cannot receive: out of space

Installation logs said no space left on device and looking a bit deeper I could see that solaris installer tried to create a very huge dump device which was taking the whole space... so I tried to specify swap and dump but the installation ignored all settings, seems to be a bug... The final solution was to use a "no dumpdevice" setting in the manifest and create it by hand after the installation:

<logical nodump=“true“>