-
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 10 keytable
/usr/openwin/share/etc/keytables/keytable.map file to force the use of Denmark_x86.kt or Denmark6.kt as default. Current Type Layout Filename 0 0 US4.kt # Default keytable change to Type Layout Filename 0 0 Denmark_x86.kt # Default keytable Remove all lines below that.
Posted in solaris
Leave a comment
solaris zdb
Original link zdb: Examining ZFS At Point-Blank Range 01 Nov ’08 – 08:13 by benr ZFS is an amazing in its simplicity and beauty, however it is also deceivingly complex. The chance that you’ll ever be forced to peer behind … Continue reading
Posted in solaris
Leave a comment
solaris 11 automated installer grub entries
When running installadm create-client, the client grub.conf.01macaddress file is generated from the following file: /var/ai/service/”service- name”/menu.conf to change the menu-order from text-installer to automated-installer change the followin entry: [meta] order = SolarisNetBootInstance|0, SolarisNetBootInstance|1 to [meta] order = SolarisNetBootInstance|1, SolarisNetBootInstance|0 Now … Continue reading
Posted in solaris
Leave a comment
solaris 11 bad login count
How many bad logins? With additional thanks to Lambert Rots (ASP4ALL) original url What’s Up With the flag Field in /etc/shadow on Solaris 11.1? 03Jan13 If you’re running Solaris 11.1, and you happen check your /etc/shadow file, you may notice … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise ips (4) add local repository
(with thanks to LAM) In this exercise you will setup a local repository and add a testpackage to the repository. You should have a zpool mounted on /software 1. create directory mkdir /software/site 2. create repository pkgrepo create /software/site 3. … Continue reading
Posted in solaris
Leave a comment
solaris 11 change hostname and ip
1. change the identity:node root@sol11-1:/tmp# svccfg svc:> select system/identity svc:/system/identity> select system/identity:node svc:/system/identity:node> listprop config/nodename config/nodename astring sol11-1 svc:/system/identity:node> setprop config/nodename=”sol11″ svc:/system/identity:node> refresh svc:/system/identity:node> exit 2. nwam should be disabled. root@sol11-1:/tmp# svcs svc:/network/physical:nwam STATE STIME FMRI disabled Sep_22 svc:/network/physical:nwam 3. … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise ips (10) add second pkg server instance
In this exercise you will setup a second instance of the application/pkg/server service. This means that you will have a second environment on the same machine from which you can publish your own software packages. 1. Add second instance. # … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise users
Log in to your system and switch user to root. user1@solaris11-1:~$ su – Password: Oracle Corporation SunOS 5.11 11.0 November 2011 You have new mail. root@solaris11-1:~# 1. Add a TERMINAL setting and alias to /etc/profile and test it. root@solaris11-1:~# echo … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise processes
Exercise Managing System Processes and Managing Tasks 1. Log in to your system and switch user to root. user1@solaris11-1:~$ su – Password: Oracle Corporation SunOS 5.11 11.0 November 2011 You have new mail. root@solaris11-1:~# 2. User the ps command to … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise smf (2) add smf-service
In this exercise you will create a new service. It is a dummy services that only sleeps for a long time and is started from a script. The script will be the start-method that you supply in the service manifest … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise smf (1) administering services
In this exercise you will work with dependencies between services. You will check the status of cron, and check its dependencies. Then you will disable a service that cron depends on and see how that reflects on cron. user1@solaris11-1:~$ su … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise zones (1)
1. The zones will have /software as root. # df -h | grep software software 20G 33K 16G 1% /software 2. Create a vnic for a new zone. # dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise zfs (1)
Basic operations. Your machine has 3 disks of 300MB If your machine has no available disks you can create 3 files of 300MB in the /dev/dsk directory and use those. Perform the following 3 commands only if your machine has … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise ip (1)
Your machine has 4 network interfaces. Adapter 1 is configured up. 1. View the dladm subcommands. # dladm usage: dladm … rename-link (output skipped) 2. View your physical network interfaces. # dladm show-phys NK MEDIA STATE SPEED DUPLEX DEVICE net1 … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise bootenvironments (1)
A boot environment is a bootable Oracle Solaris environment consisting of a root dataset and, optionally, other datasets mounted underneath it. Exactly one boot environment can be active at a time. A dataset is a generic name for ZFS entities … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise ips (1)
1. Log in to your machine. ssh user1@192.168.4.151 switch to root # sudo bash Password: e1car0 2. Your machine has the Full Repository iso mounted. # df -h | grep media /dev/dsk/c3t0d0s2 6.8G 6.8G 0K 100% /media/SOL_11_1_REPO_FULL Check the available … Continue reading
Posted in solaris, Uncategorized
Leave a comment
solaris 11 vnc
1. Install the Solaris Desktop environment. # pkg install slim_install # /usr/bin/vncserver # vi /etc/gdm/custom.conf [daemon] [security] [xdmcp] Enable=true [greeter] [chooser] [debug] # svcadm restart gdm # inetadm -e xvnc-inetd or # svcadm enable xvnc-inetd
Posted in solaris
Leave a comment
solaris zfs nfs share
root@solaris11-1:~# zfs set share=name=kanweg,path=/rpool/kanweg,prot=nfs rpool/kanweg name=kanweg,path=/rpool/kanweg,prot=nfs root@solaris11-1:~# zfs sharenfs=on rpool/kanweg root@solaris11-1:~# dfshares|grep kanweg solaris11-1:/rpool/kanweg solaris11-1 – – other example: zfs set share=name=fs1,path=/temppool/fs1,prot=nfs,root=192.168.4.235,rw=192.168.4.235 temppool/fs1
Posted in solaris
Leave a comment
7000 factoryreset at boot
add “-c” as parameter to the boot line. kernel$ /platform……….. -c
Posted in solaris
Leave a comment
solaris 11 lacp dlmp link-aggregate
1. create an aggregate (aggr0) over net1 net2 and net3 ( in vbox Adapter1=net3 Adapter2=net0 Adapter3=net1 Adapter4=net2 ) dladm create-aggr -l net1 -l net2 -l net3 aggr0 dladm modify-aggr -m trunk aggr0 (trunk is the default though) dladm show-aggr -L … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise pkg search and install
To search for a package in a particular publisher: # pkg search -s http://192.168.4.150 (output skipped) To install a package from a particular publisher: # pkg install -g http://192.168.4.150 (output skipped)
Posted in solaris
Leave a comment
solaris script to create and delete a zone
1. create a filesystem and install a zone then snapshot the filesystem and use it for cloning at zonecreation zonecfg -z basezone create set zonepath=/zonepool/basezone exit zoneadm -z base install zfs snapshot zonepool/basezone@base script: zcreate ========================================== #!/usr/bin/bash if test $# … Continue reading
Posted in solaris
Leave a comment
solaris11 networking getting started
oracle html Oracle New Features of Oracle Solaris 11 Network Configuration Manual and Automatic Networking Modes Manual Network Configuration Name Service Configuration Using SMF Setting the Host Name Changes to /etc/hosts Automatic Network Configuration Using Profiles Network Profiles Creating a … Continue reading
Posted in solaris
Leave a comment
solaris11 ai_installer non_global zones
installing non-global zones with ai
Posted in solaris, Uncategorized
Leave a comment
solaris 11 exercise zones (2) resource control
Situation: global zone, zone1 and zone2. First bring all processes under FSS control dispadmin -d FSS this will set the default scheduling to FSS at reboot. file: /etc/dispadmin.conf To set up a running system. priocntl -s -c FSS -i all … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise zones (3) clone zone
1. create webzone-1 root@global:~# zonecfg -z webzone-1 “create ; set zonepath=/zones/webzone-1” 2. install webzone-1 root@global:~# zoneadm -z webzone-1 install 3. login and configure webzone-1 root@global:~# zoneadm -z webzone-1 boot; zlogin -C webzone-1 4. create template-profile in webzone-1 root@global:~# zlogin webzone-1 … Continue reading
Posted in solaris
Leave a comment
solaris11 create multiple repositoryservers
original url: omnios.omniti Creating Repos # Why? Because it’s easy. It’s also a good way to separate packages with different dispositions, such as core OS vs. site-specific. First, create the repo. Any directory will do, but it’s usually a good … Continue reading
Posted in solaris
Leave a comment
solaris 11 zones (4) delegation example
Delegate zonemanagement of zone3 to user peter. # zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / solaris shared 2 zone3 running /rpool/zones/zone3 solaris excl # zonecfg -z zone3 zonecfg:zone3> add admin zonecfg:zone3:admin> set user=peter zonecfg:zone3:admin> … Continue reading
Posted in solaris
Leave a comment
solaris11 integrated load balancer (3)
ILB Operation Modes ILB supports stateless Direct Server Return (DSR) and Network Address Translator (NAT) modes of operation for IPv4 and IPv6, in single-legged and dual-legged topologies. Stateless DSR topology NAT mode (full-NAT and half-NAT) topology Direct Server Return Topology … Continue reading
Posted in solaris
Leave a comment
solaris – cpu strands
http://sparcv9.blogspot.nl/2010/02/thread-performance-on-modern-sparc.html
Posted in oracle, solaris
Leave a comment
solaris 11 vncserver
Enable XDMCP connections by editing the /etc/gdm/custom.conf file. [xdmcp] Enable=true Restart the GDM service. # svcadm restart gdm Enable the Xvnc inetd service. # inetadm -e xvnc-inetd Connect from another machine and verify that you see the login screen and … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise ips (2) local repository
# zfs create rpool/export/repoSolaris11 # zfs set atime=off rpool/export/repoSolaris11 # pkgrepo create /export/repoSolaris11 # pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /export/repoSolaris11 ‘*’ Processing packages for publisher solaris … Retrieving and evaluating 4401 package(s)… Creating Plan \ # svccfg -s application/pkg/server setprop … Continue reading
Posted in solaris
Leave a comment
solaris change miniroot
gunzip < solaris_build/boot/x86.miniroot >/tmp/miniroot lofiadm -a /tmp/miniroot /dev/lofi/2 # mount /dev/lofi/2 /mnt # echo ‘iprb “pci8086,1050″‘ >>/mnt/etc/driver_aliases # tail -2 driver_aliases iprb “pci8086,1050” umount /mnt # lofiadm -d /dev/lofi/2 # gzip < /tmp/miniroot > solaris_build/boot/x86.miniroot
Posted in solaris
Leave a comment
7000 snapvault
#!/usr/bin/bash #variables source=pool_0/local/base/source dest=pool_0/local/base/source node2=”192.168.108.61 confirm shell ” schedule=60 #functions function baseline { zfs snapshot ${source}@currentfs zfs send ${source}@currentfs|ssh ${node2} zfs receive ${dest}@currentfs echo “baseline created” } function dryrun { run=0 ret=5 echo dry while (($run
Posted in solaris
Leave a comment
7000 collect IOPS
#!/bin/bash run=0 #current cycle times=10 #number of times to run interval=5 #interval echo “Operations per second per 5 seconds” > collectfile #while run is smaller than times #dataset-026 collects the number of NFSv4 operations per second #awk reports the third … Continue reading
Posted in solaris
Leave a comment
solaris linux create sparse file
# dd of=sparse-file bs=1k seek=55120 count=0 0+0 records in 0+0 records out 0 bytes transferred in 0.000030 secs (0 bytes/sec) nfs : ls -lh sparse-file -rw-r–r– 1 user1 daemon 54M May 12 20:08 sparse-file
Posted in linux, solaris
Leave a comment
7000 automatic login to systemshell
1. Make sure autologin is set up correctly 2. run the following command: # ssh -t 192.168.4.130 confirm shell (where 192.168.4.130 is the appliance) 3. example: query zpools # ssh -t 192.168.4.130 confirm shell zpool list NAME SIZE ALLOC FREE … Continue reading
Posted in solaris
Leave a comment
7000 split brain prevention
Preventing “Split-Brain” Conditions A common failure mode in clustered systems is known as âsplit-brainâ; in this condition, each of the clustered heads believes its peer has failed and attempts takeover. Absent additional logic, this condition can cause a broad spectrum … Continue reading
Posted in solaris
Leave a comment
7000 list projects filesystems and snapshots
This scripts requires automatic login on 7000 node It lists all projects, filesystems and snapshots. # vi fs #!/usr/bin/bash >data echo type:project:filesystem:snapshot echo ————————— for pr in `ssh node141 shares list` do echo “pr:${pr}::” echo “pr:${pr}::”>>data for fs in `ssh … Continue reading
Posted in solaris
Leave a comment
7000 get snapshot info
appl40:> shares select reversed select repshare snapshots select new get space_data space_data = 304K
Posted in solaris
Leave a comment
7000 datasets
determine datasets: # ssh root@192.168.73.141 analytics datasets list DATASET STATE INCORE ONDISK NAME dataset-000 active 710K 32.6K arc.accesses[hit/miss] dataset-001 active 242K 31.2K arc.l2_accesses[hit/miss] dataset-002 active 242K 31.2K arc.l2_size dataset-003 active 242K 31.2K arc.size dataset-004 active 880K 32.5K arc.size[component] dataset-005 active … Continue reading
Posted in solaris
Leave a comment
7000 datacollection example
This poorman’s example uses 1 script, 1 datacollectionfile and 1 html file 1. script (shares) collects project information from hardcoded 7000 node and stores it in file: collect then it creates an html file. 3. in browser load: http://localhost/test.html script: … Continue reading
Posted in solaris
Leave a comment
solaris 7000 replication (2)
1. Client: make mountpoint for source and destination #mkdir source #mkdir dest 2. Source: create replication_target configuration remote_replication + name:target91 address:192.168.1.91 rootpw:******* create project shares projects + name:p90source create share shares + project:p90source name:p90fs1 3. Client: mount p90fs1 to client … Continue reading
Posted in solaris
Leave a comment
zfs basic snapschedule
#snapshot every minute with retention of three snapshots while true do for i in `zfs list | awk ‘{print $1}’|grep -v \@|tail +2` do zfs destroy ${i}@sched3 zfs rename ${i}@sched2 ${i}@sched3 zfs rename ${i}@sched1 ${i}@sched2 zfs snapshot ${i}@sched1 done sleep … Continue reading
Posted in solaris
Leave a comment
Solaris Cluster 3.x Quorum issue article
Article Listing 1 oct2006.tar Sun Cluster 3.x Quorum Issue Peter van der Weerd Clustering software usually consists of a collection of scripts and binaries that unconfigure an interface, bring down an application, unmount some file systems, give away a group … Continue reading
Posted in solaris
Leave a comment
solaris 11 nfs share
Create an NFS or SMB share of a ZFS file system by using the zfs set share command. For example: # zfs create rpool/fs1 # zfs set share=name=fs1,path=/rpool/fs1,prot=nfs rpool/fs1 name=fs1,path=/rpool/fs1,prot=nfs Publish the NFS or SMB share by setting the sharenfs … Continue reading
Posted in solaris
Leave a comment
solaris run service as different user
svccfg -s aap setprop start/user = astring: peter svccfg -s aap setprop start/group = astring: :default svccfg -s aap setprop start/working_directory = astring: :default svccfg -s aap setprop start/resource_pool = astring: :default svccfg -s aap setprop start/supp_groups = astring: :default … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise zfs (5) restore rootpool from remote system
ok boot cdrom -s # mount -F nfs remote-system:/rpool/snaps /mnt # zpool create -f -o \ failmode=continue -R /a -m legacy -o cachefile=/etc/zfs/zpool.cache rpool c1t0d0s0 # cat /mnt/rpool.0311 | zfs receive -Fdu rpool # zpool set bootfs=rpool/ROOT/osolBE rpool # installboot -F … Continue reading
Posted in solaris
Leave a comment
solaris package groups
# pkg info -r *group* Display the contents of these package groups: # pkg contents -o fmri -r -t depend pkg-grouping Determine which package group is currently installed on your system: # pkg list group/system/\*
Posted in solaris
Leave a comment
solaris pkg install -> create new be and install software
pkg install –be-name <newbename> <packagename>
Posted in solaris
Leave a comment
solaris 10 list locked files
echo ‘::walk lock_graph | ::print \ lock_descriptor_t l_vnode | ::vnode2path’ \ | mdb -k | sort -u
Posted in solaris
Leave a comment
missing menu.lst
If /boot/grub/menu.lst is missing, booting solaris will fail. The system will go to stage2 and be in grub. grub> grub>findroot (rootfs0,0,a) grub>kernel /platform/i86pc/multiboot grub>module /platform/i86pc/boot_archive grub>boot
Posted in solaris
Leave a comment
solaris ssh slow login
in sshd_config add LookupClientHostnames no VerifyReverseMapping no GSSAPIAuthentication no on cli run # cryptoadm disable provider=/usr/lib/security/\$ISA/pkcs11_tpm.so mechanism=all # cryptoadm uninstall provider=/usr/lib/security/\$ISA/pkcs11_tpm.so
Posted in solaris
Leave a comment
7000 automatic login for scripting
Creating a SSH Public/Private SSH Key Pair On a unix box: [geoff@lightning ~] ssh-keygen -t rsa -b 1024 Generating public/private rsa key pair. Enter file in which to save the key (/export/home/geoff/.ssh/id_rsa): /export/home/geoff/.ssh/nas_key_rsa Enter passphrase (empty for no passphrase): Enter same passphrase … Continue reading
Posted in solaris
Leave a comment
7000 managing supportbundles
Managing Support Bundles Using the CLI To generate and upload a new support bundle, use the sendbundle command: loader:> maintenance system loader:maintenance system> sendbundle A support bundle is being created and sent to Oracle. You will receive an alert when the bundle … Continue reading
Posted in solaris
Leave a comment
zones in zfs clone
zfs create pool1/zonefs chmod 700 /pool1/zonefs zonecfg -z base base: No such zone configured Use ‘create’ to begin configuring a new zone. zonecfg:base> create zonecfg:base> set zonepath=/pool1/zonefs zonecfg:base> exit zoneadm -z base install cannot create ZFS dataset pool1/zonefs: dataset already … Continue reading
Posted in solaris
Leave a comment
solaris 7000 lun dr
situation: Two 7000’s on which iscsi and remote replication are enabled. (see configuration services) We will connect to both 7000’s with iscsi initiator, get a lun presented, replicate the lun, then kill the source, and activate the remote lun. 1. … Continue reading
Posted in solaris
Leave a comment
zfs replication with ssh
1. create pool on source and on destination on source: # zpool create sourcepool disk1 on destination: # zpool create destpool disk1 2. create filesystem on source # zfs create sourcepool/fs1 3. zfs snapshot sourcepool/fs1@recent # zfs send sourcepool/fs1@recent | … Continue reading
Posted in solaris
Leave a comment
solaris 11 p2v (solaris10 system to solaris 11 zone)
Transitioning an Oracle Solaris 10 Instance to an Oracle Solaris 11 System You can transition your Oracle Solaris 10 environment to a non-global zone on an Oracle Solaris 11 system by creating a zone archive and migrating the zone archive … Continue reading
Posted in solaris
Leave a comment
solaris 11 add firstboot package with automated installer
Prerequisite is that you have a working local repository that can be used to install the client. Creating a First-Boot Package We need to create a package to go into the repository. Since there are no post-install scripts with the … Continue reading
Posted in solaris
Leave a comment
solaris 11 update packages and repositories
How to Update Oracle Solaris 11 Systems From Oracle Support Repositories by Glynn Foster The steps for updating an Oracle Solaris 11 system with software packages provided by an active Oracle support agreement, plus how to ensure the update is … Continue reading
Posted in solaris
Leave a comment
solaris 11 switch between nwam and manual
How to Switch From Autoconfiguration Mode to Traditional Networking Mode In Oracle Solaris, the NWAM service is enabled by default. If you are using advanced networking features that are not currently supported by NWAM or that require you to disable … Continue reading
Posted in solaris
Leave a comment
solaris 11 exercise 8 automated installer
You need an iso (download it) or build it using distribution constructor 1. create service (installadm create-service) – ( jumpstart: setup_install_server) – specify servicename (-n) – specify source iso (-s) – specify ip and range for dhcp (-i -c) – … Continue reading
Posted in solaris
Leave a comment
solaris 11 dhcp server for automated installer
Oracle Solaris DHCP for AI You can set up your AI install server to also be an Oracle Solaris DHCP server, or you can set up a separate DHCP server. If you already have an Oracle Solaris DHCP server set … Continue reading
Posted in solaris
Leave a comment
solaris 11 js2ai (jumpstart to automated installer)
profiles -> manifests sysidcfg -> sc profiles rules -> criteria —– js2ai comes bundled with solaris 11 1. convert sysidcfg to sc_profile 2. convert profile to manifest 3. convert entire js directory to ai 1. js2ai -s sysidcfg creates sc_profile.xml … Continue reading
Posted in solaris
Leave a comment
solaris 11 cheat sheet smf
Show all services (including disabled services): # svcs List detailed information about system/zones: # svcs -l system/zones List processes associated with the network/netcfg service: # svcs -p network/netcfg Show why services that are enabled but are not running, or preventing … Continue reading
Posted in solaris
Leave a comment
solaris 11 cheat sheet zfs admin and disks
Create a ZFS pool with a single disk: # zpool create testpool c3t2d0 Create a ZFS pool with 3 disks in RAID0 configuration: # zpool create testpool c3t2d0 c3t3d0 c3t4d0 Create a ZFS pool with 3 disks in RAID1 configuration: … Continue reading
Posted in solaris
Leave a comment
solaris 11 cheat sheet packaging
Install a package called diagnostic/wireshark: # pkg install diagnostic/wireshark Install a group package to provide a desktop environment: # pkg install solaris-desktop Update all possible packages to the newest version, including any zones: # pkg update Do a dry run … Continue reading
Posted in solaris
Leave a comment
solaris 11 cheat sheet user administration and bootenvironments
Revert to root as normal user account: # rolemod –K type=normal root Configure root as a role (default): # usermod –K type=role root Add a new user and delegate him the System Adminstrator profile: # useradd -d /export/home/joerg -P “System … Continue reading
Posted in solaris
Leave a comment
solaris 11 sshd_config
add to speed up initial connection LookupClientHostnames no VerifyReverseMapping no
Posted in solaris
Leave a comment
solaris 11 pkg repository quick
1. create software mkdir /var/tmp/package echo “blah” > /var/tmp/package/foo cd /var/tmp/package 2. create repository (needs filesystem, create repo, service(inst_root,port), publischerprefix) zfs create rpool/export/repo zfs set quota=4g rpool/export/repo pkgrepo create /export/repo svccfg -s application/pkg/server setprop pkg/inst_root=/export/repo svccfg -s application/pkg/server setprop pkg/port=10000 … Continue reading
Posted in solaris
Leave a comment
solaris 11 bootenvironments
create be root@s11-desktop:~# beadm create solaris-2 create snapshot in existing be root@s11-desktop:~# beadm create solaris-2@backup create new be by cloning from snapshot root@s11-desktop:~# beadm create -e solaris-2@backup solaris-3 root@s11-desktop:~# beadm activate solaris-3 root@s11-desktop:~# beadm rename solaris-2 solaris-old root@s11-desktop:~# beadm destroy … Continue reading
Posted in solaris
Leave a comment
solaris 11 comstar
on the target: pkg install pkg://solaris/storage/storage-server svcadm enable stmf svcs stmf zpool create iscsi c3t4d0 zfs create -V 500m iscsi/target stmfadm create-lu \ /dev/zvol/rdsk/iscsi/target Logical unit created: 600144F09B2A460000004FD211240001 stmfadm add-view \ 600144F09B2A460000004FD211240001 stmfadm list-view -l \ 600144F09B2A460000004FD211240001 View Entry: 0 … Continue reading
Posted in solaris
Leave a comment
solaris 11 cheat sheet network administration
Switch to manual network configuration: # netadm enable –p ncp defaultfixed Show physical network interfaces: # dladm show-phys Create interface with static IPv4 configuration: # ipadm create-ip net0 # ipadm create-addr –T static –a local=10.9.8.7/24 net0/addr # ipadm show-addr Create … Continue reading
Posted in solaris
Leave a comment
solaris 11 cheat sheet advanced administration
Create a virtual network interface over existing physical interface net0 with address 192.168.0.80: # dladm create-vnic -l net0 vnic0 # ipadm create-ip vnic0 # ipadm create-addr -T static -a 192.168.0.80 vnic0/v4 Create two virtual network interfaces over a virtual switch … Continue reading
Posted in solaris
Leave a comment
solaris 11 zones and automated install
Setup zone: # zonecfg -z aiserver ‘create; set zonepath=/zones/aiserver’ Create system profile to speed install process up: This allows you to setup hostname, server IP address, initial user, etc # sysconfig create-profile -o sysconfig.xml Install Zone with default manifest and … Continue reading
Posted in solaris
Leave a comment
opensolaris mirror repo from solaris.org
Mirroring repositories Running a content mirror of pkg.opensolaris.org/dev The image packaging client, pkg(1), can pull content from mirror servers. Using a mirror close to you can speed up system updates, distribution construction, zone creation, and other packaging-intensive operations. You can … Continue reading
Posted in solaris
Leave a comment
solaris 11 AI cheatsheet
installadm create-service -n S11x86 -i -i 192.168.1.210 -c 10 -s /pool/iso/sol11-ai-iso installadm list installadm list -m installadm export -n S11x86 -m orig_default > manifest.xml installadm update-manifest -n s11x86 -m orig_default -f manifest.xml installadm list -p sysconfig create-profile -o profile.xml installadm … Continue reading
Posted in solaris
Leave a comment
solaris 11 automated installer
1. download iso to /pool/iso/ 2. create directory /export/ai/basic_ai 3. define start ip (175) and range (3) for dhcp installadm create-service -n basic_ai -s /pool/iso/sol-11-1111-ai-x86.iso \ -i 192.168.1.175 -c 3 -d /export/ai/basic_ai installadm list Service Name Alias Of Status Arch … Continue reading
Posted in solaris
Leave a comment
solaris 11 publish new package
root@s11-serv1:~# svcadm disable application/pkg/server root@s11-serv1:~# svccfg –s application/pkg/server setprop \ pkg/readonly=false root@s11-serv1:~# svcadm refresh application/pkg/server root@s11-serv1:~# svcadm enable application/pkg/server A best practice is to make the IPS repository read-only when not actively adding packages. This assumes this practice is being … Continue reading
Posted in solaris
Leave a comment
solaris 11 from text to desktop
Login onto the console and use the following commands: sudo pkg install slim_install sudo svcadm enable gdm And if you want to run the deskstop: startx
Posted in solaris
Leave a comment
Solaris 11 Serving Multiple Repositories Using Multiple Depot Server Instances
# pkgrepo set -s /export/dev_repo publisher/prefix=dev # svccfg -s pkg/server add dev # svccfg -s pkg/server:dev addpg pkg application # svccfg -s pkg/server:dev setprop pkg/port=81 # svccfg -s pkg/server:dev setprop pkg/inst_root=/export/dev_repo # svccfg -s pkg/server list # svccfg -s pkg/server:dev … Continue reading
Posted in solaris
Leave a comment
solaris 11 subset of repository
# pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /pool/ips/subrepo \ -m all-versions -r group/feature/amp
Posted in solaris
Leave a comment
solaris 11 ips properties
$ pkgrepo info -s /export/repoSolaris11 PUBLISHER PACKAGES STATUS UPDATED solaris 4292 online 2011-10-26T17:17:30.230911Z The following command displays property information about the local repository. $ pkgrepo get -s /export/repoSolaris11 SECTION PROPERTY VALUE publisher prefix solaris repository description This\ repository\ serves\ a\ … Continue reading
Posted in solaris
Leave a comment
solaris 11 nameservice switch
# netadm enable -p ncp DefaultFixed Configure a static IPv4 address and default route: # ipadm create-ip net0 # ipadm create-addr -T static -a 10.0.2.18/24 net0/v4static # route -p add default 192.168.100.1 Setup name services and a valid domain name: … Continue reading
Posted in solaris
Leave a comment
solaris pkg publisher from scratch
Exercise : Using the oracle publisher # pkgrepo create /export/repoSolaris11 # pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /export/repoSolaris11 ‘*’ when interrupted look in var tmp for the file that holds state # pkgrecv -c /var/tmp/pkgrecv-fOGaIg \ -s http://pkg.oracle.com/solaris/release/ -d /export/repoSolaris11 ‘*’ Using … Continue reading
Posted in solaris
Leave a comment
solaris 11 create publisher
pkg set-publisher -G ‘*’ -g file:///cdrom/sol11repo_full/repo solaris
Posted in solaris
Leave a comment
solaris pkgrecv (updating packages solaris 11)
# pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /export/repoSolaris11 ‘*’ If you are going to be doing this update on a regular basis, you might want to use the PKG_SRC and PKG_DEST environment variables. # export PKG_SRC=http://pkg.oracle.com/solaris/release/ # export PKG_DEST=/export/repoSolaris11 # pkgrecv ‘*’ … Continue reading
Posted in solaris
Leave a comment
solaris pkg mirror
Become root. Import the SMF service manifest. # svccfg import /var/svc/manifest/application/pkg-server.xml Prepare a location for your mirror server, by briefly running a packaging depot server in normal mode. The depot server will create the appropriate directory structures. In this example, … Continue reading
Posted in solaris
Leave a comment
solaris migrate global zone from 10 to 11
# flarcreate -S -n s10-serv1 -x /export/zones \ -x /export/share -L cpio /export/share/s10-serv1.flar (sol11) mount|grep /export/share zonecfg -z zone2 zone1: No such zone configured Use ‘create’ to begin configuring a new zone. zonecfg:zone2> create -t SYSsolaris10 zonecfg:zone2> set zonepath=/zones/zone2 zonecfg:zone2> … Continue reading
Posted in solaris
Leave a comment