Monthly Archives: December 2012

linux device info (smartctl)

smartctl -a /dev/sda smartctl 5.42 2011-10-20 r3458 [i686-linux-2.6.32-279.9.1.el6.i686] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 7200.12 Device Model: ST31000524AS Serial Number: 5VPA3V38 LU WWN Device Id: 5 000c50 … Continue reading

Posted in linux | Leave a comment

linux replace mirrored rootdisk

http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array

Posted in Uncategorized | Leave a comment

linux local repo

You have an iso file called /iso/distro.iso. 1. mkdir /software 2. mount -o loop /iso/distro.iso /software 3. vi /etc/yum.conf (add to end of file) [localrepo] name=Local Repo baseurl=file:///software enabled=1 yum install telnet

Posted in linux | Leave a comment

linux create repo from iso

Step # 1: Mount an ISO file Type the following command (replace iso file name with the actual iso file): # yum install createrepo # mkdir -p /mnt/iso/{1,2,3} # mount -o loop /path/to/centos1.iso /mnt/iso/1 Step # 2: Create a repository … Continue reading

Posted in linux | Leave a comment

linux rootmirror afterwards

1. Create VM witch 2 drives. Use drive 1 for install. It installs /boot on partition sda1 It installs VolGroup/lv_root and lv_swap on partition sda2 2. Login and partition sdb to be equal to sda Make sdb bootable: grub-install –recheck … Continue reading

Posted in linux | Leave a comment

linux mirror root

http://fy.chalmers.se/~appro/linux/HOWTO-mirror-root.html

Posted in linux | Leave a comment

linux selinux

Edit /etc/selinux/config (e.g. $sudo vi /etc/selinux/config) Find the line: SELINUX=enforcing a) If you simply want to set selinux to permissive mode – which will still warn you when something would have been denied change to SELINUX=permissive b) If you are … Continue reading

Posted in linux | Leave a comment

linux fast reset

echo 1 > /proc/sys/kernel/sysrq ;echo b > /proc/sysrq-trigger

Posted in linux | Leave a comment

linux yum

/etc/yum.conf /etc/yum.repos.d yum list yum list installed yum list available yum check-update yum update yum install yum remove yum provides ( like rpm -qf) yum grouplist (shows installed and available groups) yum groupinfo yum groupinstall yum groupupdate yum groupremove

Posted in linux | Leave a comment

linux rpm

