-
Recent Posts
Archives
- July 2020
- April 2020
- February 2020
- January 2020
- December 2019
- November 2019
- August 2019
- July 2019
- June 2019
- May 2019
- February 2019
- January 2019
- November 2018
- October 2018
- September 2018
- August 2018
- June 2018
- May 2018
- April 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- August 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- September 2016
- August 2016
- March 2016
- December 2015
- November 2015
- October 2015
- September 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- November 2014
- October 2014
- September 2014
- August 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
Categories
Category Archives: solaris
solaris migrate local zone from 10 to 11
sol10-server # zoneadm –z zone1 halt # showmount –e (server should be nfs server) # cd /export/zones/1 # find . -print | cpio -oP@ | gzip > /export/share/1.cpio.gz sol11-server # showmount -e s10-serv1 # mkdir /export/share # mount -F nfs … Continue reading
Posted in solaris
Leave a comment
solaris 11 install pkg
pkg list snort pkg list: no packages matching ‘snort’ installed pkg install -nv snort Packages to install: 1 Estimated space available: 11.95 GB Estimated space to be consumed: 25.15 MB Create boot environment: No Create backup boot environment: No Services … Continue reading
Posted in solaris
Leave a comment
solaris 11 bootenvironments
beadm list beadm create solaris-1 beadm list BE Active Mountpoint Space Policy Created — —— ———- —– —— ——- solaris NR / 2.41G static 2012-04-19 17:57 solaris-1 – – 57.0K static 2012-06-03 15:25 zfs list … rpool/ROOT/solaris 1.90G 12.2G 1.54G … Continue reading
Posted in solaris
Leave a comment
solaris 11 add pkg
svcadm disable application/pkg/server svccfg –s application/pkg/server setprop \ pkg/readonly=false svcadm refresh application/pkg/server svcadm enable application/pkg/server mkdir –p /var/tmp/new_package cd /var/tmp/new_package vi ips_rocks IPS makes software update easy! eval ‘pkgsend -s \ http://s11-serv1.mydomain.com open new_package@1.0-1’ export PKG_TRANS_ID=1300392779_pkg%3A%2F%2Fsolaris%2Fnew_package%401.0%2 C5.11-1%3A20110317T201259Z export \ PKG_TRANS_ID=1300392779_pkg%3A%2F%2Fsolaris%2Fnew_package%401.0%2 … Continue reading
Posted in solaris
Leave a comment
solaris11 pkg command
User Commands pkg(1) NAME pkg – Image Packaging System retrieval client SYNOPSIS /usr/bin/pkg [options] command [cmd_options] [operands] /usr/bin/pkg refresh [–full] [publisher …] /usr/bin/pkg install [-nvq] [-g path_or_uri …] [–accept] [–licenses] [–no-be-activate] [–no-index] [–no-refresh] [–no-backup-be | –require-backup-be] [–backup-be-name name] [–deny-new-be | … Continue reading
Posted in solaris
Leave a comment
solaris 11 etherstubs
etherstubs # dladm create-etherstub stub0 # dladm create-vnic -l stub0 vnic0 # dladm show-vnic LINK OVER SPEED MACADDRESS MACADDRTYPE VID vnic0 stub0 0 2:8:20:73:24:59 random 0 # dladm show-link LINK CLASS MTU STATE OVER net0 phys 1500 up — nic1 … Continue reading
Posted in solaris
Leave a comment
solaris 11 network configuration
NCP-network configuration profile DefaultFixed of Automatic DefaultFixed is manual config Automatic is then userconfigured of previously configured is used commands: netcfg netadm (if DefaultFixed is enabled) # netadm list netadm: DefaultFixed NCP is enabled; automatic network management is not available. … Continue reading
Posted in solaris
Leave a comment
network solaris 11
# svcadm disable nwam # svcadm enable network/physical:default # dladm show-phys # dladm show-link # ipadm create-ip bge0 # dladm show-link # ipadm show-if # ipadm create-if bge0 # dladm show-link # ipadm show-if # ipadm create-addr -T dhcp bge0/v4 … Continue reading
Posted in solaris
Leave a comment
solaris zfs manual replication (scripted)
#!/usr/bin/ksh echo “source pool/fs (no leading slash) : \c ” read s echo “destination pool/fs (no leading slash) : \c ” read d echo “cleaning up destination.” zfs destroy -f $d 2> /dev/null; echo “done.” echo creating base snapshot zfs … Continue reading
Posted in solaris
Leave a comment
solaris zfs replication with mbuffer
mbuffer and incremental snapshots: download and compile mbuffer on source, create pool filesystem and snapshot. -=-=-=-=-=-=-=-=-=-= zpool create source disk1 zfs create source/f1 zfs snapshot source/f1@a -=-=-=-=-=-=-=-=-=-= on destination, create pool and filesystem. -=-=-=-=-=-=-=-=-=-= zpool create dest disk1 zfs create … Continue reading
Posted in solaris
Leave a comment
zones quick and dirty
Create new local zones using the clone of a snapshotted zfs filesystem, 1. create a zpool that will hold the zones 2. create master filesystem that will be cloned 3. configure masterzone and install 4. snapshot master filesystem 5. clone … Continue reading
Posted in solaris
Leave a comment
solaris cluster broken node
Node Replacement Sun Cluster 3.2 Q&D restore 1. Install Solaris on new hardware 2. Install Cluster packages using the installer 3. copy the /etc/cluster directory from surviving node 4. Adjust node-id in /etc/cluster/nodeid 5. copy /etc/vfstab from surviving node in … Continue reading
Posted in solaris
Leave a comment
solaris cluster add node and remove node
1. set up resource group and resources on 2-node cluster 2. install clustersoftware on third node 3. add third node to cluster claccess allow -h ‘new-node’ 4. change quorum clq add ‘new quorum device’ clq disable ‘old quorum device’ clq … Continue reading
Posted in solaris
Leave a comment
solaris cluster 3.2 zonefailover
1. Create diskgroup and volume 2. Register the diskgroup 3. Create filesystem 4. vfstab 5. Test 6. Create zone 7. Test 8. Install ResourceTypes and register 9. Create RG to hold the zone, and zone 1. Create a diskgroup and … Continue reading
Posted in solaris
Leave a comment
solaris cluster 3.2 application failover
creating a simple application-failover for SC3.2 Normally you would want to create a script that is called by the start_method to initiate the application, and a script that is called by the monitor_method to check whether your application is still … Continue reading
Posted in solaris
Leave a comment