Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition | |||
|
|
Solution Type Problem Resolution Sure Solution 1003727.1 : System Management Services: Upgrading SMS 1.3 to 1.4.1 fails with smsrestore error
PreviouslyPublishedAs 205251 Symptoms The upgrade of SMS 1.3 to 1.4.1 on the system controllers of a SF12K/SF15K may fail with an error from smsrestore: ERROR: smsrestore: Attempt to decompress /var/tmp/sms_backup.1.3.cpio was unsuccessful, restore of archive failed. Log file is /var/sadm/system/logs/smsrestore. Exiting. Resolution This causes the upgrade to fail and to get your SMS in an undefined state. The full (error) sequence is: # ./smsupgrade ../Product : : Installation of <SUNWwccmn> was successful. : : Verifying that all SMS packages are installed.OK Setting up /etc/init.d/sms run control script for SMS 1.4.1 New SMS version 1.4.1 is active Restoring SMS from /var/tmp/sms_backup.1.3.cpio after upgrade. Please wait. . . smsrestore /var/tmp/sms_backup.1.3.cpio ERROR: smsrestore: Attempt to decompress /var/tmp/sms_backup.1.3.cpio was unsuccessful, restore of archive failed. Log file is /var/sadm/system/logs/smsrestore. Exiting. Attempting to start daemon picld /etc/init.d/picld start smsupgrade complete. Log file is /var/sadm/system/logs/smsupgrade. The image-file made by the smsrestore was ok, but couldn't be used. Debugging the error messages shows: cpio: Cannot create symbolic link "/usr/bin/scp" -> "opt/SUNWSMS/bin/scp", errno 2, No such file or directory cpio: Cannot create symbolic link "/usr/bin/ssh" -> "opt/SUNWSMS/bin/ssh", errno 2, No such file or directory The solution for this is to remove the following links in /opt/SUNWSMS/bin/ BEFORE you start the smsupgrade command for the first time: /opt/SUNWSMS/bin/scp -> /usr/bin/scp /opt/SUNWSMS/bin/ssh -> /usr/bin/ssh After this, the smsupgrade command and the smsrestore command will run fine. Since scp and ssh may be needed, you have to restore both links after the smsupgrade command. The links can be restored by using: ln -s /usr/bin/scp /opt/SUNWSMS/bin/scp ln -s /usr/bin/ssh /opt/SUNWSMS/bin/ssh When you already tried to upgrade the SMS and ran into the problem, you need to restore the old situation back from a backup and remove the links and start the smsupgrade again. (SMS can be in an undefined state after the smsupgrade error and therefore a clean start is needed). Additional Information The reason why SMS uses the links to the binaries is because the fomd daemon. SMS uses it for files transfer propagation. As these are just links it actually does use the binaries in /usr/bin/. Product Sun Fire 12K Server Sun Fire 15K Server sms, upgrade, fail, smsrestore Previously Published As 79312 Change History Date: 2004-11-24 User Name: 25440 Action: Approved Comment: Added "System Management Services" to title to avoid people thinking this had to do with mobile phone text messages. Publishing. Version: 4 Date: 2004-11-24 User Name: 25440 Action: Accept Comment: Version: 0 Date: 2004-11-24 User Name: 101037 Action: Approved Comment: Document looks fine Version: 0 Date: 2004-11-24 User Name: 101037 Action: Accept Comment: Version: 0 Date: 2004-11-24 User Name: 20696 Action: Approved Comment: Please review again Version: 0 Date: 2004-11-23 User Name: 146765 Action: Rejected Comment: Well written SRDB. A few things to clarify: 1. Can you document under what conditions the scp and ssh links are seen because it is not there in all cases. 2. The solution is to remove the links. It is not clear whether you are suggesting to remove the links after the error or before attempting to do smsupgrade the first time. Please clarify. 3. The last statement says to restore the links. Can you document to restore the links with the "ln" command? Version: 0 Date: 2004-11-23 User Name: 146765 Action: Accept Comment: Version: 0 Date: 2004-11-23 User Name: 20696 Action: Approved Comment: Please verify Version: 0 Date: 2004-11-23 User Name: 20696 Action: Created Comment: Version: 0 Product_uuid 077fd4c5-df8f-4320-ad69-7d01603a674d|Sun Fire 12K Server 29e4659c-0a18-11d6-9fa1-e67bbc033df8|Sun Fire 15K Server Attachments This solution has no attachment |
||||||||||||
|