Wednesday, April 29, 2009

svccfg warnings:

Weird one this..
On one of my Solaris 10 boxes, after rebooting to single user mode, the following error was observed on the console;

svccfg warnings:
svccfg: Temporary service "TEMP/application/psncollector" must be deleted before this manifest can be imported.
svccfg: Import of /var/svc/manifest/application/psncollector.xml failed. Progress:
svccfg: Service "application/psncollector": not reached.
svccfg: Instance "default": not reached.
[ Apr 29 09:26:00 Method "start" exited with status 0 ]
[ Apr 29 09:36:48 Stopping because service disabled. ]
[ Apr 29 09:36:48 Executing stop method (null) ]
[ Apr 29 09:38:27 Timeout override by svc.startd. Using infinite timeout ]
[ Apr 29 09:38:30 Method "start" exited with status 0 ]


The fix was to delete the TEMP manifest;
# svccfg
svc:> delete TEMP/application/psncollector
svc:> exit
# svcadm restart manifest-import
# Loading smf(5) service descriptions: 1/1


Bit strange that one - it only happened on one box out of the seven I was working on.

Tuesday, April 28, 2009

Temp internal network between primary and guest ldoms

This was useful as I could transfer a file directly without having to hop via any other hosts.

First step is to create the virtual switch and interfaces;
root@mycontrolldom # ldm add-vsw tmpsw primary
root@mycontrolldom # ldm add-vnet tmpvnic0 tmpsw primary
root@mycontrolldom # ldm add-vnet tmpvnic1 tmpsw myguestldom

Now plumb them up and give them an IP;
root@mycontrolldom # ifconfig vnet0 plumb
root@mycontrolldom # ifconfig vnet0 192.168.0.1 up
root@myguestldom # ifconfig vnet2 plumb
root@myguestldom # ifconfig vnet2 192.168.0.2 up

That's all there is to it. Now you can ping and scp across it.

Once finished, blow it all away with;

root@myguestldom # ifconfig vnet2 unplumb
root@mycontrolldom # ifconfig vnet0 unplumb
root@mycontrolldom # ldm rm-vnet tmpvnic0 primary
root@mycontrolldom # ldm rm-vnet tmpvnic1 myguestldom
root@mycontrolldom # ldm rm-vsw tmpsw