I made some cleaning in my AI server and then another issue came up. 
Particularly because I cleand the /tftpboot folder:

# installadm create-service -n snv_107_x86_2 -s 
/export/images/x86/osol-0906-107-ai-x86.iso /export/microroot/snv_107_x86/
Setting up the target image at /export/microroot/snv_107_x86/ ...
ln: target `/var/ai/image-server/images//export/microroot/snv_107_x86/' 
is not a directory: No such file or directory
Registering the service snv_107_x86_2._OSInstall._tcp.local
Could not retrieve DHCP information from dhcp server
  Please create a DHCP macro named dhcp_macro_snv_107_x86_2 with:
  Boot server IP (BootSrvA) : 129.156.229.201
  Boot file      (BootFile) : snv_107_x86_2
  GRUB Menu      (GrubMenu) : menu.lst.snv_107_x86_2

  Additionally, if the site specific symbol GrubMenu
  is not present, please add it as follows:
  /usr/sbin/dhtadm -g -A -s GrubMenu -d Site,150,ASCII,1,0

Failed to assign DHCP macro to IP address. Please assign manually.
umount: warning: /tftpboot/I86PC.OpenSolaris-5 not in mnttab
umount: /tftpboot/I86PC.OpenSolaris-5 no such file or directory
mount: Mount point /tftpboot/I86PC.OpenSolaris-5 does not exist.
copying boot file to /tftpboot/pxegrub.I86PC.OpenSolaris-1


So I created the correct link for the first error, and regarding the 
second: why does it try to mount/umount /tftpboot/I86PC.OpenSolaris-5? 
Shouldn't installadm check if those directories exist? More important, 
shouldn't they actually exist given that they were related to previous 
(and removed) services?


 From a previous log:
#mount | grep OpenSol
/tftpboot/I86PC.OpenSolaris-1 on /export/microroot/snv_106_x86/boot read 
only/setuid/devices/dev=2d90010 on Fri Feb 27 15:10:11 2009
/tftpboot/I86PC.OpenSolaris-2 on /export/macroroot/snv_106_x86//boot 
read only/setuid/devices/dev=2d90010 on Mon Mar  2 10:51:29 2009
/tftpboot/I86PC.OpenSolaris-3 on /export/microroot/snv_106_x86//boot 
read only/setuid/devices/dev=2d90010 on Mon Mar  2 12:56:13 2009
/IPS on install/work 
read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=2d9001d on Wed 
Mar  4 14:48:05 2009
/tftpboot/I86PC.OpenSolaris-4 on 
/var/ai/image-server/images/server/images/osol-0811-rc2-ai/boot read 
only/setuid/devices/dev=2d90010 on Wed Mar  4 15:25:54 2009
/tftpboot/I86PC.OpenSolaris-5 on /export/microroot/snv_107_x86//boot 
read only/setuid/devices/dev=2d90010 on Wed Mar  4 15:27:05 2009

Note those services were deleted before I ran the mount command.



At this point installadm complains about /tftpboot/I86PC.OpenSolaris-5 
not being so I'll create the folder:

# mkdir /tftpboot/I86PC.OpenSolaris-5
# installadm create-service -n snv_107_x86 -s 
/export/images/x86/osol-0906-107-ai-x86.iso 
/export/microroot/snv_107_x86/Setting up the target image at 
/export/microroot/snv_107_x86/ ...
ln: target `/var/ai/image-server/images//export/microroot/snv_107_x86/' 
is not a directory: No such file or directory
Registering the service snv_107_x86._OSInstall._tcp.local
Could not retrieve DHCP information from dhcp server
  Please create a DHCP macro named dhcp_macro_snv_107_x86 with:
  Boot server IP (BootSrvA) : 129.156.229.201
  Boot file      (BootFile) : snv_107_x86
  GRUB Menu      (GrubMenu) : menu.lst.snv_107_x86

  Additionally, if the site specific symbol GrubMenu
  is not present, please add it as follows:
  /usr/sbin/dhtadm -g -A -s GrubMenu -d Site,150,ASCII,1,0

Failed to assign DHCP macro to IP address. Please assign manually.
umount: warning: /tftpboot/I86PC.OpenSolaris-5 not in mnttab
umount: /tftpboot/I86PC.OpenSolaris-5 not mounted
mount: /var/ai/image-server/images/server/images/osol-0811-rc2-ai//boot: 
No such file or directory


Now it'll try to mount a directory used in another service. If we check 
again the mount points I previously had:
/tftpboot/I86PC.OpenSolaris-4 on 
/var/ai/image-server/images/server/images/osol-0811-rc2-ai/boot read 
only/setuid/devices/dev=2d90010 on Wed Mar  4 15:25:54 2009


Something looks meesed up here, not sure if it's my system? Anyway I 
think installadm shouldn't rely on the content in /tftpboot in order to 
create a new service. Also I think installadm should delete/umount those 
folders when I removed the related services.


Thanks,
David



Reply via email to