Wrote this script earlier and said to hicksd8 that I'd post it here, it's just a quick and dirty hack to change the hostid of a global zone on a Solaris Virtual running under a hypervisor - manes and ID changed to protect the inocent.
Once again, thank you for this. Knowing that this technique works on Solaris 11 is new knowledge. I must say for clarity of future reading that this code only applies to Solaris x86. Where did you put this script to execute automatically at boot time?
(If you are in a position to develop and test a Solaris SPARC version then I'll post that code too.)
Last edited by hicksd8; 11-08-2014 at 12:22 PM..
Reason: correct typo
The script is located in /usr/local/bin which is where I tend to put anything that I write to complete an admin function.
At the moment it is a manual job to run the script, however I will probably implement it as a service at some point and I'll put a copy in /etc/init.d just for completeness.
Would quite like to try this with a sparc based M/C and can't actually see why it wouldn't work although it would probably require the adb as against the mdb But right now I have only got access to 2 * Ultra 10's one running 2.6 amd one running 2.7 so not much chance of a proof of concept there.
Obviously it will be the same situation on a sparc and the hostid won't persist across a reboot.
Regards
Dave
Last edited by rbatte1; 08-27-2014 at 12:30 PM..
Reason: Changed CODE tags to ICODE tags
You're not wrong. On SPARC I use adb to modify the hostid. On both x86 and SPARC I insert lines at the end of /etc/rc2.d/S20sysetup so that they execute every time the machine boots.
Following below is a copy of the S20sysetup file from my SPARC system.
Again, I've not tested this code on Solaris 11 but it works great on Solaris 10.
All this stuff makes a good knowledge base for future readers and also means that you can help out on any hostid and lmgrd questions too. There doesn't seem to be too much knowledge about on this.
Best
hicksd8
---------- Post updated at 07:57 PM ---------- Previous update was at 07:54 PM ----------
No wonder license server support people are still asking these types of questions!!! I just dealt with another one (locally).
It seems that people bought extremely expensive perpetual software licenses years ago which are protected by license servers like lmgrd (FlexLM). The hardware it is running on (eg, Sun Ultra1's) are now completely knackered and end-of-life but the original software company has gone bust, been taken over (several times), or the company is trying to sell their new software, and so to get the license file regenerated for a new host is impossible. However, the end user has a legal right to run the software and simply wants to move servers.
The software company simply doesn't understand, or deliberately won't understand the problem.
I hope this thread becomes the definitive place to look for help on this.
You and me both, just for completeness - here are the guts of the logger.sh script that all my scripts call to log to a single journal/log file for the day.
This just allows multiple scripts to log as required - all to the same output file - handy for error checking etc.
Hi, hoping someone can help, its been a while since I used Solaris.
After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin)
However, the NGZ cannot access any other netwqork devices, it can't even see the default router
... (2 Replies)
I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially
Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
I can't compile anything, the final make error says "Command failed for target `install-recursive'", but I am not able to identify the root cause of that error, I tried with cc, gcc 4.5, also gcc 5.2, using make, using gmake 3.82, ld 5.11, gld 2.31... and I am totally stuck yet... please help, to... (4 Replies)
Am new on Solaris
If I compare with ESXi default timezone is UTC and we have to set BIOS timezone to UTC too .
What we follow and best practice in Solaris Sparc servers .
Thanks in advance . (2 Replies)
Have 2 nics on physical system
net0 phys 1500 up --
net1 phys 1500 up --
1. I want to create a link aggregation with LACP enabled with above 2 nics
2. Create port-group(Like we create on ESXi) with VLAN-ID 2141
3. And assign this... (0 Replies)
I have configured three zones on Solaris-11. These are non-global zones contain Solaris-11 only. One of the zone is not booting up, complaining about IP address in use, while it is not.
root@tdpdmsp02 # zoneadm list -icv
ID NAME STATUS PATH BRAND IP... (3 Replies)
Hi All ,
I try to install some packages in my global zone...
On the execution of the installion of the script it quits by saying the error
"Non global zone check failed"
Kindly help me in this regard
Thanks in advance,
jeganr (7 Replies)