Personality Transfer
Till now, when you upgrade 9.x CTP device to 9.1R3.1 via the current dual image upgrade process, you were forced to “First Boot” the system, which can be a tedious and time-consuming effort.
Personality Transfer feature copies the files that are modified as part of your configuration changes to the system (such as, ctp_dbase, service config files, system settings - IP address, default ethernet, and so on) to the new CTPOS 9.1R3.1 image so that all the user system/node/bundle configurations remain intact. With this feature you need not “First Boot” the system forcefully, thus saving the time.
Starting from the CTPOS Release 9.1R3.1, the Personality Transfer feature is introduced to help you upgrade to dual image seamlessly, without first boot. This feature is supported on CTP150, CTP151, and CTP2000 series devices.
You can upgrade using three different interface methods.
- CLI or Manual
- USB
- CTPView
You can either choose to upgrade seamlessly in a non-interactive mode (USB or CTPView) or interactive mode (CLI or Manual).
You can use the Personality Transfer feature to upgrade the CTP devices which are running only CTPOS 9.0R1, 9.1R1, or 9.1R2.1 images.
When upgrading the CTP devices running CTPOS 7.x image, only the ethernet configuration files are restored and all other configuration files are NOT restored.
Note If Ethernet segregation is enabled on a CTPOS 7.3 system and Personality Transfer is chosen during upgrade to CTPOS 9.1R3.1, the configuration for Ethernet segregation is lost after upgrade. In such a case, Ethernet segregation must be enabled after upgrade.
Personality Transfer is applied if you upgrade CTP in non-interactive mode.
If you choose to upgrade in an interactive mode, you are prompted whether you want to retain system identity files.
If you select Yes, personality transfer feature is applied, else it is not.In case of an existing 9.0R1 dual-imaged system, where the active partition is running 7.3 version of CTPOS, an upgrade to 9.1R3.1 will replace the image in partition with 7.3 version. The CTP may go to 'first boot' state in such a scenario when upgrade is performed through CTPView or in non-interactive mode locally. If upgrade is performed using CTPView, when such a condition arises, the upgrade page will show the error message Connection to ctp not recovered due to the ’first boot’ condition having occurred even though the upgrade will happen successfully. To recover the connection of CTPView with CTP, CTP should be re-connected to CTPView.
All the CTP system identity files are copied during Personality Transfer. If you want to know what files compromise the personality files you can contact JTAC for further help.
When you upgrade from 9.1Rx to 9.1R3.1 dual image, the following messages are displayed:
Non-interactive mode
[root@md-ctp-151-35:/tmp 11]# ls acorn_310_dual_image_upgrade_ctp151_211221.tgz [root@md-ctp-151-35:/tmp 12]# [root@md-ctp-151-35:/tmp 12]# upgrade y CTP system software upgrade utility - Version 1.5.0 Found kernel version 3.14.39ltsi-WR7.0.0.27_standard, setting KVER to 310 Checking for active menu sessions Found USB storage device... Mounting System version is 310 Here is a list of all the found compatible CTP code archive files: /tmp/acorn_310_dual_image_upgrade_ctp151_211020.tgz Removing old installation residue... /tmp/acorn_310_dual_image_upgrade_ctp151_211221.tgz is the newest archive file... ===== Uncompressing and Extracting Archive ===== Archive file: /tmp/ acorn_310_dual_image_upgrade_ctp151_211221.tgz acorn_install/ acorn_install/secure_boot_signed_files.tgz ………………………… …………………………. …………………………. Running install non-interactively !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! You are executing in Non-Interactive Mode !!!! SYSTEM will *REBOOT* automatically once the !!!! execution completes successfully !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Backing up system identity files . . .
[ OK ]…………………………… …………………………… …………………………… Mounting Image2 to /mnt/ ...[ OK ] Extracting CTPOS_9.1R3-1_partitions_ctp151_211221.tgz to Image2 ... flash_root.tgz to /mnt/flash_root [ OK ] flash_home.tgz to /mnt/flash_home [ OK ] flash_var.tgz to /mnt/flash_var [ OK ] flash_local.tgz to /mnt/flash_local [ OK ] [ OK ]
Transferring system identity files . . .
[ OK ]Now, the personality transfer is applied.
Unmounting Image2...[ OK ] Updating grub conf files... [ OK ]
Interactive Mode
[root@ctp_215:/tmp 12]# cmd -v CTPOS CLI version: 9.1R1 191223 Compile Time: Mon Dec 23 2019 01:32:31 PM [root@ctp_215:/tmp 13]# ls -lrt /mnt/ramdisk/ total 157364 -rwx------ 1 root root 161136861 Oct 29 17:55 CTPOS_9.1R3-1_partitions_ctp151_211221.tgz [root@ctp_215:/tmp 14]#
[root@ctp_215:/tmp 14]# upgrade
CTP system software upgrade utility - Version 1.5.0 Found kernel version 3.14.39ltsi-WR7.0.0.27_standard, setting KVER to 310 Checking for active menu sessions Found USB storage device... Mounting System version is 310 Here is a list of all the found compatible CTP code archive files: /tmp/acorn_310_dual_image_upgrade_ctp151_211221.tgz Removing old installation residue... /tmp/acorn_310_dual_image_upgrade_ctp151_211221.tgz is the newest archive file... ****************************************************************** NOTE: CTPOS code upgrades will interrupt data on running circuits. Say "no" to run more interactive or install a different archive) ******************************************************************
Do you want to install the newest archive in quick mode (no questions)? y[n]: n
Do you want to install the newest archive interactively (w/ questions)? y[n]: y
Copying /tmp/acorn_310_dual_image_upgrade_ctp151_211221.tgz to /tmp cp: '/tmp/acorn_310_dual_image_upgrade_ctp151_211221.tgz' and '/tmp/acorn_310_dual_image_upgrade_ctp151_211221.tgz' are the same file ===== Uncompressing and Extracting Archive ===== Archive file: /tmp/acorn_310_dual_image_upgrade_ctp151_211221.tgz ./acorn_install/ ./acorn_install/secure_boot_signed_files.tgz tar: ./acorn_install/secure_boot_signed_files.tgz: time stamp 2021-03-12 15:18:54 is 43190481.600093562 s in the future ./acorn_install/sgdisk tar: ./acorn_install/sgdisk: time stamp 2021-03-12 15:18:54 is 43190481.596867394 s in the future ./acorn_install/uefi_partition_files.tgz tar: ./acorn_install/uefi_partition_files.tgz: time stamp 2021-04-07 02:44:49 is 45391636.593182705 s in the future ./acorn_install/libstdc++.so.6 tar: ./acorn_install/libstdc++.so.6: time stamp 2021-03-12 15:18:54 is 43190481.574013122 s in the future ./acorn_install/gui_instr tar: ./acorn_install/gui_instr: time stamp 2021-08-13 20:43:59 is 56515586.573900869 s in the future ./acorn_install/install tar: ./acorn_install/install: time stamp 2021-08-13 20:43:46 is 56515573.573279414 s in the future tar: ./acorn_install: time stamp 2021-11-02 14:55:48 is 63493095.573150446 s in the future Running install interactively [ OK ] Unmounting all partitions of /dev/sda Unmounting Image1...[ OK ] Unmounting all partitions of /dev/sda Mounting Image1 to /mnt/ ...[ OK ] ============================================================== System Type : CTP151 CPU Type : bacardi Flash Type : 2.5" SSD Disk Currently Running CTPOS : 9.1R1 System State : Running Total RAM Size : 16061 MB Free RAM Size : 15407 MB No. of partitions on /dev/sda : 10 CTPOS installed on : Image1 only Running Image : Image1 (9.1R1-comp-191223-013231-load-191029-175301') Non-Running Image : Image2 (Empty) NOTE: 9.1R3-comp-YYMMDD-HHMMSS-load-YYMMDD-HHMMSS decoded as : 9.1R3 : Release Name comp-YYMMDD-HHMMSS : Root-FS/Kernel compile timestamp load-YYMMDD-HHMMSS : Image upgrade timestamp Dual Image on Flash has two logical images : Image1 - consists Five partitions (1,5,6,7,8) Image2 - consists Five partitions (1,9,10,11,12) First partition(bootable) is common to both Image1 and Image2 ============================================================== CTPOS_9.1R3-1_partitions_ctp151_211221.tgz Image archive file found at /mnt/ramdisk Verifying CTPOS_9.1R3-1_partitions_ctp151_211221.tgz archive ... CTPOS_9.1R3-1_partitions_ctp151_211221.tgz md5sum - Matched !!! There is 15407 MB free space available on /mnt/ramdisk(RAM) Please choose Image no. for upgrading: 1. Upgrade to Image1: 2. Upgrade to Image2: 3. Exit:
Please enter valid input: 2
***Upgrading Image2 partition with CTPOS_9.1R3-1_partitions_ctp151_211221.tgz *** Unmounting all partitions of /dev/sda Mounting Image2 to /mnt/ ...[ OK ] Extracting CTPOS_9.1R3-1_partitions_ctp151_211221.tgz to Image2 ... flash_root.tgz to /mnt/flash_root [ OK ] flash_home.tgz to /mnt/flash_home [ OK ] flash_var.tgz to /mnt/flash_var [ OK ] flash_local.tgz to /mnt/flash_local [ OK ] [ OK ] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! If you do not transfer system identity files (config and user information), CTP will go to first boot which requires a console connection to complete. You need to have console access to do the password and ethernet configs during first boot. If you transfer your identity files you do not need a console connection (but it is always recommended to use console access for upgrades). When upgrading from CTPOS 7.x release, only the ethernet configs will be transferred and all other configs will be lost. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Are you sure you want to transfer system identity files? y/n :y
Transferring system identity files . . . [ OK ] Unmounting Image2...[ OK ] Updating grub conf files... [ OK ] Unmounting all partitions of /dev/sda *** *** Upgrading Image2 partition with CTPOS_9.1R3-1_partitions_ctp151_211221.tgz complete The system needs to be rebooted *** ***
Do you want to reboot system now [y/n]?: y
*** *** !!!!!!!Rebooting System... *** *** . . . ***** Normal boot up of this flash. ***** Checking modules.conf indicates system changes needed! Using modules.conf.nova Backing up /etc to nonvolatile storage.. SLOT0_BAR0 added/removed: 0x00000000dfa00000(old) 0x00000000dfb00000(new) Using /etc/sysconfig/platform.conf ... Using modules.conf.nova Backing up /etc to nonvolatile storage.. Loading sensors modules. Please wait, this could take ~30 seconds Assigning Mac address to all available ethernet interfaces Starting system message bus: Unknown username "avahi" in message bus configuration file dbus. iptables: Applying firewall rules: [ OK ] ip6tables: Applying firewall rules: [ OK ] Bringing up loopback interface: [ OK ] Setting 802.1Q VLAN parameters: Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config [ OK ] Bringing up interface eth4: [ OK ] Starting OpenBSD Secure Shell server: sshd[ OK ] Starting atd: [ OK ] Starting irqbalance: [ OK ] starting rsyslogd ... [ OK ] Starting sticky dev is /dev/sda [ OK ] Starting crond: [ OK ] Loading sensors modules. Please wait, this could take ~30 seconds ===== This release supports FPGA reload during runtime ----- Function: check_gluon_bacardi ----- Found 2 gluon/bacardi interface cards ===== Start GLUON runtime FPGA load at 18:16:06 Removing iTCO watchdog kernel module [ OK ] CTP kernel driver not loaded Voice Compression driver not loaded Installing iTCO watchdog kernel module [ OK ] Installing HDLC kernel driver [ OK ] Installing CTP kernel driver [ OK ] Installing HDLC FR kernel driver [ OK ] Installing HDLC PPP kernel driver [ OK ] Installing HDLC RAW kernel driver [ OK ] Installing HDLC CISCO kernel driver [ OK ] Installing layer-2 bridge kernel module [ OK ] Removing iTCO watchdog kernel module [ OK ] Removing layer-2 bridge kernel module [ OK ] Removing HDLC FR kernel driver [ OK ] Removing HDLC PPP kernel driver [ OK ] Removing HDLC RAW kernel driver [ OK ] Removing CTP kernel driver [ OK ] Removing HDLC CISCO kernel driver [ OK ] Voice Compression driver not loaded ----- Card 0 bd_rev: 02, fpga_rev: 22 ----- Card 1 bd_rev: 04, fpga_rev: 2b Write Address(offset): 0xdfb00000(0x60020): 0x20 Write Address(offset): 0xdfb00000(0x1010): 0x400000 Write Address(offset): 0xdfd00000(0x60020): 0x20 Write Address(offset): 0xdfd00000(0x1010): 0x400000 ----- Power down slot 0... at 18:16:21 ----- Power down slot 1... at 18:16:21 ----- Rescanning PCI devices ... at 18:16:24 Installing iTCO watchdog kernel module [ OK ] Installing HDLC kernel driver [ OK ] Installing CTP kernel driver [ OK ] Installing HDLC FR kernel driver [ OK ] Installing HDLC PPP kernel driver [ OK ] Installing HDLC RAW kernel driver [ OK ] Installing HDLC CISCO kernel driver [ OK ] Installing layer-2 bridge kernel module [ OK ] ----- Card 0 runtime fpga_rev: 23 ----- Card 1 runtime fpga_rev: 2c ===== Finish GLUON runtime FPGA load at 18:16:28 ----- Function: check_gluon_bacardi ----- Found 2 gluon/bacardi interface cards iTCO watchdog kernel module already loaded CTP kernel driver already loaded Layer-2 bridge kernel module already loaded Check CTP kernel driver [ OK ] Checking for required memory [ OK ] Checking for required bios [ OK ] Starting CTP daemon: [ OK ] Checking fpga for all cards . . . . . . . . . . [ OK ]
After reboot, CTP will not run ’first boot’ if personality transfer is applied. However, you are prompted to change the password of default user accounts on first time login.
ctp_215 login: ctp_cmd Password: Last login: Wed Nov 17 11:22:29 UTC 2021 on console Last login: Tue Oct 29 18:16:56 UTC 2019 on console ------------------------------------------------------------- You need to set up system passwords of default user accounts. ------------------------------------------------------------- Changing root's password! ######################################################################### ######################################################################### ######################################################################### PLEASE REMEMBER THESE PASSWORDS!!! Password recovery is not a simple process: - It is service affecting. - It requires console access to the CTP - It requires rebooting of the device ######################################################################### ######################################################################### ######################################################################### Enter New Password for root Retype New Password for root 89 Changing ctp_cmd's password! ######################################################################### ######################################################################### ######################################################################### PLEASE REMEMBER THESE PASSWORDS!!! Password recovery is not a simple process: - It is service affecting. - It requires console access to the CTP - It requires rebooting of the device ######################################################################### ######################################################################### ######################################################################### Enter New Password for ctp_cmd Retype New Password for ctp_cmd Changing ctp's password! ######################################################################### ######################################################################### ######################################################################### PLEASE REMEMBER THESE PASSWORDS!!! Password recovery is not a simple process: - It is service affecting. - It requires console access to the CTP - It requires rebooting of the device ######################################################################### ######################################################################### ######################################################################### Enter New Password for ctp Retype New Password for ctp Changing ctp_sa's password! ######################################################################### ######################################################################### ######################################################################### PLEASE REMEMBER THESE PASSWORDS!!! Password recovery is not a simple process: 90 - It is service affecting. - It requires console access to the CTP - It requires rebooting of the device ######################################################################### ######################################################################### ######################################################################### Enter New Password for ctp_sa Retype New Password for ctp_sa Changing ctp_audit's password! ######################################################################### ######################################################################### ######################################################################### PLEASE REMEMBER THESE PASSWORDS!!! Password recovery is not a simple process: - It is service affecting. - It requires console access to the CTP - It requires rebooting of the device ######################################################################### ######################################################################### ######################################################################### Enter New Password for ctp_audit Retype New Password for ctp_audit Backing up /home to nonvolatile storage.. Backing up / to nonvolatile storage.. [ctp_cmd@ctp_215:~ 1]>
After the password script finishes the upgrade is complete.