Re: /usr/sbin/sys-unconfig
### never delete any of your cribs ###
- just dug out the procedure; from the back of an olde backup
Here it is in all of it's splendour
##############################
Pre-work.
Get the ufsdumps on a server on a local network. Ie one of the ssp's.
The images need to be on the 192.168.42.x network or you will have to plumb up
another interface later on the public.
1) Create the /etc/ethers entries for global and local mac adresses for the domain.
2) Add the entries for the domains ip in /etc/hosts
3) Setup the client as an jumpstart client using add_install_client.
4) Bringup -A off the domain and if 2.6 limit-ecache-size.
5) show-nets to select the correct interface and add a nvalias to sspnet.
6) boot sspnet -s
7) format and select the root disk. Should be a nice c0t0d0s2 :)
8) slice it up as you want and label it.
9) newfs the slices you made.
10) nfs mount the ufsdump directory onto /mnt
11) mount the root slice onto /a
12) cd /a; ufsrestore -xf /mnt/root-ufsdump
13) Stop veritas from coming up.
# touch /a/etc/vx/reconfig.d/state.d/install-db
# rm -f /a/etc/vx/reconfig.d/state.d/root-done
14) Comment out veritas and disk suite entries for rootdisk from /a/etc/system
# TERM=sun-cmd; export TERM; vi /a/etc/system
* rootdev:/pseudo/md@0:0,40,blk for disksuite
* set md:mddb_bootlist1="sd:7:16 sd:15:16 sd:23:16 sd:31:16" for disksuite
* rootdev:/pseudo/vxio@0:0 for veritas
* set vxio:vol_rootdev_is_volume=1 for veritas
15) Copy the good path_to_inst to the old root dir
# cp -p /etc/path_to_inst /a/etc/path_to_inst
16) Remove the old devices tree and dsk/rdsk entries.
# rm -rf /a/devices/*
# rm -rf /a/dev/dsk/*
# rm -rf /a/dev/rdsk/*
17) Recreate those trees for Solaris 2.6.
# drvconfig -r /a/devices -p /a/etc/path_to_inst
# cd /devices
# find . -print | cpio -pduVm /a/devices
# disks -r /a
# devlinks -r /a
18) Recreate those trees for Solaris 7 / 8 / 9.
# rm -f /a/dev/cfg/c*
# devfsadm -c disk -r /a -p /a/etc/path_to_inst
19) Sort out the /a/etc/vfstab and change to the underlying devices.
Hash out vxvm volumes or disk suite volumes.
20) Setup the boot block
# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
21) Sort out the network or the reboot will take lots of time due to nis+ and dns.
Just edit the /a/etc/hosts and /a/etc/hostname.* files to reflect the new values.
22) Sort out the defaultrouter + don't route
# echo "default ip addr" > /a/etc/defaultrouter
# touch /a/etc/notrouter
23) Sort out the /a/etc/ssphostname. Put the admin network name of the main ssp.
The default is main_ssp with a corresponding entry in the /a/etc/hosts file.
Use the 192.168.42.x value for the ssp address.
24) Stop the VCS cluster form starting.
# mv /a/etc/rc2.d/S92gab /a/etc/rc2.d/s92gab
# mv /a/etc/rc2.d/S70llt /a/etc/rc2.d/s70llt
# mv /a/etc/rc3.d/S99vcs /a/etc/rc3.d/s99vcs
25) Edit /a/etc/syslog.conf and remove the chainsaw entry
26) Restore the other filesystems.
# cd /
# umount /a
# mount /dev/dsk/c0t0d0s6 /a
# cd /a; ufsrestore -xvf /mnt/var-ufsdump
27) Umount all filesystems and reboot the box with the reconfigure option.
# umount /a
# umount /mnt
# luxadm set_boot_dev /dev/dsk/c0t0d0s0
28) Setup the eeprom
# eeprom "local-mac-address?=true"
29) Sort out the dns entries (XXX = mpc/jgc/mit)
# rcp -p sda:/etc/resolv.conf.XXX /etc/resolv.conf
30) Reconfigure verbose reboot
# reboot -- -rv
31) The first reboot will fail the interfaces, this is because the reconfigure has not
sorted out the qfe in /dev/ before the kernel tries to mount it. Sorted on next reboot
or manual configure.
32) Install veritas the standard way.