Author Archives: admin

solaris 11 FMA event classes

(svccfg setnotify -g mailto:) For convenience, the tags problem- {diagnosed,updated,repaired,resolved} describe the lifecycle of a problem diagnosed by the FMA subsystem – from initial diagnosis to interim updates and finally problem closure. These tags are aliases for underlying FMA protocol … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 svcadm listcust -M

Deleting a service from the SMF repository. 1. svcadm disable newsvc 2. svccfg delete newsvc (this will not really delete the service but it ‘MASKS’ it. 3. svcs newsvc (no instances will be found) 4. svccfg listcust -M | grep … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 zones and more

Best Way to Update Software in Zones Part III of Software Management Best Practices for Oracle Solaris 11 Express By Ginny Henningsen, August 2011 Part I – Best Way to Update Software with IPS Part II – Best Way to … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 pkg build-branch

Oracle Solaris Package Versioning Package Identifier: FMRI described the pkg.fmri attribute and the different components of the version field, including how the version field can be used to support different models of software development. This section explains how the Oracle … Continue reading

Posted in Uncategorized | Leave a comment

solaris 11 fat packages

Setting up Solaris IPS servers for multiple architecture (fat) packages Monday, August 6, 2012 This is part 2 of a three-part series on building and packaging matplotlib as a multi-architecture, Solaris IPS package. Compiling matplotlib 1.1.0 for Solaris on SPARC … Continue reading

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

vmware vCenter Server appliance 5480

After deploying OVF from vSphere client, you cannot use vSphere client to connect to vCenterServer. You will get an “unknown connection error”. Use a browser to connect to port 5480 on the appliance to configure the embedded db, sso, and … Continue reading

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

clustermode add private network

The existing cluster has two dedicated network ports. cl1-02::> net int show (network interface show) Logical Status Network Current Current Is Vserver Interface Admin/Oper Address/Mask Node Port Home ———– ———- ———- —————— ————- ——- —- cl1-02 clus1 up/- 169.254.229.226/16 cl1-02 … Continue reading

Posted in netapp | Leave a comment

Solaris privileges in perspective (2)

System Security in SolarisTM 10: Privileges and Zones in Perspective — Part 2 Peter van der Weerd In part one, I discussed the improvements made to system security by using privileges as opposed to using the su-command. It showed that priviliges can … Continue reading

Posted in Uncategorized | Leave a comment

Solaris privileges in perspective (1)

System Security in SolarisTM 10: Privileges and Zones in Perspective — Part 1 Peter van der Weerd In Unix distributions through the ages, security has been based on two entities: IDs and file permissions. Every file has a UID (user … Continue reading

Posted in Uncategorized | Leave a comment

solaris suncluster quorum issue

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 of disks, and reverse … Continue reading

Posted in Uncategorized | Leave a comment

clustermode 8.2 licenses

CLUSTERED SIMULATE ONTAP LICENSES +++++++++++++++++++++++++++++++++ These are the licenses that you use with the clustered Data ONTAP version of Simulate ONTAP to enable Data ONTAP features. There are four groups of licenses in this file: – cluster base license – … Continue reading

Posted in Uncategorized | Leave a comment

opensuse grub2

grub2

Posted in Uncategorized | Leave a comment

linux grub2

grub2

Posted in linux | Leave a comment

clustermode 8.2 snapmirror vault

Source Volume and Destination Volume should have the same Language! Source Volume is RW type. Destination Volume is DP type.   1. create a schedule (to be used for the updates of the vault relationship) job schedule cron create -name … Continue reading

Posted in netapp | Leave a comment

clustermode delegate volume create to vserver user

1. security login create -vserver vs1 -username user1 -application ssh -authmethod password -role vsadmin 2. vserver modify -vserver vs1 …. -aggr-list aggr1,… 3. net int show (snipped) vs1 data1 up/up 192.168.4.103/24 cl1-01 e0d false data2 up/up 192.168.4.105/24 cl1-02 e0d true … Continue reading

Posted in netapp | Leave a comment

clustermode login to other node via interconnect

(with thanks to Wietse Muizelaar) If, for whatever reason, you have to do work on a node or copy files from one node to the other node, but the data and management interfaces are unuseable, you can use the interconnect … Continue reading

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

mac osx burn usb

$ diskutil list Figure out what your USB device is called with mount or sudo dmesg | tail (e.g. /dev/disk1) and unmount the partitions on the device (i.e., /dev/disk1s1) while keeping the device proper (i.e., /dev/disk1): $ diskutil unmountDisk /dev/disk1 … Continue reading

Posted in Uncategorized | Leave a comment

clonezilla

http://www.openlogic.com/wazi/bid/188051/With-Clonezilla-Install-Once-and-Clone-Forever

Posted in linux | Leave a comment

linux opensuse custom init script

1. create the ‘program’ 2. create the init.d script 3. create the links 4. test 1. The ‘program’ is a script that writes its pid to a file in /var/run. The content of the file is used when stopping the … Continue reading

Posted in linux | Leave a comment

suse openvpn cert

Setting Up Your VPN Server Using Certificate Authority This section explains how to build a VPN server that allows more than one connection at the same time. This is done with a public key infrastructure (PKI). A PKI consists of … Continue reading

Posted in Uncategorized | Leave a comment

linux suse openvpn

VPN Server Configuration Install the package openvpn on the machine that will later become your VPN server. Open a shell, become root and create the VPN secret key: openvpn –genkey –secret /etc/openvpn/secret.key Copy the secret key to your client: scp … Continue reading

Posted in linux | Leave a comment

open suse repositories

repos

Posted in linux | 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 shadow migration example

example

Posted in solaris | Leave a comment

7000 collect filesystemusage and create html

space.rc

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 adminguide oracle

guide

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

7000 get projects from node

#!/usr/bin/bash #get projects set `ssh root@192.168.73.141 shares list` counter=0 while test $# -gt 0 do let counter=$counter+1 shares[$counter]=$1 shift done #count projects count=`echo ${#shares[@]}` echo $0: $count projects found #get data item=1 while test $item -le $count do ssh root@192.168.73.141 … Continue reading

Posted in Uncategorized | Leave a comment

7000 reset SP password

howto

Posted in solaris | Leave a comment

linux suse kiwi

kiwi cookbook

Posted in Uncategorized | Leave a comment

linux suse zypper cheatsheet

zypper cheatsheet

Posted in linux | Leave a comment

7000 snmp

The SNMP Service on a Sun Storage 7000 Appliance By pmonday on Dec 16, 2009 Without a doubt, SNMP rules the playground in terms of monitoring hardware assets, and many software assets, in a data center monitoring ecosystem. It is … Continue reading

Posted in Uncategorized | Leave a comment

7000 cli networking (1)

configuration net interfaces select e1000g0 set admin=true configuration net interfaces select e1000g0 set v4addrs=192.168.4.136/24

Posted in Uncategorized | Leave a comment

7000 command line

configuration version show maintenance hardware show

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

linux su to specific user

cat /etc/pam.d/su #%PAM-1.0 auth sufficient pam_rootok.so auth [default=1 success=ok ignore=ignore] pam_wheel.so trust use_uid group=group1 auth [success=2 default=die] pam_listfile.so item=user sense=allow onerr=fail file=/etc/security/su-group1-access auth [default=die success=ok ignore=ignore] pam_wheel.so trust use_uid group=group2 auth requisite pam_listfile.so item=user sense=allow onerr=fail file=/etc/security/su-group2-access auth include system-auth … Continue reading

Posted in Uncategorized | Leave a comment

linux block su

to allow only certain users to use ‘su’ uncomment this line in /etc/pam.d/su auth required pam_wheel.so use_uid add any user you want to allow to run ‘su’ to the wheel group in /etc/group: wheel:x:10:user1,user2

Posted in Uncategorized | Leave a comment

linux block users

How to block ssh users after 3 failed login attempts using pam_tally2.so How to block an ssh user after 3 failed login attempts using PAM 1.Edit /etc/pam.d/sshd and the following parameters auth required pam_tally2.so deny=3 onerr=fail unlock_time=300 The /etc/pam.d/sshd should … Continue reading

Posted in linux | Leave a comment

linux password hashing algorithm

Display Current Hashing Algorithm Type the following command: # authconfig –test | grep hashing Sample outputs: password hashing algorithm is md5 Configure Linux Server To Use The SHA-512 To configure the Linux system to use the SHA-512 algorithm, enter: # … Continue reading

Posted in linux | Leave a comment

7-mode ldap

filer*> options ldap ldap.ADdomain example.com ldap.base dc=example,dc=com ldap.base.group ldap.base.netgroup ldap.base.passwd ldap.enable on ldap.name cn=my_user,ou=my_users,dc=example,dc=com ldap.nssmap.attribute.gecos name ldap.nssmap.attribute.gidNumber msSFU30GidNumber ldap.nssmap.attribute.groupname cn ldap.nssmap.attribute.homeDirectory msSFU30HomeDirectory ldap.nssmap.attribute.loginShell msSFU30LoginShell ldap.nssmap.attribute.memberNisNetgroup ldap.nssmap.attribute.memberUid msSFU30MemberUid ldap.nssmap.attribute.netgroupname ldap.nssmap.attribute.nisNetgroupTriple ldap.nssmap.attribute.uid sAMAccountName ldap.nssmap.attribute.uidNumber msSFU30UidNumber ldap.nssmap.attribute.userPassword msSFU30Password ldap.nssmap.objectClass.nisNetgroup ldap.nssmap.objectClass.posixAccount User ldap.nssmap.objectClass.posixGroup Group ldap.passwd ****** … Continue reading

Posted in netapp | Leave a comment

linux update oracle kernel

wget http://public-yum.oracle.com/public-yum-ol6.repo -P /etc/yum.repos.d/ yum list updates yum update

Posted in linux | Leave a comment

linux raid device

(create raid (raid1)) # mdadm –create md127 –level=1 –raid-devices=2 /dev/sdb1 /dev/sdc1 (add hotspare to raiddevice) # mdadm /dev/md127 -a /dev/sdd1 (check raiddevice) # cat /proc/mdstat Personalities : [raid1] md127 : active raid1 sdd1[2](S) sdc1[1] sdb1[0] 1044181 blocks super 1.2 [2/2] … Continue reading

Posted in linux | Leave a comment

virtualization xm console

In vm.cfg of virtual machine check for this entry: serial=”pty” In the guest, edit the /boot/grub/menu.lst or /boot/grub/grub.conf with the following lines, add them somewhere above the first kernel entry, probably just below the default and timeout directives. serial –unit=0 … Continue reading

Posted in Virtualization | Leave a comment

linux zfs

$ cat /etc/redhat-release CentOS release 6.2 (Final) The build process is quite easy. Prior to compiling source code you will need to install a few dependencies: $ yum install kernel-devel zlib-devel libuuid-devel libblkid-devel libselinux-devel parted lsscsi Once these are installed … Continue reading

Posted in Uncategorized | Leave a comment

clustermode automatic login (from linux) to systemshell of clusternode

On clustermode: You have configured automatic login for the clustershell On linux: You have installed expect (# yum install expect expectk) create an expect script. mind you: grcm1 is my clustername and gr-01 is the name of my first clusternode. … Continue reading

Posted in Uncategorized | Leave a comment

linux automatic mail with expect

Expect script sends me a mail to when someone logs in. 1. In .bash_profile ./.sendloggedin 2. In .sendloggedin #!/usr/bin/expect spawn telnet smtp.online.nl 25 send “ehlo smtp.online.nl\r” expect “250 8BITMIME” send “MAIL FROM: centos@groningen.nl\r” expect “250 2.1.0 Ok” send “RCPT TO: … Continue reading

Posted in linux | Leave a comment

netapp queuedepth iscsi/fc

queuedepth and more

Posted in netapp | Leave a comment

clustermode vol move parent volume

Moving a volume that has a flexclone -child- , will leave the parent volume in the aggregate in tact. Moving the flexclone -child- volume will split the clone, move it and destroy the ‘old’ volume.  

Posted in Uncategorized | Leave a comment

clustermode smtape

by Gerard Bosman Snapmirror remote baseline Overzicht: License snapmirror Pas Hosts file aan Zet de access options Kies welk pad je voor de backup file gaat gebruiken ( moet op src en dest gelijk zijn ) Stap voor stap Begin … Continue reading

Posted in Uncategorized | Leave a comment

clustermode raidgroups and disks

ssh admin@node disk show -raid| grep gr02_aggr1| sort -k 4 gr-02:v4.17 aggregate – data rg0 gr02_aggr1 gr-02:v4.18 aggregate – data rg0 gr02_aggr1 gr-02:v4.19 aggregate – data rg0 gr02_aggr1 gr-02:v5.19 aggregate – data rg0 gr02_aggr1

Posted in Uncategorized | Leave a comment

ssh tunnel for http

ssh root@83.111.104.47 -L 2000:localhost:80

Posted in Uncategorized | Leave a comment

clustermode raid-options

gr::storage raid-options> show Node Option Value Constraint ——– ————————————- ———— ———– gr-01 raid.background_disk_fw_update.enable on only_one gr-01 raid.disk.copy.auto.enable on only_one gr-01 raid.disktype.enable off only_one gr-01 raid.media_scrub.rate 600 only_one gr-01 raid.min_spare_count 1 only_one gr-01 raid.mirror_read_plex_pref local only_one gr-01 raid.reconstruct.perf_impact medium only_one gr-01 … Continue reading

Posted in Uncategorized | Leave a comment

clustermode ndmpcopy from 7-mode -> clustermode

Situation: volume on 7mode with data (/vol/old) volume on clustermode without data (vserver1:/new) wish to migrate 7mode data to clustermode note: use clustermode node-lif:/vservername/volumename note: volume new should be hosted on the node you connect to clustermode: ndmpd password -node … Continue reading

Posted in Uncategorized | Leave a comment

clustermode statistics (2)

statistics show -node gr-02 -object volume -instance rootls -vserver ls Node: gr-02 Object.Instance.Counter Value Delta ———————————————– ————- ————- volume.rootls.avg_latency 411us -136 volume.rootls.instance_name rootls (snipped) statistics show -node gr-02 -object volume -instance rootls -vserver ls -counter read_ops Node: gr-02 Object.Instance.Counter Value … Continue reading

Posted in Uncategorized | Leave a comment

clustermode export-policy rule

basic setup for an nfs share. Linux client has IP 192.168.4.160 Vserver will have IP 192.168.4.87 Vservername “march” (clusterhell) vserver create -vserver march -rootvolume root_vol -aggregate gr01_aggr1 -ns-switch file -nm-switch file -rootvolume-security-style unix -language C -snapshot-policy default -antivirus-on-access-policy default net … Continue reading

Posted in Uncategorized | Leave a comment

clustermode recovery mroot

the backups are in /mroot/etc/backups/config the rdb environment is in /mroot/etc/cluster_config/ I tarred the db’s in /mroot/etc/cluster_config/tarred on the surviving node, and copied that to a third location. The db’s were not restored by the backup and the directories remain … Continue reading

Posted in netapp | Leave a comment

clustermode vserver for infinite volume (2)

 Create aggregates no larger than 100TB on the FAS6280 and 68TB on the FAS3270 to achieve the maximum usable capacity for each individual constituent. Creating aggregates larger than this will result in wasted space. Create aggregates that will be … Continue reading

Posted in netapp | Leave a comment

clustermode ntp

system services ntp config modify -enabled true server create -node gr-01 -server 192.168.4.120 server modify -node gr-01 -server 192.168.4.120 -preferred true server create -node gr-02 -server 192.168.4.120 server modify -node gr-02 -server 192.168.4.120 -preferred true ntp server show (system services … Continue reading

Posted in Uncategorized | Leave a comment

clustermode things to know

Things to know about 8.1 cluster mode. Posted by AGUMADAVALLI in 8.1 Cluster mode – Things to know on Aug 6, 2012 11:12:43 AM Networking: DNS Load Balancing: DNS load balancing helps in selecting an appropriately loaded data LIF and … Continue reading

Posted in Uncategorized | Leave a comment

clustermode systemshell list logfiles

gr-01% pwd /var/log gr-01% ls apache_access.log debug.log.00000000000000000007 mlogd_stats.0.log snapmirror.log.00000000000000002060 apache_access.log.00000000000000000007 lastlog mlogd_stats.1.log snapmirror.log.00000000000000002061 apache_access.log.00000000000000000008 memsnap.log mlogd_stats.2.log spmd.log.00000000000000000008 apache_error.log messages.log.00000000000000000023 ndmpd.log.00000000000000000001 spmd.log.00000000000000000009 apache_error.log.00000000000000000001 messages.log.00000000000000000024 netapp_mgmt.log userlog apache_error.log.00000000000000000002 mgwd-start.log notifyd.log.00000000000000000146 vifmgr.log.00000000000000000022 bcomd.log.00000000000000000015 mgwd-start.log.1 notifyd.log.00000000000000000147 vifmgr.log.00000000000000000023 bcomd.log.00000000000000000016 mgwd.log.00000000000000000576 secd.log.00000000000000000006 vldb.log.00000000000000000017 command-history.log.00000000000000000001 mgwd.log.00000000000000000577 secd.log.00000000000000000007 … Continue reading

Posted in Uncategorized | Leave a comment

linux kerberos server/client

Kerberos Server [root@centos]# yum install krb5-server krb5-libs krb5-workstation Edit /etc/krb5.conf and /var/kerberos/krb5kdc/kdc.conf [quick@centos ~]$ cat /etc/krb5.conf [logging] default = FILE:/var/log/krb5libs.log kdc = FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmind.log [libdefaults] default_realm = LINUXPROBLEMS.ORG dns_lookup_realm = false dns_lookup_kdc = false ticket_lifetime = 24h renew_lifetime … Continue reading

Posted in linux | Leave a comment

clustermode volumes miscellaneous

1. create qtree and set quota rule gr::volume quota*> qtree create -vserver grvsnfs1 -volume vol1 -qtree one \ -security-style unix gr::volume quota*> quota policy rule create -vserver grvsnfs1 -policy-name default -volume vol1 -type tree -target one  \ -soft-disk-limit 30MB -disk-limit … Continue reading

Posted in netapp | Leave a comment

clustermode vserver root_volume (1) volume full

volume autosize -vserver grvsnfs1 -volume rootls -increment-size 100m -maximum-size 400m

Posted in netapp | Leave a comment

clustermode efficiency and compression (1)

vol efficiency on  -vserver grvsnfs1 -volume vol1 volume efficiency policy create -vserver grvsnfs1 -policy new -schedule 5min volume efficiency start -vserver grvsnfs1 -volume vol1 -scan-old-data true vol efficiency show (volume efficiency show) Vserver Volume State Status Progress ———– ——————- ——– … Continue reading

Posted in netapp | Leave a comment

clustermode snapmirror loadshare (3) create and schedule

example: 1. creating two 20MB volumes to serve as loadshare destinations 2. creating two loadshare mirrors on vserver grvsnfs1 3. initalize-ls the mirrors 4. create a schedule with a 1 minute interval 5. create two mountpoints on linux an mount … Continue reading

Posted in netapp | Leave a comment

clustermode routing-groups route

gr::> net routing-groups route show (network routing-groups route show) Routing Vserver Group Destination Gateway Metric ——— ——— ————— ————— —— gr c192.168.4.0/24 0.0.0.0/0 192.168.4.160 20 gr-01 n192.168.4.0/24 0.0.0.0/0 192.168.4.160 10 gr-02 n192.168.4.0/24 0.0.0.0/0 192.168.4.160 10 3 entries were displayed.

Posted in netapp | Leave a comment

clustermode stats and statistics

use the stats command from the nodeshell system node run -node kp-01 stats show -n 1 -i 1 volume:*:read_datasystem system node run -node kp-01 stats show -n 1 -i 1 disk:*:disk_busy system node run -node gr-02 stats show -n 100 … Continue reading

Posted in netapp | Leave a comment

clustermode priv-set-map-to-root kind of thing

vservername : v3 cl1::vserver export-policy rule*> vserver services unix-user create -vserver v3 -user pcuser -id 65534 -primary-gid 65534 cl1::vserver export-policy rule*> vserver service unix-user create -vserver v3 -user root -id 0 -primary-gid 1 cl1::vserver export-policy rule*> vserver services unix-user create … Continue reading

Posted in netapp | Leave a comment

clustermode failovergroups

Failovergroups are groupings of interfaces between which lifs can failover and failback. cl1::> net int failover-groups show (network interface failover-groups show) Failover Group Node Port ——————- —————– ———- clusterwide grcm1 e0c grcm2 e0c 2 entries were displayed. create new failovergroup … Continue reading

Posted in netapp | Leave a comment

clustermode ifgrp

1. view available ports: net port show (network port show) Auto-Negot Duplex Speed (Mbps) Node Port Role Link MTU Admin/Oper Admin/Oper Admin/Oper —— —— ———— —- —– ———– ———- ———— grcm1 e0a cluster up 1500 true/true full/full auto/1000 e0b cluster … Continue reading

Posted in netapp | Leave a comment

clustermode vserver for infinite volume (1)

vserver create -vserver vdist -rootvolume root_vol -aggregate aggr2 -ns-switch file -nm-switch file -rootvolume-security-style unix -is-repository true

Posted in netapp | Leave a comment

clustermode firewall policy

1. show whether firewall is enabled or disabled cl1:: firewall show (system services firewall show) Node Enabled Logging ————– ——- ——- grcm1 true false grcm2 true false 2 entries were displayed. 2. show policies cl1:: firewall policy show Policy Service … Continue reading

Posted in netapp | Leave a comment

OVS networking

OVS networking

Posted in Virtualization | Leave a comment

ipv6 cheat sheet

cheat sheet

Posted in ipv6 | Leave a comment

ipv6 Address Types

Address Types

Posted in ipv6 | Leave a comment

linux ipv6 router

ipv6 router tunnel 6 through 4

Posted in ipv6 | Leave a comment

ntp

ntp

Posted in linux | Leave a comment

linux samba and AD

1. check kerberos, ldap, ads and winbind support. # cat /etc/hosts (output skipped) 192.168.1.215 kpsuse1.netapp.local kpsuse1 192.168.1.216 kpsuse2.netapp.local kpsuse2 192.168.1.120 dc.netapp.local dc # cd /usr/sbin # smbd -b | grep LDAP HAVE_LDAP_H HAVE_LDAP HAVE_LDAP_DOMAIN2HOSTLIST … root@windbag:/usr/sbin# smbd -b | grep … Continue reading

Posted in linux | Leave a comment

linux mysql

http://www.if-not-true-then-false.com/2010/install-mysql-on-fedora-centos-red-hat-rhel/

Posted in linux | Leave a comment

linux usb boot

Linux Create A Bootable USB Pen by NIXCRAFT on MARCH 11, 2010 · 15 COMMENTS· last updated at MARCH 11, 2010 How do I create a bootable USB pen drive to start my CentOS / Fedora Linux? How do I … Continue reading

Posted in linux | Leave a comment

netapp 7-mode lun failover

This procedure describes a method to activate your iscsi lun in from a snapmirror destination if the source fails or is taken offline. 1. you have an iscsi lun mapped to a host; the lun resides in svolume on sfiler. … Continue reading

Posted in Uncategorized | Leave a comment

7-mode migrate

Customer wants to migrate production environment to new hardware. 1. At the production location we are going to use a temporary system to snapmirror the data to, and we will create a common snapshot for later use. 2 Physically move … Continue reading

Posted in netapp | Leave a comment

netapp autologin.sh script

#!/bin/bash #setup autologin ERRLOG=’autologin.errorlog’ function key { hostname=`hostname` #determine mode echo -n “clustermode? (y/n) : ” read mode if [ $mode == “y” ] then echo “clustermode” echo -n “username : ” read user #get the current index to determine … Continue reading

Posted in linux, netapp, scripts | Leave a comment

script vault.sh

#!/bin/bash clear BIN=/bin LOG=/root/scripts/vault.log #functions function filer { echo checking $FILER if $BIN/ping -c 2 -q $FILER > /dev/null 2>&1 then : else $FILER unreachable – exiting exit fi } function check { echo “FUNCTION CHECK” length=`ssh kp7m1 options snapvault.access|awk … Continue reading

Posted in netapp, scripts | Leave a comment

netapp simulator syncmirror

aggr create aggr_mirror -m -f -d v4.20 v4.21 v4.22 v4.28 -d v4.24 v4.25 v4.26 v4.27

Posted in Uncategorized | Leave a comment

netapp flashpools volume settings

f>aggr create aggr1 -T SAS -t raid_dp -B 64 16@560 f>aggr options aggr1 hybrid_enabled on f>aggr add aggr1 -T SSD 6@100 f>priv set advanced f*>priority hybrid-cache set vol1 read-cache=meta f*>priority hybrid-cache set vol1 read-cache=random-read f*>priority hybrid-cache set vol1 read-cache=random-read-write f*>priority … Continue reading

Posted in netapp | Leave a comment

netapp datacollector 7-mode

1. filer> options httpd.admin.enable on filer> options httpd.admin.access host=windowshost 2. download datacollector (windows) run datacollector and download the data

Posted in netapp | Leave a comment

netapp 7-mode autologin script (for linux)

#!/bin/bash #setup autologin function key { hostname=`hostname` ip=`cat /etc/hosts|grep $hostname | cut -f1 -d” “` echo “setting up autologin to $name for $ip” echo “provide root-password for $name” ssh $name exportfs -i -o rw,root=$ip,nosuid /vol/vol0 echo “share done” cd /net/$name/vol/vol0/etc/ … Continue reading

Posted in netapp | Leave a comment

netapp 7-mode lun restore

Restoring lun from snapvault. 1. In windows, open ‘computer -> manage -> disk management’ and select the volume. 2. Choose ‘delete partition’. 3. On primary filer (the one that holds the lun that needs a restore) 1 unmap the lun … Continue reading

Posted in netapp | Leave a comment