Posts

Showing posts from July, 2008

Howto SAN on HP-UX

After create LUN on external storage, we want to connect server through fiber channel to SAN Switch. First we should plugged FC HBA card to server. View HBA version. Ex: AB379B. We need to check depot Fiber Channel that contain HBA's driver. # swlist | grep FibrChanl-01 FibrChanl-01 B.11.11.10 FibreChannel;HW=A6826A,A9782A,A9784A,AB378A/B,AB379A/B,AB465A,AD193A,AD194A If we don't have any depot installed, we should download depot from HP site. After this we install that depot. # swinstall -s /tmp/FibrChanl-01_B.11.11.12_HP-UX_B.11.11_64.depot Before we plugged the HBA card we should make sure we have it's driver. After we install driver, it's safe to shutdown server and plugged HBA card. After start the system, show the system hardware and all list disk device class. # ioscan -nfCdisk Class I H/W Path Driver S/W State H/W Type Description ========================================================================== disk

SAN Switch Config Command

Login via console Fabric OS (swd77) swd77 console login: admin Password: Note: password default is "password" - set hostname swd77:admin> switchName swcdr1 Committing configuration... Done. swcdr1:admin> - set IP Address swcdr1:admin> ipaddrset Ethernet IP Address [192.168.0.25]: 192.168.0.11 Ethernet Subnetmask [255.255.255.0]: Fibre Channel IP Address [0.0.0.0]: Fibre Channel Subnetmask [0.0.0.0]: Gateway IP Address [192.168.0.25]: 0.0.0.0 Issuing gratuitous ARP...Done. 2008/07/14-18:46:43, [WEBD-1007], 494,, INFO, swcdr1, HTTP server will be restarted due to change of IP Address IP address is being changed...Done. Committing configuration...Done. - Configure basic parameter swcdr1:admin> switchDisable swcdr1:admin> configure Configure... Fabric parameters (yes, y, no, n): [no] y Domain: (1..239) [1] 22008/07/14-18:50:40, [FW-1424], 24,, WARNING, swcdr1, Switch status changed from HEALTHY to MARGINAL. 2008/07/14-18:50:40, [FW-1439], 25,, WARNING, swcdr

SAN Switch Show Command

- check and verify SAN Switch platform swcdr1:admin> switchshow switchName: swcdr1 switchType: 34.0 switchState: Online switchMode: Native switchRole: Principal switchDomain: 1 switchId: fffc01 switchWwn: 10:00:00:05:1e:04:a2:90 zoning: OFF switchBeacon: OFF Area Port Media Speed State ============================== 0 0 id N4 Online F-Port 50:01:43:80:01:3c:4a:58 1 1 id N4 Online F-Port 50:01:43:80:01:3c:4a:5c 2 2 id N4 No_Light 3 3 id N4 No_Light 4 4 id N4 No_Light 5 5 id N4 No_Light 6 6 -- N4 No_Module 7 7 -- N4 No_Module 8 8 -- N4 No_Module (No POD License) Disabled 9 9 -- N4 No_Module (No POD License) Disabled 10 10 -- N4 No_Module (No POD License) Disabled 11 11 -- N4 No_Module (No POD License) Disabled 12 12 -- N4 No_Module (No POD License) Disabled 13 13 -- N4 No_Module (No POD Licen

How to mirror disk at HP-UX - 2

If we want 2 mirror Volume Group, we need to put it on different partition. Each Volume Group can has many of Logical Volumes. Show your disk layout partition # ioscan -fnC disk Class I H/W Path Driver S/W State H/W Type Description ============================================================================ disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE _NEC DVD+-RW ND-6650A /dev/dsk/c0t0d0 /dev/rdsk/c0t0d0 disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2 /dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3 disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2 /dev/

How to mirror disk at HP-UX - 1

If we want mirror only 1 Volume Group. Show your disk layout partition # ioscan -fnC disk Class I H/W Path Driver S/W State H/W Type Description ============================================================================ disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE _NEC DVD+-RW ND-6650A /dev/dsk/c0t0d0 /dev/rdsk/c0t0d0 disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2 /dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3 disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2 /dev/dsk/c2t1d0s1 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s1 /dev/rdsk/c2t1d0s3 disk 3 0

How to mirror the root disk HP-UX Integrity (testcase : HP 2620rx)

1. Run ioscan to know about your disk layout # ioscan -fnC disk Class I H/W Path Driver S/W State H/W Type Description ============================================================================ disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE _NEC DVD+-RW ND-6650A /dev/dsk/c0t0d0 /dev/rdsk/c0t0d0 disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2 /dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3 disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC /dev/dsk/c2t1d0 /dev/rdsk/c2t1d0 2. Show each of partition on primary disk # diskinfo -b /dev/rdsk/c2t0d0s1 | awk '{print $1 / (1024)}' 500 # diskinfo -b /dev/rdsk/c2t0d0s2 | awk '{print $1 / (1024)}' 139114 # diskinfo -b /dev/rdsk/c2t0d0s3 | awk '{print $1 / (1024)}' 400 3. Delete any partition ( if an

Tuning Red Hat Cluster Manager

view manual entry for clumembd # man clumembd Parameter tuning for inproper default configuration of Red Hat Cluster Manager clumembd%broadcast_primary_only If set, this causes the cluster to only send broadcast packets on the NIC with the IP matching the member name and the loopback device. This is only used when using broadcast heartbeat mode, and is ignored when multicast mode is used. Current value : 0 New value : 1 cluster%msgsvc_noarp If set to "yes", the cluster will no longer use an internal ARP table for connection checks. If you are seeing "Not in subnet" messages, try changing this option to "yes". Changing this requires a full restart of the cluster software on all nodes to take effect. Current value : no New value : yes clumembd%adaptive Cluster membership daemon will allow a grace period for over-loaded members based on the previous amount of time between heartbeat packets Current value : no New value : yes clumembd%interval Heartbeat inter

Linux GRUB Recovery

If you find GRUB screen when startup your machine like this, Here the ways to solve that : 1. First step GNU GRUB version 0.95 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename.] grub> find /boot/grub/stage1 (hd0,1) it means linux at hda1, it probably give different result on your machine. if it didn't show any result, go forward to step 2. grub> root (hd0,1) grub> setup (hd0) grub> quit Then reboot your machine ... if you still find GRUB screen, go to step 2. 2. Second step GNU GRUB version 0.95 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename.] grub> root (hd0,1) grub> kernel /vmlinuz-2.x.xx-xx.EL ro root=/dev/hda1 if you don't remember what

