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

–UPDATE – Building a zone quickly using the templates installed in global – UPDATE

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

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: 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

Building a zone quickly using the templates installed in global

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:

create -b
set brand=solaris
add rootzpool
add storage dev:dsk/xxxx
set zonepath=/zones/%{zonename}
set autoboot=true
add fs
set dir=/etc/globalname
set special=/etc/globalname
set type=lofs
add options ro
set ip-type=exclusive
add anet
set configure-allowed-address=true
set linkname=net0
set lower-link=aggr0
set vlan-id=xxx

*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:


Other examples:


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/ rpool/zones turk-log z
45 22 * * * /opt/site/ rpool/zones aiserver z
45 23 * * * /opt/site/ 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.

September 2018

Mo Tu We Th Fr Sa Su
Aug |  Today  |
               1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Search this blog



Most recent comments

  • Hello, It was more for internal consumption, I will check it over and send you a version, can you em… by Maria MacCallum on this entry
  • Hello Maria, i don't see the script setup–, can you post it ? I'am looking too for an example… by FRANCISCO on this entry
  • Solaris 11.2 returns the value of SI_MEMSIZE in Mb's now by Maria MacCallum on this entry

Blog archive

RSS2.0 Atom
Not signed in
Sign in

Powered by BlogBuilder