-
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: Uncategorized
Ansible NetApp centos 7
yum install epel-release -y yum install python-pip -y pip2 install –upgrade –user pip pip install –upgrade pip pip2 install –user “setuptools<45” pip install ansible pip install netapp-lib solidfire-sdk-python yum install git -y git clone https://github.com/ansible/ansible.git ~/ansible-devel cd ~/ansible-devel git pull … Continue reading
Posted in Uncategorized
Leave a comment
Grant programmatic access to one bucket only
{ “Version”: “2012-10-17”, “Statement”: [ { “Effect”: “Allow”, “Action”: [ “s3:ListBucket” ], “Resource”: [ “arn:aws:s3:::bucketname” ] }, { “Effect”: “Allow”, “Action”: [ “s3:PutObject”, “s3:GetObject”, “s3:DeleteObject” ], “Resource”: [ “arn:aws:s3:::bucketname/*” ] } ] }
Posted in Uncategorized
Leave a comment
Docker start
Create a Dockerfile in your project Then, run the commands to build and run the Docker image: Visit http://localhost:8080 and you will see It works! Without a Dockerfile If you don’t want to include a Dockerfile in your project, it is sufficient to do the following: Configuration … Continue reading
Posted in Uncategorized
Leave a comment
def_prep_2
http://uadmin.nl/init/wp-content/uploads/2019/06/def_prep_2.pdf
Posted in Uncategorized
Leave a comment
cups print to tty
Use cups to print to tty. 1. Install cups yum install -y cups 2. Enable cups systemctl enable cups 3. Start cups systemctl start cups 4. Create printer lpadmin -p terminal2 -v serial:/dev/pts/2 -m raw 5. Enable terminal2 and … Continue reading
Posted in Uncategorized
Leave a comment
netapp simulator vbox
How to setup a single node vsim netapp cluster on virtual box. Flow by Martin Eijmans flow http://uadmin.nl/init/wp-content/uploads/2019/02/me_flow.pdf
Posted in Uncategorized
Leave a comment
linux add password to grub2
1. run the command to create a password hash. grub2-mkpasswd-pbkdf2 2. edit the following file like this vi /etc/grub.d/01_users #!/bin/sh -e cat << EOF set superusers=”root” password_pbkdf2 root grub.pbkdf2.sha512.10000.6A9A780AF06AFA821060956BC089B89A4F5A24F593268FED5DB42978EC7F956BD51FC7BB815B2ABF0BA8EC7F96DA7444B6254725505E06BED12C4AA97485CBFF.AF4A12B70E499340EF97720EF21434A55F1D124B9B9D062413314C8B554197235A525FD0F73C24FBDAF534F5A54CA576FDBF3456526A520BA5F087696B5F8047 EOF 3. apply the password to grub … Continue reading
Posted in Uncategorized
Leave a comment
udev Centos change ens to eth
change name to eth0 (pdf) If your kernel names your network interfaces ens192 or ens224 or anything else you dislike, You could do this to rename them: 1. Change the ifcfg file of the interface to the desired name Also … Continue reading
Posted in Uncategorized
Leave a comment
Protected: routing
There is no excerpt because this is a protected post.
Posted in Uncategorized
Enter your password to view comments.
ansible basic config
ansible_guide_v1This pdf introduces ansible. Installing Ad-Hoc commands Playbooks ansible_guide_v1
Posted in Uncategorized
Leave a comment
netapp sysmgr access to svm (delegate)
#create and allow readonly to the role via the cluster management lif security login role create -role peterr -cmddirname DEFAULT -access readonly #allow access to svm_blue (all access) security login role create -role peterr -cmddirname “volume qtree” -query “-vserver svm_blue” … Continue reading
Posted in Uncategorized
Leave a comment
ansible install on raspberry pi
apt-get install software-properties-common apt-get update apt-get install ansible now change the hosts file in /etc/ansible make sure you have publickey login on the hosts e.g. run: ssh-copy-id root@host1 then check with ansible: ansible -m ping all some adhoc examples: list … Continue reading
Posted in Uncategorized
Leave a comment
ansible play-book create a user
– hosts: linvms user: root vars: #password is ‘yourpass’ password: $1$xyz$X5pC0RUqKE5mOgXcDDgFk0 tasks: – user: name=peter password={{password}}
Posted in Uncategorized
Leave a comment
ansible ad-hoc
$ ansible atlanta -m copy -a “src=/etc/hosts dest=/tmp/hosts” $ ansible webservers -m file -a “dest=/srv/foo/a.txt mode=600” $ ansible webservers -m file -a “dest=/srv/foo/b.txt mode=600 owner=linuser group=linuser” $ ansible webservers -m file -a “dest=/path/to/c mode=755 owner=linuser group=linuser state=directory” $ ansible webservers … Continue reading
Posted in Uncategorized
Leave a comment
ansible-playbook example
$ cat p1.yml — – hosts: linvms vars: http_port: 80 max_clients: 200 remote_user: root tasks: – name: ensure apache is at the latest version yum: name: httpd state: latest – name: write the apache config file template: src: /etc/httpd/conf/httpd.conf dest: … Continue reading
Posted in Uncategorized
Leave a comment
centos vlan setup
# cat ifcfg-ens224 TYPE=Ethernet BOOTPROTO=none NAME=ens224 UUID=60edd252-25eb-4396-baca-f7b09a3bec5e DEVICE=ens224 ONBOOT=yes # cat ifcfg-ens224.2 TYPE=Vlan BOOTPROTO=none NAME=ens224.2 UUID=60edd252-25eb-4396-baca-f7b09a3bec5e DEVICE=ens224.2 IPADDR=192.168.2.11 PREFIX=24 ONBOOT=yes VLAN=yes
Posted in Uncategorized
Leave a comment
rsa quick overview and example
rsa quick overview and example
Posted in Uncategorized
Leave a comment
ontap 9.3 licenses sim
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
Protected: docs
There is no excerpt because this is a protected post.
Posted in Uncategorized
Enter your password to view comments.
linux_network_exercises
This page contains some PDFs with linux network exercises. 1. ssh autologin 2. ip binding Centos 7 3. linux nfs 4. cron 5. systemctl
Posted in Uncategorized
Leave a comment
genfile
#!/bin/bash if [ $# -ne 5 ] then echo “usage: $0 <start_count> <end_count> <device_to_read_from><output_filename>” echo “example: $0 1 500 /dev/sda 4096 run1” exit fi skip=0 for i in `seq $1 $2` do dd if=$3 of=${5}.$i count=1 bs=$4 skip=$skip ((skip+=1)) done
Posted in Uncategorized
Leave a comment
linux del and undel exercise
del script #!/usr/bin/bash TRASH=/trash DB=/trash/db touch /trash/db mkdir ${TRASH} 2> /dev/null if (($# == 0)) then echo “usage: del ” fi FILE=`basename $1` DIR=`dirname $1` DIR=`echo $DIR|sed ‘s/\//_/g’` SUFFIX=`date +%Y_%m_%d_%H_%M_%S` FILE=${FILE}_${SUFFIX}_$DIR ID=`wc -l ${DB}|awk ‘{print $1}’` echo $ID ((ID+=1)) echo … Continue reading
Posted in Uncategorized
Leave a comment
Linux exercises
NFS client and server LVM ip binding systemd SElinux nfs autofs working in the shell firewalld date and ntp scripts splitfile Cron
Posted in Uncategorized
Leave a comment
linux systemd_ex
create a service file. cp /lib/systemd/system/crond.service \ /lib/systemd/system/sleep.service edit the service file. vi /lib/systemd/system/sleep.service [Unit] Description=sleep service [Service] ExecStart=/usr/sbin/sleep.sh KillMode=process [Install] WantedBy=multi-user.target create a script to be executed. vi /usr/sbin/sleep.sh #!/usr/bin/bash sleep 1000 make the script executable chmod +x /usr/sbin/sleep.sh … Continue reading
Posted in Uncategorized
Leave a comment
linux apache virtual hosts example
Create the directory structure mkdir -p /var/www/html/www.vhost1.com mkdir -p /var/www/html/www.vhost2.com Create test web pages for each virtual host echo “vhost1” > /var/www/html/www.vhost1.com/index.html echo “vhost1” > /var/www/html/www.vhost1.com/index.html echo “vhost2” > /var/www/html/www.vhost2.com/index.html Set up ownership and permissions chown -R apache:apache /var/www/html/www.vhost1.com chown … Continue reading
Posted in Uncategorized
Leave a comment
linux firewalld_ex
firewalld tutorial – is firewalld running? firewall-cmd –state – start firewalld systemctl start firewalld.service firewall-cmd –state – what is the default zone? firewall-cmd –get-default-zone – what zones are active on which interfaces? firewall-cmd –get-active-zones – what are the service settings … Continue reading
Posted in Uncategorized
Leave a comment
netapp aggr efficiency
To view compaction, dedupe and compression results. cl1::*> aggr show-efficiency -aggregate n2_aggr1 Name of the Aggregate: n2_aggr1 Node where Aggregate Resides: cl1-02 Logical Size Used by Volumes, Clones, Snapshot Copies in the Aggregate: 118.8MB Total Physical Used: 126.5MB Total Storage … Continue reading
Posted in Uncategorized
Leave a comment
Netapp add snapmirror relationship with altavault nfs share
cl1::> snapmirror create -source-path svm1:vol1 -destination-path 192.168.4.244:/share/rfs/nfs -type xdp Operation succeeded: snapmirror create for the relationship with destination “192.168.4.244:/share/rfs/nfs”.
Posted in Uncategorized
Leave a comment
sdvmdr_temp_example
Download Ontap 9 Command-line by Example (amazon.com) Step 1 Step 2 Step 3
Posted in Uncategorized
Leave a comment
netapp altavault -> AWS quick and dirty
Download Ontap 9 Command-line by Example (amazon.com) 1. deploy altavault ova. 2. add vmdk for local storage 3. power on 4. login with ssh admin/password – set new password and configure networking 5. browser login – storage optimization service is critical … Continue reading
Posted in Uncategorized
Leave a comment
raspberry pi : enx{mac} instead of eth0 (raspberry pi)
edit: /lib/udev/rules/73-usb-net-by-mac.rules change: ACTION==”add”, SUBSYSTEM==”net”, SUBSYSTEMS==”usb”, NAME==””, \ ATTR{address}==”?[014589cd]:*”, \ TEST!=”/etc/udev/rules.d/80-net-setup-link.rules”, \ IMPORT{builtin}=”net_id”, NAME=”$env{ID_NET_NAME_MAC}” Change the NAME at the end as follows: into: ACTION==”add”, SUBSYSTEM==”net”, SUBSYSTEMS==”usb”, NAME==””, \ ATTR{address}==”?[014589cd]:*”, \ TEST!=”/etc/udev/rules.d/80-net-setup-link.rules”, \ IMPORT{builtin}=”net_id”, NAME=”eth0″
Posted in Uncategorized
Leave a comment
Protected: CommVault CVCSA
There is no excerpt because this is a protected post.
Posted in Uncategorized
Enter your password to view comments.
netapp snapmirror vault and svmdr in 10 steps
netapp snapmirror vault and svmdr in 10 steps
Posted in Uncategorized
Leave a comment
netapp svmdr nfs example
In this example you will setup SVMDR, with identity-preserve. Clusters cl1 and cl2 have already been peered. You will exclude a volume from replication and perform a DR action with resync in both directions. 1. Create the two SVMs drsource … Continue reading
Posted in Uncategorized
Leave a comment
netapp snapvault cdot example
In this example you will setup an NFS SVM and snapvault the nfs export volume to a second SVM destination volume. You will setup an XDP snapmirror relationship. Then you will create file in the source volume and restore them … Continue reading
Posted in Uncategorized
Leave a comment
netapp snapmirror dr with lun example
Snapmirror DR in a SAN environment. In this example you will create two SVMs. The src_svm has a src_volume, the dest_svm will have a dest_volume of the type DP. The two SVMs will be peered. The cluster cl1 and cl2 … Continue reading
Posted in Uncategorized
Leave a comment
Netapp iscsi DR example
In this example we will create two SVMs. The source_svm has a source_volume, the dest_svm will have a dest_volume of the type DP. The two SVMs will be peered. The cluster cl1 and cl2 are already peered. We will … Continue reading
Posted in Uncategorized
Leave a comment
netapp cdot lunexample failover dr
Cluster names: cl1 and cl2 Vserver names:source and dest Volume names: lvol1 and dest Ip-addresses 192.168.4.222 and 192.168.4.223 cl1::> vserver create -vserver source -subtype default -rootvolume rv -aggregate n1_aggr1 -rootvolume-security-style unix cl1::> vol create -vserver source -volume lvol -aggregate n1_aggr2 … Continue reading
Posted in Uncategorized
Leave a comment
netapp performance stuff
Some performance commands: top client/file , network test-path , max-xfer , qos-policy cl1::> statistics top client show cl1 : 5/15/2017 19:43:56 *Estimated Total IOPS Protocol Node Vserver Client ———- ——– —— ——- ————- 34 … Continue reading
Posted in Uncategorized
Leave a comment
netapp example lun failover snapmirror ontap 9.x
This is an example LUN failover. Two peered clusters (not discussed) Two peered svms. Two volumes in a snapmirror relationship. This is about changing the LUN serial number so that the initiator does not have to do a rescan of … Continue reading
Posted in Uncategorized
Leave a comment
netapp trimming log files via cronjob
Most (if not all) management on ONTAP can be done from the CLI or SystemManager. If you want to run some scripts of your own, there is a way to do that. If you are not familiar with UNIX/Linux, don’t … Continue reading
Posted in Uncategorized
Leave a comment
SnapCenter unregister VSC
On the VSC server edit the file \Program Files\Netapp\Virtual Storage Console\etc\scbr\scbr.properties Remove everything in the file save it and then restart the Netapp SnapManager for Virtual Infrastucture service.
Posted in Uncategorized
Leave a comment
windows RDP allow login
Allow RDP sessions on AD for users. – Computer (right click -> properties) – Remote Settings – Allow connections from computers running any version of RDP -> Select Users -> Add User Start: secpol.msc -> Local Policies -> User Right … Continue reading
Posted in Uncategorized
Leave a comment
netapp smb stuff
– List share properties vserver cifs share properties add -vserver cifs -share-name data1 -share-properties showsnapshot attributecache continuously-available branchcache access-based-enumeration namespace-caching encrypt-data – Enable referrals vserver cifs options modify -vserver cifs -is-referral-enabled true – Limit maximum connections vserver cifs share modify … Continue reading
Posted in Uncategorized
Leave a comment
netapp flexgroup snapmirror example
In the following example we set up: 1. a flexgroup on cluster cl1 svm flex1 2. a destination volume on cluster cl2single svm flex-2 3. a snapmirror relation between source and destination volume 4. a reversed relationship Prereq: Clusters and … Continue reading
Posted in Uncategorized
Leave a comment
ontap 9 list all api calls
To list the api calls you can use to manage/monitor ontap 9, you can either use a clustershell command (1) or you can run a query using Netapp SDK. (2) In the second case you will have to enable http … Continue reading
Posted in Uncategorized
Leave a comment
netapp iscsi svmdr
In this post: We create a source svm and a destination svm of the type dp-destination (svmdr) The source svm maps a lun to a linux (centos) machine. The source svm is snapmirror to the destination svm. The relationship is … Continue reading
Posted in Uncategorized
Leave a comment
netapp cdot flashpool stuff
statistics show-periodic -object disk:raid_group -instance /n1_aggr1/plex0/rg0 -counter disk_busy|user_read_latency -interval 1 -iterations 60 system node run -node cl911_1 wafl awa start n1_aggr1 system node run -node cl911_1 wafl awa print system node run -node cl911_1 wafl awa stop with flashpools system … Continue reading
Posted in Uncategorized
Leave a comment
docker service swarm web example
Docker service swarm web 4 nodes 6 containers PDF Docker service swarm web 4 nodes 6 containers PDF
Posted in Uncategorized
Leave a comment
linux resize vmdk – device and physical volume
In this example a vmware vmdk is used by a CentOS 7 VM. The original size of the vmdk is 1G, and is resized to 3G. After this resizing in ESXi, run the following in the CentOS VM. The name … Continue reading
Posted in Uncategorized
Leave a comment
Refurbishing Mac
Naturally, Macs have quite some weight. When out of production, they can be re-used to hold down your raspberry pi.
Posted in Uncategorized
Leave a comment
raspberry pi register nfs-server with rpcbind
raspberry_nfs_server_start Problem with raspberry pi (debian) and nfs-kernel-server. Systemd apparently starts the nfs-kernel-server before rpcbind has completed starting. Solution that works for me: The relevant nfs services are enable and started. 1. Make sure that nfs-kernel-server gets started at boottime. … Continue reading
Posted in Uncategorized
Leave a comment
netapp root volume damaged
If a clusternode reports that the ROOT NOT WORKING PROPERLY: RECOVERY REQUIRED unsetenv bootarg.init.boot_recovery
Posted in Uncategorized
Leave a comment
docker networking example
docker.network 1. List the docker network. # docker network ls NETWORK ID NAME DRIVER SCOPE 82f0e82e8a52 bridge bridge local 2f29f6c3dc07 host host local 0ee77fd0eaf6 none null local 2. List the bridge’s address. # ifconfig docker0 | grep “inet ” inet … Continue reading
Posted in Uncategorized
Leave a comment
docker remove all containers and images
docker rm -f $(docker ps -a -q) docker rmi $(docker images -q)
Posted in Uncategorized
Leave a comment
docker shared storage
In the following example we create a volume in a container and share the volume with other containers. 1. Share a docker volume – create the volume in a container that you do not run docker create -v /webdata –name … Continue reading
Posted in Uncategorized
Leave a comment
linux yum groups
Create a file in the groups format used by yum Tell createrepo to include that group file in your repository. Step 1 You can either open a text editor and create the groups xml file manually or you can run … Continue reading
Posted in Uncategorized
Leave a comment
linux strace examples
strace is a systemcall tracer. It tells you what kernel functions are called as a result of your program. It monitors systemcalls and signals. strace -p strace (trace a systemcall) strace -e open (trace multiple systemcalls) strace -e trace=open,read ls … Continue reading
Posted in Uncategorized
Leave a comment
docker – remove all containers and images
#!/bin/bash # Delete all containers docker rm $(docker ps -a -q) # Delete all images docker rmi $(docker images -q)
Posted in Uncategorized
Leave a comment
linux grow rootfs
Grow xfs rootfs The root volumegroup in this example is centos, the disk in the volumegroup is sda. We add a new disk, extend the group, extend the logical volume and grow the filesystem. add new disk. (in vmware: edit … Continue reading
Posted in Uncategorized
Leave a comment