max simultaneous connections on apache

To know how much max simultaneous connection that can be handled by apache, try to look at apache parameter : # /usr/sbin/httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c That means apache using prefork.c module for Multi Processing Modules purpose. Prefork process multiple child with any of child handle 1 connection at one time. Try to look at httpd.conf # more /etc/httpd/conf/httpd.conf ---------------------------------------------- # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 8 MinSpareServers 5 MaxSpareServers 20 MaxClients 150 MaxRequestsPerChild 1000 ----------------------------------

iRule on BIG-IP

Image
sometimes we want to load balance with string that contain at URI. for example we want to load balance with this specification : We have 10 server with specific purpose, but we want to join this service at one virtual server. 192.168.0.1 & 192.168.0.2 for data purpose 192.168.0.3 & 192.168.0.4 for download purpose 192.168.0.5 & 192.168.0.6 for mail client purpose 192.168.0.7 & 192.168.0.8 for open source purpose 192.168.0.9 & 192.168.0.10 for default So, create 5 pools with member and port specified. After that create iRule, name this iRule as "lbtry" : when HTTP_REQUEST { switch [HTTP::uri] { /data { pool data_pool } /download { pool dload_pool } /mail { pool mail_pool } /opensource { pool os_pool } default { pool def_pool } } Finally, create virtual server with include iRule "lbtry" without define Default Pool. Now we can load balance based on URI. Thanks to Mas Anang n Mas Taufik for gimme a chance for developing this.

MySQL Replication - Master and Slave

We have 2 servers that will be configured as Master and Slave. After we install mysql-server on both servers, check /etc/hosts should be same as both servers. # more /etc/hosts 127.0.0.1 localhost 192.168.0.21 servera 192.168.0.22 serverb 192.168.0.23 dbhost After that try to look at /etc/my.cnf At Master : # more /etc/my.cnf [MYSQLD] basedir = /usr/local/mysql datadir = /data/mysql/data max_connections=10000 default-character-set=utf8 default-collation=utf8_bin # InnoDB parameters set-variable = innodb_buffer_pool_size=1500M set-variable = innodb_additional_mem_pool_size=500M set-variable = innodb_log_buffer_size=10M log-bin=servera-bin binlog-do-db=dsc_fleet binlog-do-db=dsc_friend binlog-do-db=dsc_info binlog-do-db=dsc_marketing binlog-ignore-db=mysql server-id=1 #information for becoming slave. master-host = serverb master-user = replica master-password = slave123 master-port = 3306 relay-log=servera-relay-bin # remember to add line above [mysql.server] user=mysql basedir=/u