Apt-clone


From Docunext Technology Wiki

Jump to: navigation, search

Apt-clone is a software tool similar to apt-get. It is used with Nexenta to update core packages.

First Try

root@nexenta-base:~# apt-clone install sunwcsu
This operation will upgrade your system using ZFS capabilities. Proceed ? (y/n) y

Updating APT sources ...
Initiating Nexenta upgrade procedure. Please wait...
Success. This upgrade will download approximately 29.40MB
This upgrade will require REBOOT. Proceed? (y/n) y

Upgrade is in progress. Please DO NOT interrupt...
Creating Upgrade Checkpoint...

Upgrade Checkpoint has been created: rootfs-nmu-001

Use 'zfs list -r syspool' command to list all available
upgrade/rollback checkpoints

Preconfiguring packages ...
(Reading database ... 24501 files and directories currently installed.)
Preparing to replace nexenta-sunw 5.11.85-1 (using .../nexenta-sunw_5.11.104-1_solaris-i386.deb) ...
Unpacking replacement nexenta-sunw ...
Setting up nexenta-sunw (5.11.104-1) ...
(Reading database ... 24501 files and directories currently installed.)
Preparing to replace nexenta-lu 5.11.85-1 (using .../nexenta-lu_5.11.104-1_solaris-i386.deb) ...
Initiating NLU protected environment ...

Second Try

# apt-clone install sunwckr sunwcsu
This operation will upgrade your system using ZFS capabilities. Proceed ? (y/n) y

Updating APT sources ...
Initiating Nexenta upgrade procedure. Please wait...
Success. This upgrade will download approximately 21.20MB
This upgrade will require REBOOT. Proceed? (y/n) y

Upgrade is in progress. Please DO NOT interrupt...
Creating Upgrade Checkpoint...

Upgrade Checkpoint has been created: rootfs-nmu-001

Use 'zfs list -r syspool' command to list all available
upgrade/rollback checkpoints
(Reading database ... 29707 files and directories currently installed.)
Preparing to replace sunwckr 5.11.104-2 (using .../sunwckr_5.11.104-3_solaris-i386.deb) ...
Unpacking replacement sunwckr ...
Setting up sunwckr (5.11.104-3) ...
Setting up class: mptconf /kernel/drv/mpt.conf
Setting up class: kcfconfbase /etc/crypto/kcf.conf
Setting up class: renameold /etc/name_to_sysnum
Setting up class: etcsystem /etc/system
Setting up class: preserve /kernel/drv/log.conf
Setting up class: scsivhciconf /kernel/drv/scsi_vhci.conf
Setting up class: preserve /kernel/drv/sgen.conf
Setting up class: preserve /kernel/drv/st.conf
Setting up class: manifest /var/svc/manifest/system/dumpadm.xml
Setting up class: manifest /var/svc/manifest/system/fmd.xml
Setting up class: manifest /var/svc/manifest/system/intrd.xml
Setting up class: manifest /var/svc/manifest/system/scheduler.xml

(Reading database ... 29707 files and directories currently installed.)
Preparing to replace sunwcsu 5.11.104-4 (using .../sunwcsu_5.11.104-5_solaris-i386.deb) ...
Leaving `diversion of /usr/bin/du to /usr/gnu/bin/du by sunwcsu'
Leaving `diversion of /usr/bin/df to /usr/gnu/bin/df by sunwcsu'
Unpacking replacement sunwcsu ...
Setting up sunwcsu (5.11.104-5) ...

Creating boot_archive for /tmp/upgrade-attempt.895
updating /tmp/upgrade-attempt.895/platform/i86pc/boot_archive
                          * * *
                      SYSTEM NOTICE
 								 
     The first phase of upgrade has completed successfully:
       - created Upgrade Checkpoint 'rootfs-nmu-001'
       - created new GRUB menu entry
       - the system is ready to reboot into the new checkpoint
       

   +------------------------------------------------------------------+
   |                                                                  |
   |  At this point you have two options:                             |
   |                                                                  |
   |   1. You can reboot now, make sure that system is healthy and    |
   |      then activate the newly created checkpoint.                 |
   |                                                                  |
   |   2. Or, you can simply continue using the system as is and      |
   |      reboot/activate checkpoint later.                           |
   |                                                                  |
   +------------------------------------------------------------------+
Would you like to follow the option (1) above and reboot now ? (y/n) 
Personal tools