on 10-16-2008 2:01 PM
I got a document for kernel update in UNIX based machine .Hereunder I pasted the steps ..In this am not able to understand step 4..Anybody please clarify it how can we compare the original kernel and the backup ..what is 840413 and 841992..Any mistake in the command.Please clarify the command of step4 for AIX .
1. Login as root
2. Make new backup directory
cd /
mkdir SIDkernel_10102007
3. Create latest kernel backup
cp -pr /sapmnt/SID/exe/* /SIDkernel_10102007
4. Compare the original kernel and the backup
du -sk /sapmnt/SID/exe/ --> 840413 /sapmnt/SID/exe
du -sk /SIDkernel_10102007 --> 841992 /SIDkernel_10102007
5. Make new shadow kernel directory
cd /
mkdir newkernel_175
6. Copy the new downloaded kernel files into /newkernel_175
7. Unpack the new downloaded kernel in folder /newkernel_175
SAPCAR -xvf SAPEXE_175-20000221.SAR
SAPCAR -xvf SAPEXEDB_175-20000223.SAR
8. Login as sidadm
9. Stop the SAP System
stopsap
10. Stop saposcol
saposcol -k
11. Login as root
12. Go to the current kernel directory
cd /sapmnt/SID/exe
13. Copy all extracted support packages into this folder
cp -pr /newkernel_175/* /sapmnt/SID/exe
14. Copy back the original file saproot.sh into this folder.
cp -p /SIDkernel_10102007/saproot.sh /sapmnt/SID/exe
15. Go to the current kernel directory
cd /sapmnt/SID/exe
Then run:
./saproot.sh SID
16. Login as sidadm
17. Start the saposcol service
saposcol
18. Start the SAP system
startsap
Thanks in advance
> 4. Compare the original kernel and the backup
> du -sk /sapmnt/SID/exe/ --> 840413 /sapmnt/SID/exe
> du -sk /SIDkernel_10102007 --> 841992 /SIDkernel_10102007
On Unix system you can get help for specific commands by using
man <commandname>
If you execute "man du" you will see, that "du" means "disk usage" and options "-s" and "-k" means "sum of directory" and "in kilobyte". The numbers are the sizes of the directories.
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I´m not sure why you should "compare" them. It´s ok that they are different, they have new correction and so the size can be different. I think that´s just a "rough estimate" if the kernel is complete. If it would be only half of the size then you would miss something, I think that´s the reason for that comparison.
Markus
Hi SAPStars,
I got a question here I have done the kernal upgrade by the help of this.
when I copy the uncar files in the TEMP folder to EXE folder using CP -PR , It is asking me for each file whether you want to overwrite the file and I ended giving yes,yes...........yes for nearly 800 files,
it took abt 30 mins, I mean it should directly overwrite all the files without user interaction,
Can anyone tell me the CP command option which i can use to get rid off this problem...
Thanks In Advance...
HariKrishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.