Author Archives: admin

Linux iSCSI

CentOS / Red Hat Linux: Install and manage iSCSI Volume by VIVEK GITE on OCTOBER 30, 2007 · 45 COMMENTS· LAST UPDATED FEBRUARY 18, 2011 Internet SCSI (iSCSI) is a network protocol s that allows you to use of the SCSI protocol over TCP/IP networks. It is … Continue reading

Posted in linux | Leave a comment

ubuntu vncserver

Install packages. Code: sudo apt-get install x11vnc vnc-java Set up a password for clients. Code: x11vnc -storepasswd Open up ports 5800 and 5900 on your firewall Run the terminal command: x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 and add it for auto-starting in future … Continue reading

Posted in linux | Leave a comment

centos vncserver

1. Installing the required packages The server package is called ‘vnc-server’. Run the command: rpm -q vnc-server The result will be either package vnc-server is not installed or something like vnc-server-4.0-11.el4. If the server is not installed, install it with the command: yum install vnc-server … Continue reading

Posted in linux | Leave a comment

ubuntu vnc4server

  1 Open a Terminal window. The Terminal window can be found under “Start” > “Utilities.” 2 Download vnc4server and xinetd: sudo apt-get install vnc4server xinetd Sponsored Links Try Open Source BackupLower the cost of backup by 10x Try out … Continue reading

Posted in linux | 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

solaris 7410 hsp

Hybrid Storage Pools in the 7410 The Sun Storage 7000 Series launches today, and with it Sun has the world’s first complete product that seamlessly adds flash into the storage hierarchy in what we call the Hybrid Storage Pool. The HSP … Continue reading

Posted in Uncategorized | 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

run vm without gui

  vmrun -T headless  start “./Sol11-server.vmx” nogui

Posted in Virtualization | 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

vbox

vboxmanage list vms “Sun_ZFS_Storage_7000” {a14109a5-8478-4209-b8f8-e6212582b7c7} “Sun_ZFS_Storage_7000_1” {b76b26de-2af6-49e6-9b32-0fcceb0fefc8} nohup vboxheadless -startvm Sun_ZFS_Storage_7000_1& vboxmanage list runningvms “Sun_ZFS_Storage_7000” {a14109a5-8478-4209-b8f8-e6212582b7c7} “Sun_ZFS_Storage_7000_1” {b76b26de-2af6-49e6-9b32-0fcceb

Posted in Virtualization | Leave a comment

solaris 7000 replication

1. on source -> configuration -> replication create target 2. on source -> create project and share 3. on source -> select project and edit -> replication this will replicate the project. 4. on source -> create new shares in … Continue reading

Posted in Uncategorized | 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

VBoxManage

This entry is filed under Virtualbox and tagged VirtaulBox How to attach a DVD / CD to a running vm, VirtaulBox How to de-attach a DVD / CD from a running vm, VirtaulBox How to find out the VM IP, … Continue reading

Posted in Virtualization | 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 zones and etherstubs

How to Script Oracle Solaris 11 Zones Creation for a Network-In-a-Box Configuration November 2011 by Jeff McMeekin Through this “network-in-a-box” example, learn how to efficiently create Oracle Solaris Zones by cloning them and use scripts to set up a virtual … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 distribution constructor

How to Create a Customized Oracle Solaris 11 Image Using the Distribution Constructor by Isaac Rozenfeld Learn how to create and distribute customized Oracle Solaris 11 images by following an example that shows the process from beginning to end. September … Continue reading

Posted in Uncategorized | 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

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

solaris 11 set nodename

# svccfg -s svc:/system/identity:node setprop config/nodename = astring: nodename # svcadm refresh svc:/system/identity:node # svcadm restart svc:/system/identity:node

Posted in Uncategorized | 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

clustermode security

Change privilege level set -privilege advanced set admin  1. Get to the node shell system node run -node cl1-01  2. Get to the system shell security login unlock -username diag security login password -username diag system node systemshell -node cl1-01

Posted in netapp | Leave a comment

Training

2011 – Replace sick trainer for D7ADM in San Fransisco

Posted in netapp | Leave a comment

Troubleshoot

2011 – Troubleshoot failing exchange backups in snapmirror/snapvault relationships (Garantibank – Amsterdam)

Posted in projects | Leave a comment

installation

2011 – rackmounted, cabled, installed and configured two Netapp 3xxx filers running a snapmirror between two sites. (Zoetermeer Fugro)

Posted in projects | Leave a comment