Hi,
There seems to be 3 patches for ESX 3.0.1, is there an order in witch these patches should apply, since they all seem to have the same date, but numbers are different ???
should one follow the patch file name as order of application???
Do they have dependencies one to other...
Thanks \!!!
I agree with Vliegenmepper.
This is how i do it.
I cant say that this is the way to do it, but this is the release by esxupdate info and it works for me.
I use it as a onliner and it works fine.. first I unpack the tar files with for i in `ls -1`; do tar -zxvf $i; done;
esxupdate -n -r file:/var/updates/ESX-1006511/ update;
esxupdate -n -r file:/var/updates/ESX-1410076/ update;
esxupdate -n -r file:/var/updates/ESX-2158032/ update;
esxupdate -n -r file:/var/updates/ESX-2066306/ update;
esxupdate -n -r file:/var/updates/ESX-6921838/ update;
esxupdate -n -r file:/var/updates/ESX-8173580/ update;
esxupdate -n -r file:/var/updates/ESX-9986131/ update;
esxupdate -n -r file:/var/updates/ESX-3996003/ update;
esxupdate -n -r file:/var/updates/ESX-2092658/ update;
esxupdate -n -r file:/var/updates/ESX-2031037/ update;
esxupdate -n -r file:/var/updates/ESX-1917602/ update;
esxupdate -n -r file:/var/updates/ESX-5497987/ update;
esxupdate -n -r file:/var/updates/ESX-1271657/ update;
esxupdate -r file:/var/updates/ESX-6075798/ update
I do it like this (I've only created a separated "list"-file in where I place the patchnumbers.)
Maybe it's easier to place the updates on a shared LUN?, this way you don't have to copy all the updates to each server everytime
I do it like this (I've only created a separated
"list"-file in where I place the patchnumbers.)
Maybe it's easier to place the updates on a shared
LUN?, this way you don't have to copy all the updates
to each server everytime
That is exactly what I do. It is on a SMB mount that is always accessible. You rename the patches in the order that you want to deploy and then run the script as I posted above.
I am working on a script
cd /var/updates
#
\# 11/30/06
#
tar -xvzf /var/updates/ESX-1006511.tgz
esxupdate --noreboot -r file:/var/updates/ESX-1006511 update
tar -xvzf /var/updates/ESX-1410076.tgz
esxupdate --noreboot -r file:/var/updates/ESX-1410076 update
tar -xvzf /var/updates/ESX-2158032.tgz
esxupdate --noreboot -r file:/var/updates/ESX-2158032 update
#
\# 12/28/06
#
tar -xvzf /var/updates/ESX-2066306.tgz
esxupdate --noreboot -r file:/var/updates/ESX-2066306 update
tar -xvzf /var/updates/ESX-6921838.tgz
esxupdate --noreboot -r file:/var/updates/ESX-6921838 update
tar -xvzf /var/updates/ESX-8173580.tgz
esxupdate --noreboot -r file:/var/updates/ESX-8173580 update
tar -xvzf /var/updates/ESX-9986131.tgz
esxupdate --noreboot -r file:/var/updates/ESX-9986131 update
#
\# 01/31/07
#
tar -xvzf /var/updates/ESX-1271657.tgz
esxupdate --noreboot -r file:/var/updates/ESX-1271657 update
tar -xvzf /var/updates/ESX-1917602.tgz
esxupdate --noreboot -r file:/var/updates/ESX-1917602 update
tar -xvzf /var/updates/ESX-2031037.tgz
esxupdate --noreboot -r file:/var/updates/ESX-2031037 update
tar -xvzf /var/updates/ESX-2092658.tgz
esxupdate --noreboot -r file:/var/updates/ESX-2092658 update
tar -xvzf /var/updates/ESX-3996003.tgz
esxupdate --noreboot -r file:/var/updates/ESX-3996003 update
tar -xvzf /var/updates/ESX-5497987.tgz
esxupdate --noreboot -r file:/var/updates/ESX-5497987 update
tar -xvzf /var/updates/ESX-6075798.tgz
esxupdate --noreboot -r file:/var/updates/ESX-6075798 update
is this order of installion proper ? the 31/1 patch order differs from daniel-san
I cant check right now
But if you run esxupdate bla bla info you will see release date and time. If I remeber right there was three patches released the same day, so I sorted them out on timestamp.
IE
esxupdate -r file:/var/updates/ESX-1006511 info
This is the correct order:
ESX-1006511
ESX-1410076
ESX-2158032
ESX-2066306
ESX-6921838
ESX-8173580
ESX-9986131
ESX-1271657
ESX-1917602
ESX-2031037
ESX-2092658
ESX-3996003
ESX-5497987
ESX-6075798
BTW, why not make your script more dynamically in stead of all the hard coded stuff?
hehe,
is a good thing, but my scripting knowledge is very low end
if there are some suggestions, I would be pleased to see it in this post
Okay once again.
Put all your patches on a windows share that is accessible from each esx server and use smb or cifs to mount the directory. Name the patches on the share in the order that you want them installed. Cut and paste the following script and save and chmod it. You can delete the mount check stuff if you know the mount is up. It is simply checking for a text file to exist and if not found it will run "mount -a" and hopefully you have your smb mount in your fstab.
Save your credentials to mount the volume in /etc/vmwarecred as:
username=isoshare or whatever
password=isoshare or whaever
Then have the mount in your fstab as:
//lab2k3fs142/vmiso /vmimages/vmiso smbfs uid=501,gid=501, credentials=/etc/vmwarecred 0 0
Good luck!
#!/bin/sh
\# All updates are found at the NFS mount vmiso under the esxupdates folder
\# Set some variables here
typeset -r MOUNT="/opt/vmiso/esxupdates"
\# Functions here
mountcheck()
{
echo "Checking that the updates are available, Please wait..."
echo ""
if [\[ -f "$MOUNT/mount-up.txt" ]]
then
return
else
mounterror
fi
}
mounterror()
{
echo "Mount is not up, trying to remount..."
mount -a
return
}
update()
{
for UPDATE in $( ls $MOUNT/*.tgz )
do
cd /var/updates
echo "Extracting $UPDATE, Please wait..."
tar zxf $UPDATE
echo""
\# Get the update directory
UPDATEDIR=$(ls -lc $UPDATE | cut -f5 -d"/" | cut -f1 -d".")
chown root:root /var/updates/$UPDATEDIR
cd /var/updates/$UPDATEDIR
echo "Applying $UPDATEDIR to this server, Please wait..."
esxupdate -n --force update
echo ""
done
}
cleanup()
{
rm -rf /var/updates/*
}
\################
\# Main Program #
\################
\# Check that the mount is up before applying updates
clear
mountcheck
update
cleanup
#END
This is the correct order:
ESX-2158032
ESX-1410076
ESX-1006511
ESX-9986131
ESX-8173580
ESX-6921838
ESX-2066306
ESX-6075798
ESX-5497987
ESX-3996003
ESX-2092658
ESX-2031037
ESX-1917602
ESX-1271657
ESX-3199476
ESX-5031800
ESX-5885387
ESX-6050503
ESX-6856573
ESX-9865995
BTW, why not make your script more dynamically in stead of all the hard coded stuff
Hi there,
as far as I know VMware is developing automated patching for ESX. Maybe with 3.1 there are significant changes.
As long as we have to do it by hand check out this interesting article
http://virtrix.blogspot.com/2007/03/vmware-autopatching-your-esx-host.html
cheers,
daniel
That's fun!
I just installed patches from 03/29/07 using the script linked above. Everything worked fine...