Monthly Archives: April 2013

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