Restoring DOMAIN Configurations
We are going to discuss restoring domain configurations after the system board replacement. Have your Spark T5-2 panicked? Are you in need of a motherboard replacement in Spark T5-2? As per standard practice, you will open a case with your hardware vendor or oracle directly if you have direct support with them.
So you opened a case with your vendor and they have replaced the motherboard and they have given you server back with factory default settings.
Will it work properly as earlier it might be hosting many domains as your server is running as control domain. Once you get the server back online and you run basic command to see your domain configuration and see something like below.
Which means you have lost all LDOM configuration. In this article, we are discussing the same about restoring domain configurations.
# ldm ls NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME primary active -n-c-- UART 256 511G 0.1% 0.1% 7m
What is this? Where my domain went. This was serving 20 domains. What to do next for restoring domain configurations?
This scenario has been observed after motherboard or so-called system board replacement in spark T series servers running as CDOM. In this example, CDOM is running with Solaris 11 and 20 domains are configured on it.
After analyzing the situation I got one of my old notes related to this which I find still feasible and works like charm. So decided to share as it saved my day and avoided the waste of many days to restore all the domains and keep business running.
spconfig facility takes backup of system configurations. As per standard practice, administrators take spconfig backup before any configuration changes to domain configurations. Also, the system keeps some autosaved versions of spconfig which is the real key in restoring domain configurations. Let’s see how to restore domain configuration back and bring ldoms disappeared in business. Conceptual steps for how to restore domain configuration after motherboard replacement on Spark T5-2 is as below.
How to Restore Domain Configuration
1.Lets see how we can get available list of autosaved configurations. Below command will provide list of autosaved configuration.We can understand recovery from spconfig in solaris. # ldm list-spconfig -r 061217 [newer] 080318 [newer] 090918 [newer] 200619 [newer] 20190914 [newer] 2.Add the latest available config with the help of autosave_config that is specified using below command. # ldm add-spconfig -r 20190914 3.Now you can see new configuration which we have added using below. # ldm list-spconfig 4.Shutdown the cdom server from OS side. # shutdown -y -g0 -i0 5.Powercycle server from ILOM >> reset /System 6.Connect back to console >> start /HOST/console 7. At this moment once server is back online you are able to see the ldom configurations. Looking quite better hold on you can see ldoms started but when you try to connect to it you can,t. guest domains usages zpools from which boot devices are created is not imported. 8.You can verify using below. # zpool status 9.We have to import zpool use below command to import. # zpool import 10.Validate again with zpool status command you will be able to see the zpool devices. 11.Stop all the ldoms using below.Use –f flag to forcibly stop ldom if needed. # ldm stop <ldomname> 12.Start all the ldoms using below # ldm start <ldomname> 13.Stop/start will place all ldoms to OK prompt.Boot all ldoms and validate them once online. ok> boot
That,s it about restoring domain configurations after motherboard replacement on Spark T5-2. You should be OK now. Thanks in advance to go through the procedure outlined above.
||||| Cheers |||||