All 2 entries tagged 11-2
No other Warwick Blogs use the tag 11-2 on entries | View entries tagged 11-2 at Technorati | There are no images tagged 11-2 on this blog
March 31, 2015
Follow-up to Building a zone quickly using the templates installed in global from Maria's blog
I've scripted some of the work to make things a bit quicker.
Script is called setup-zone.sh
It will do the tedious copying and changing of the templates for you.
It creates a default manifest which you can change later if you like.
The script tells you what to do next.
To call it it's:
NEW: setup-zone.sh zonename initial-vid poolref
Follow the on screen questions
NEW: If you know you want the default manifest, it will create the zone for you too
Make sure you ensure the zone backup script is called in cron for your new zone!
February 23, 2015
The templates mentiond are in /opt/site installed at server build pkg is zone-stuff
1. Get SAN disk ref
2. copy template zonecfg & edit, change the storage ref and the vlan id:
add storage dev:dsk/xxxx
add options ro
*Note can't enable compression or dedup on the zfs here, do it in the manifest.
3.Copy the template sc profile and edit
Default password is the usual temporary initial password.
Check that the network settings are correct
The name of the profile should be zonename-sc-profile.xml so that the backup script finds it.
4. Copy the template manifest and edit
Add /remove packages as needed, the default is the minimum.
Checkout the repo on ports 8082 and 81, if it's a webdev box tomcat/apache & build user stuff will be required:
These should always be there:
The name of the manifest should be zonename-manifest.xml so that the backup script finds it.
5. zonecfg -z zonename -f zonename.cfg
6. zoneadm -z zonename install -m zonename-manifest.xml -c zonename-sc_profile.xml
zoneadm -z zonename boot
zlogin -C zonename
svcadm enable ipfilter
change the passwords
7. Check everything is OK with the zone.
8. Double check globalzone mounts a directory from the thumpers and start backing up the zone using cron:
45 21 * * * /opt/site/backup-zone.sh rpool/zones turk-log z
45 22 * * * /opt/site/backup-zone.sh rpool/zones aiserver z
45 23 * * * /opt/site/backup-zone.sh datapool/zones/aiserver/datapool aiserver p
Backup script takes a snapshot of the zone and copies the profile, the cfg and the snapshot to the thumper. For a pool it just backs up the pool.