Thanks for the explanation… I guess I’ve been ignorant since V3.1 beta muscle memory just types -Fr 0
I’ll work on -rl 0 and check it out.
Original Message:
Sent: 5/7/2024 3:45:00 AM
From: Steve Munday
Subject: RE: How can we update service pack on multiple AIX servers at once during maintenance window.
With all the references to "shutdown -Fr 0" it might be worth reading the below from @Russell Adams.
"I have to lecture everyone about this...
Never never never use shutdown -F! Can I get fireworks and sparkles?
The -F flag for shutdown means FORCE down, not fast down. If your giant database doesn't come down in 60 seconds, -F will kill -9 it resulting in a crashed database. I've had multiple customers cause HA failovers (killed clstrmgrES) and many needless integrity checks of crashed DBs due to this.
Regular shutdown is fine. It waits and sends repeated kill -15 until everything exits cleanly. Only use -F if you're already shutting down, and it isn't coming down and appears hung.
I think IBM training got lazy years ago and taught "shutdown -Fr" instead of "shutdown -rl now". No one adds -F to mean force, they just forget to use "now" instead of the default delayed shutdown.
If you're paying attention, -l means log the shutdown. You do check your boot and console alog's after booting? You want to keep records of what happened? Then log your shutdown."
Steve
------------------------------
Steve Munday
AIX, IBM i, HMC, PowerVM
------------------------------
Original Message:
Sent: Fri May 03, 2024 04:57 PM
From: Tom McGivern
Subject: How can we update service pack on multiple AIX servers at once during maintenance window.
Shutdown -Fr 0. # runs on a single system, so run it on the target, not. Your jump box .. don't know if sequential or parallel applies. It's just 1 system, 1 command.
dsh isn't required
If you have a text file with the hosts you want to reboot (hostnames, or IP addresses.
cat syslist.txt
10.123.123.10
10.123.123.11
10.123.123.12
Then, run a for loop
for S in $(cat sys list.txt)
do
ssh -nq $S sudo shutdown -Fr 0 > ${S}-reboot.log 2>&1 &
done
You'l have to play with this a bit in your environment. Some sudo configurations require a tty. SO you'd have to specify -tt on the ssh command
Which also means it couldn't run in the background.
If the ID on the jump box doesn't match the ID on the target server, then you'd have to specify that on the command line.
Remember you need to ssh to an ID that has the ability to run shutdown directly or via sudo (or some equivalent command
This is just one brute force method…
I'm surprised you have so many servers and don't have ILMT running, and thus big fix available…. But, maybe it's just us that gets the IBM auditor abuse..
Tom
Original Message:
Sent: 5/3/2024 9:58:00 AM
From: Manoj Kumar
Subject: RE: How can we update service pack on multiple AIX servers at once during maintenance window.
Thank you again.
@Andrey: We wanted to use original image to update the service pack update but if that is not possible with original, may be we will use clone image as you mentioned. Actually whenever we reboot the server with clone image one or two security software get crashed. so they have to fix it. We wanted to avoid that situation. We don't have dsh in our environment, so how can we install that. Out jump server is Linux server. Can we proceed from that jump server to all AIX LPAR. All AIX lpar are password less from that jump server.
@Tom: Will this command "shutdown -Fr 0" run sequentially or parallelly?
------------------------------
Manoj Kumar
Original Message:
Sent: Fri May 03, 2024 07:43 AM
From: Tom McGivern
Subject: How can we update service pack on multiple AIX servers at once during maintenance window.
Using just standard AIX, without other "tools"...
Can you ssh into the target systems using keys? If so, spin through them and issue a "sudo shutdown -Fr 0" or some appropriate script that will reboot the remote systems
Original Message:
Sent: 5/3/2024 6:32:00 AM
From: Manoj Kumar
Subject: RE: How can we update service pack on multiple AIX servers at once during maintenance window.
First of all thank you everyone for the response. I am happy that I am getting lot of thoughts on this.
But my question still same. If we have to update service pack on bulk servers how can we update on all servers at once without any tools.
If we are updating service pack and rebooting the servers one by one by any method, it is always going to take time. Because some servers even might take time to come up. We always apply the service pack on original image, for backup purpose we take the clone before 1 or 2 day. If we are only rebooting the servers during patching only how can we reboot all servers together at once. Earlier when we had tool to patch the servers, we can easily patch/reboot all servers together. But is there any way in AIX we can achieve this thing without any tool.
------------------------------
Manoj Kumar
Original Message:
Sent: Thu May 02, 2024 08:29 AM
From: Andrey Klyachkin
Subject: How can we update service pack on multiple AIX servers at once during maintenance window.
Reboot of an AIX server lasts ca. 5 to 10 minutes. If you have 4 hours maintenance window, you have 240 minutes. It is usually enough. I really saw only one application in my life which started more than 2 hours.
As many already suggested, do clones, do alt_disk_copy and make updates in the alt_rootvg instead of rootvg. Then you need only 15 minutes of downtime to reboot AIX.
If you have PowerHA for your production workloads you usually don't even need these 15 minutes downtime. Depending on how fast your application can be moved to another node.
What else I'd recommend is to look at Live Update. If it works in your environment, you can save even more minutes.
------------------------------
Andrey Klyachkin
https://www.power-devops.com
Original Message:
Sent: Wed May 01, 2024 05:59 AM
From: Manoj Kumar
Subject: How can we update service pack on multiple AIX servers at once during maintenance window.
Hello Team,
How can we update service pack on multiple servers at once during maintenance window. We need to reboot the servers as well after the SP update.
How we can achieve this? We have fixed window for 4 hr for all servers (approx 200 in a group).
------------------------------
Manoj Kumar
------------------------------