rpm -qa (list all packages) rpm -qi (detailed package info) rpm -ql (list files in package) rpm -qf (list package in which file is) rpm -qc (list config files of package) rpm -Ufh (upgrade or install) rpm -ivh (install new … Continue reading

Posted in linux | Leave a comment

nx client

nxclient

Posted in Uncategorized | Leave a comment

linux public repo

( get install-image : http://83.117.104.47:5904/distromount/ ) http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/x86_64/

Posted in Uncategorized | Leave a comment

linux boot (grub)

Arguments passed to grub at boottime (either from grub.conf or commandline ) are stored in /proc/cmdline for example: cat /proc/cmdline ro root=/dev/mapper/vg_centos-lv_root rd_LVM_LV=vg_centos/lv_root rd_LVM_LV=vg_centos/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=129M@0M rhgb quiet

Posted in Uncategorized | Leave a comment

linux over windows

link

Posted in linux | Leave a comment

linux yum repository setup

link

Posted in Uncategorized | Leave a comment

clustermode upgrade

This takes some time… present the new image on a webserver someware. system image update -node gr-01 -package  \ http://192.168.4.160/netappsoftware/software.tgz -setdefault true netappsoftware/software.tgz current image: image1 Downloading package. This may take up to 10 minutes. 97% downloaded Download complete. Listing … Continue reading

Posted in netapp | Leave a comment

clustermode systemshell commands

spmctl, rdb_dump, kenv cl1-01% spmctl List of managed processes. (Error=0) Exec=/usr/sbin/ucoreman –log;Handle=069264cf-377e-4f06-84c2-05fc01b4ee5f;Pid=906;State=Running Exec=/usr/bin/raid_lm;Handle=0a3fbbf9-da62-4104-8e57-846977ad6a3c;Pid=1922;State=Running Exec=/sbin/schmd;Handle=1120522e-9e6f-4b75-b67d-e7a8684ec164;Pid=1658;State=Running Exec=/sbin/vifmgr -n;Handle=17bde8b6-7fbb-4157-9e70-5365ac1e6e58;Pid=1797;State=Running Exec=/usr/sbin/mhostexecd -D;Handle=2d16144e-d733-49bb-a94b-cb40de81f205;Pid=1844;State=Running Exec=/sbin/nchmd;Handle=3909a2b9-37c7-4009-bf7b-914892d4af8d;Pid=1662;State=Running Exec=/usr/sbin/time_state -l;Handle=51329b28-5a89-4e7a-8786-ae17ea355089;Pid=902;State=Running Exec=/sbin/notifyd -n;Handle=56548532-c334-4633-8cd8-77ef97682d3d;Pid=829;State=Running Exec=/sbin/bcomd;Handle=7feb285e-aba3-44fb-8f3b-daadb7e702b9;Pid=1801;State=Running Exec=/usr/sbin/httpdmgr;Handle=86fadb47-8fcd-47c4-bf16-98dc7d10e416;Pid=1621;State=Running Exec=/sbin/coresegd -m;Handle=99e1bb86-fce4-413e-b66b-21348215d253;Pid=1683;State=Running Exec=/sbin/shmd;Handle=a534ba91-c0d1-44a6-b061-e280ba8b62e5;Pid=1654;State=Running Exec=/sbin/mntsvc -n;Handle=a71c0340-e8e1-4bab-a7f6-25ae97d4da5b;Pid=1816;State=Running Exec=/sbin/ndmpd;Handle=c0c9ac97-8eb1-4d8b-a1c9-15546c4b464d;Pid=1645;State=Running Exec=/sbin/cmd;Handle=c2b7cc49-d650-4cfe-b167-95c946ca0abb;Pid=1803;State=Running Exec=/sbin/mgwd -z;Handle=c6b932ea-acc2-46f4-a8e7-83774fb03d99;Pid=939;State=Running Exec=/usr/sbin/named -f -c /tmp/named.conf -S 1024;Handle=ccb0609e-d26e-40a9-9e40-15569206ae3a;Pid=1789;State=Running … Continue reading

Posted in netapp | Leave a comment

clustermode snapmirror loadshare (4) promote

create the new volume cl1::vserver*> volume create -vserver vs2 -volume root_ls1 -aggregate aggr_data -size 30m -type DP create the relationship cl1::*> snapmirror create -source-path cl1://vs2/root_ls -destination-path cl1://vs2/root_ls1 -type LS -tries 8 -schedule 5min initialize the relationship cl1::*> snapmirror initialize-ls-set -source-path … Continue reading

Posted in netapp | Leave a comment

clustermode restore snapshot

cl1::vserver*> vol snapshot restore -vserver nfs1 -volume vol1 -snapshot hourly.2012-12-12_1505

Posted in netapp | Leave a comment

clustermode pnfs and referrals

https://communities.netapp.com/servlet/JiveServlet/previewBody/16613-102-1-31166/TR-4063_%20Parallel%20Network%20File%20System%20Configuration%20and%20Best%20Practices%20for%20Data%20ONTAP%208_1%20Cluster-Modes,%20MAY%2012.pdf

Posted in netapp | Leave a comment

clustermode kerberos

http://www.netapp.com/templates/mediaView?m=tr-4073.pdf&cc=us&wid=153962935&mid=75965025

Posted in netapp | Leave a comment

clustermode command reference

http://people.teamix.net/~bu/81ClusterModeCLReference/CLI-Commands-NetApp-81-Cluster-Mode.pdf

Posted in netapp | Leave a comment

kickstart pxe etcetera oracle linux

http://docs.oracle.com/cd/E20815_01/html/E20821/gisti.html

Posted in linux | Leave a comment

linux containers and btrfs

https://blogs.oracle.com/wim/entry/containers_on_linux

Posted in linux | Leave a comment

linux rescan scsi-bus

echo “- – -” > /sys/class/scsi_host/host#/scan fdisk -l tail -f /var/log/message (where host# may be host0 host1 host2 )

Posted in linux | Leave a comment

linux vnc server

Configuring VNC Server on Linux init (Original Method) systemd (New Method) VNC Clients init (Original Method) The init method works for RHEL and it’s clones (Oracle Linux and CentOS) up to and including RHEL6. It also works for Fedora up … Continue reading

Posted in linux | Leave a comment