Sunday, December 21, 2008

Solaris iSCSI Initiator Setup

root@s01# svcs -a | grep iscsi
disabled 19:16:32 svc:/network/iscsi_initiator:default
disabled 19:17:41 svc:/system/iscsitgt:default

root@s01# svcadm enable network/iscsi_initiator
root@s01# svcs -a | grep iscsi
disabled 19:17:41 svc:/system/iscsitgt:default
online 19:29:26 svc:/network/iscsi_initiator:default

root@s01# iscsiadm add discovery-address 192.168.2.2:3260

root@s01# iscsiadm modify discovery -t enable
root@s01# format
Searching for disks...

The device does not support mode page 3 or page 4,
or the reported geometry info is invalid.
WARNING: Disk geometry is based on capacity data.

The current rpm value 0 is invalid, adjusting it to 3600

The device does not support mode page 3 or page 4,
or the reported geometry info is invalid.
WARNING: Disk geometry is based on capacity data.

The current rpm value 0 is invalid, adjusting it to 3600
done

c3t3d0: configured with capacity of 18.00MB
c3t4d0: configured with capacity of 98.00MB


AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c3t1d0
/iscsi/disk@0000iqn.1994-04.org.netbsd.iscsi-target%3Atarget30001,0
2. c3t2d0
/iscsi/disk@0000iqn.1994-04.org.netbsd.iscsi-target%3Atarget20001,0
3. c3t3d0
/iscsi/disk@0000iqn.1994-04.org.netbsd.iscsi-target%3Atarget10001,0
4. c3t4d0
/iscsi/disk@0000iqn.1994-04.org.netbsd.iscsi-target%3Atarget00001,0
Specify disk (enter its number): c^C
root@s01#

Solarix X server

Disable CDE/Java Desktop
svcadm disable svc:/application/graphical-login/cde-login:default

Enable CDE/Java Desktop
svcadm enable svc:/application/graphical-login/cde-login:default

Disable login server
# /usr/dt/bin/dtconfig -d

Stop login server
# /usr/dt/bin/dtconfig -kill

nable login server
# /usr/dt/bin/dtconfig -e

Thursday, December 11, 2008

Flickr

This is a test post from flickr, a fancy photo sharing thing.

Friday, November 28, 2008

dmadm command - Solaris

dladm - configure data-link interfaces


# dladm show-dev

bge0 link: up speed: 1000 Mbps duplex: full
bge1 link: down speed: 0 Mbps duplex: unknown
bge2 link: unknown speed: 0 Mbps duplex: unknown
bge3 link: unknown speed: 0 Mbps duplex: unknown
# ifconfig bge2 plumb
# dladm show-dev
bge0 link: up speed: 1000 Mbps duplex: full
bge1 link: down speed: 0 Mbps duplex: unknown
bge2 link: up speed: 1000 Mbps duplex: full
bge3 link: unknown speed: 0 Mbps duplex: unknown

Network Troubleshooting Tips for the Solaris 9 OS

http://www.sun.com/bigadmin/content/submitted/troubleshoot_network.jsp

Ross Moffatt, December 2006

Contents

Overview

This How-To covers some basic networking setup and troubleshooting on the Solaris 9 OS.

Two Tips for Network Performance Checking

a. Use FTP to copy a large file between hosts. Make sure you copy the file in both directions, as network performance problems can be directional. A possible cause of performance issues is autonegotiation being enabled at either the host or the router/switch. (See the Checking Network Settings section of this article for more details.)

b. Use ping with small (1Kbyte) and large (10K) packet sizes: Sometime routers in the network can have issues depending upon the size of the packet, as some use different queues within the router depending upon packet size.

Network Connectivity Troubleshooting

Here is a checklist to help you locate and resolve network connectivity problems.

1. Use ifconfig -a to check that interfaces are plumbed; that is, that they exist in the output. Also, check the network address and netmask of the interface.

To plumb an interface, run the command ifconfig plumb, for example:

# ifconfig ce1 plumb

Use ifconfig to see if the interface now exists.

# ifconfig -a
lo0: 
flags=1000849 
mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ce0: 
flags=1000843 
mtu 1500 index 2
        inet 444.555.666.7 netmask ffffff00 broadcast 
444.555.666.255
        ether 5:3:de:de:de:de
ce1: 
flags=1000842 
mtu 1500 index 6
        inet 0.0.0.0 netmask 0
        ether 3:4:aa:bb:cc:dd

Give the interface its ipaddress and netmask.

ifconfig ce1 555.66.77.88 netmask 255.255.255.0 up

2. Ping the interface address; it should work!

3. Ping your router/switch. If you see => fail, then check your network settings. (See the Checking Network Settings section of this article.)

4. Ping a host on another network. If that doesn't work, check the routing table. (See the Checking Routing Settings section of this document.)

Checking Network Settings

You can check or set the status and configuration of a network interface with the ndd command. To use the ndd command, you first need to use the ifconfig command to find out what the device file is for the network interface in which you are interested.

# ifconfig -a
lo0: 
flags=1000849 
mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ce0: 
flags=1000843 
mtu 1500 index 2
        inet 444.555.666.7 netmask ffffff00 broadcast 
444.555.666.255
        ether 5:3:de:de:de:de

This example shows only one interface plumbed, ce0, so the interface type is ce, and it is instance 0.

Now sometimes the ndd command uses a generic device file, e.g. /dev/ce, and you need to set the instance number first to know which instance is being interrogated. Otherwise, an instance-specific device file, e.g. /dev/bge0, is used. You can use ls -ld /dev/* to see if instance-specific device files exist, for example, ls -ld /dev/ce*.

# ls -l /dev/ce*
lrwxrwxrwx 1 root root 28 Mar 3 2006 /dev/ce ->
.../devices/pseudo/clone@0:ce

or

# ls -ld /dev/bge*
lrwxrwxrwx 1 root root 29 Oct 14 2005 /dev/bge ->
.../devices/pseudo/clone@0:bge
lrwxrwxrwx 1 root root 39 Oct 14 2005 /dev/bge0 ->
.../devices/pci@1f,700000/network@2:bge0
lrwxrwxrwx 1 root root 41 Oct 14 2005 /dev/bge1 ->
.../devices/pci@1f,700000/network@2,1:bge1
lrwxrwxrwx 1 root root 39 Oct 14 2005 /dev/bge2 ->
.../devices/pci@1d,700000/network@2:bge2
lrwxrwxrwx 1 root root 41 Oct 14 2005 /dev/bge3 ->
.../devices/pci@1d,700000/network@2,1:bge3

The following scripts print out all variables available via ndd. One is for a generic device file, and the other is for an instance-specific device file. The script is run with the instance required as a command-line option, that is, 0. You would need to change the script to have the correct interface device type. For example, you may need to replace ce with eri if your interface device file is /dev/eri.

#!/bin/sh
# ndd generic device script
ndd -set /dev/ce instance $1
for p in `ndd /dev/ce \\? | awk '{print $1}' | grep -v \\?`
do echo \"$p: `ndd /dev/ce $p`\"
done
 
Output.
# ./script 0
"instance: 0"
"adv_autoneg_cap: 0"
"adv_1000fdx_cap: 0"
"adv_1000hdx_cap: 0"
"adv_100T4_cap: 0"
"adv_100fdx_cap: 1"
"adv_100hdx_cap: 0"
"adv_10fdx_cap: 0"
"adv_10hdx_cap: 0"
"adv_asmpause_cap: 0"
"adv_pause_cap: 0"
"master_cfg_enable: 0"
"master_cfg_value: 0"
"use_int_xcvr: 0"
"enable_ipg0: 1"
"ipg0: 8"
"ipg1: 8"
"ipg2: 4"
"rx_intr_pkts: 8"
"rx_intr_time: 3"
"red_dv4to6k: 0"
"red_dv6to8k: 0"
"red_dv8to10k: 0"
"red_dv10to12k: 0"
"tx_dma_weight: 0"
"rx_dma_weight: 0"
"infinite_burst: 1"
"disable_64bit: 0"
"accept_jumbo: 0"
"laggr_multistream: 0"
 
 
 
#!/bin/sh
# ndd specific device script
for p in `ndd /dev/bge$1 \\? | awk '{print $1}' | grep -v \\?`
do echo \"$p: `ndd /dev/bge$1 $p`\"
done
 
Output.
# ./script 0
"autoneg_cap: 0"
"pause_cap: 1"
"asym_pause_cap: 1"
"1000fdx_cap: 0"
"1000hdx_cap: 0"
"100T4_cap: 0"
"100fdx_cap: 1"
"100hdx_cap: 0"
"10fdx_cap: 0"
"10hdx_cap: 0"
"adv_autoneg_cap: 0"
"adv_pause_cap: 1"
"adv_asym_pause_cap: 1"
"adv_1000fdx_cap: 0"
"adv_1000hdx_cap: 0"
"adv_100T4_cap: 0"
"adv_100fdx_cap: 1"
"adv_100hdx_cap: 0"
"adv_10fdx_cap: 0"
"adv_10hdx_cap: 0"
"lp_autoneg_cap: 0"
"lp_pause_cap: 0"
"lp_asym_pause_cap: 0"
"lp_1000fdx_cap: 0"
"lp_1000hdx_cap: 0"
"lp_100T4_cap: 0"
"lp_100fdx_cap: 0"
"lp_100hdx_cap: 0"
"lp_10fdx_cap: 0"
"lp_10hdx_cap: 0"
"link_status: 1"
"link_speed: 100"
"link_duplex: 1"
"link_autoneg: 0"
"link_rx_pause: 1"
"link_tx_pause: 0"
"loop_mode: 0"

I have found it best to set the network devices to disable autonegotiation on both the host and the router to which the host is connected. This is done by setting the following parameters: autoneg_cap, 1000fdx_cap, 1000hdx_cap, 100T4_cap, 100fdx_cap, 100hdx_cap, 10fdx_cap, 10hdx_cap, and adv_autoneg_cap.

I use this script in the /etc/rc2 directory to set the network parameters.

smart1 # more /etc/rc2.d/S95net_tune
#!/sbin/sh
PATH=$PATH:/usr/sbin;export PATH
case "$1" in
'start')
        /usr/sbin/ndd -set /dev/bge0 adv_1000fdx_cap 0
        /usr/sbin/ndd -set /dev/bge0 adv_1000hdx_cap 0
        /usr/sbin/ndd -set /dev/bge0 adv_100fdx_cap 1
        /usr/sbin/ndd -set /dev/bge0 adv_100hdx_cap 0
        /usr/sbin/ndd -set /dev/bge0 adv_10fdx_cap 0
        /usr/sbin/ndd -set /dev/bge0 adv_10hdx_cap 0
        /usr/sbin/ndd -set /dev/bge0 adv_autoneg_cap 0
        ;;
 
'stop')
        ;;
 
*)
        echo "Usage: $0 { start | stop }"
        exit 1
        ;;
esac
exit 0

The bge interface shows you the currently running status with the following parameters: link_status, link_speed, and link_duplex.

For information on interface device drivers, look in the man pages, in Section 7: Devices and Network Interfaces.

Checking Routing Settings

To see your current routing configuration, use netstat -r, and add the -n option depending on whether you want to see DNS names or IP addresses. For example:

smart1 # netstat -rn
Routing Table: IPv4
  Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
222.333.444.0 222.333.444.21 U 1 104943 bge0
default 222.333.444.1 UG 163805900
127.0.0.1 127.0.0.1 UH 538851300 lo0
smart1 # netstat -r
 
Routing Table: IPv4
  Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
222.333.444.0 myhost U 1 104943 bge0
default router UG 163805927
localhost localhost UH 538851327 lo0

If the default route is missing, then use the ifconfig command to add it on the fly:

ifconfg add default 222.333.444.1

Changing the IP Address

The following startup files need to be modified to change a host's IP address.

/etc/inet/hosts: Change the IP address, file format, IPhostname.

/etc/inet/netmasks: Add a new netmask, file format, networknetmask.

/etc/defaultrouter: Specify the new gateway for this subnet, file format, ipaddress.

About the Author

Ross Moffatt has been a UNIX System Administrator for more than 10 years. He can be contacted at ross.stuff@telstra.com.

Sunday, September 21, 2008

CSA: HP0-A01

21 Sept 2008.
No mood to study .. dunno why .. All seem missing ..

Must continue to fight ..!

Saturday, September 6, 2008

CSA: HP-UX 11i v3 Certification

My last plan exam for 2008.
HP-UX 11i v3 System AdministrationExam #HP0-A01
I have no confidence on this exam.

Recommneded courses from HP;
UNIX Fundamentals#51434S - Instructor-led (5 days)
-and-
HP-UX system and setwork administration I#H3064S - Instructor-led (5 days)
-and-
HP-UX system and network administration II#H3065S - Instructor-led (5 days)
-or-
HP-UX for experienced UNIX system administrators#H5875S - Instructor-led (5 days)

For information. CSA - HP-UX 11i v3, http://www.hp.com/certification/credential/index.html?credcode=c107

Target Date for exam: 21 October 2008

Wednesday, August 13, 2008

Solaris version check! 32-bit or 64-bit?

To check Solaris is x86-64, x86, sparc9, sparc64, execute the following commands;

isainfo
isainfo -v
isainfo -kv

Examples;
myhost1# isainfo -kv
64-bit sparcv9 kernel modules

# isainfo
amd64 i386

# isainfo -kv
64-bit amd64 kernel modules

Thursday, July 10, 2008

SCNA 10 - CX310-302 - 10 July 2008 : done

Finally, i passed my CX310-302 with 93/100.
i am entitled for HP iPAQ 612. hurray...!

Wednesday, July 9, 2008

SCNA 10 - CX310-302 - 10 July 2008

I reschedule my exam to Thurday, 10 July. Wish me Good luck and get score .. >92% ..
Tired to study already ..

CX310-200, Solaris 10 Admin I: 91%
CX310-202, Solaris 10 Admin II: 92%
CX310-302, Solaris 10 Network: ???

Thursday, July 3, 2008

ifconfig & route for Linux & Solaris

Linux;
# Set the ip & bring up the interface
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up

# Add/Del default route
route add default gw 192.168.0.1
route del default gw 192.168.0.1
OR
route add default gw 192.168.1.1 eth0

# Add route to network
route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0
route del -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0

# Add route to host
route add -host 10.10.10.45 gw 192.168.0.1

===============

Solaris;
# Enable network interface
ifconfig vmxnet0 plumb up

# Set the ip & bring up the interface
ifconfig hme0 192.168.1.13 netmask 255.255.255.0 up

# + sign will refer to default network configuration file
ifconfig hme0 192.168.1.13 netmask + broadcast + up

ifconfig hme0 192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255 up


# Add default route
route add default 192.168.1.1

# Add static route to network
route add net 192.168.68.0 192.168.0.1 -netmask 255.255.255.0
# 192.168.0.1 is gw

# Add static route to host
route add host 192.168.1.2 192.168.5.1
# 192.168.5.1 is gw

# Add the persistent route,
# The static routes will be stored in file /etc/inet/static_routes.
route -p add 192.168.15.0 192.168.15.1

HP-UX
# Set IP and bring up the NIC
ifconfig lan0 16.118.112.135 netmask 255.255.255.0 up

# Bring down NIC
ifconfig lan0 down

> Network configuration file;
/etc/rc.config.d/netconf

Wednesday, June 25, 2008

Solaris NIC

Installing an Ethernet Card

To install an additional Ethernet interface (let's call it le1):

1) Put the card in and from the ok> prompt do a boot -r

a) create /etc/hostname.le1 that contains the host name

b) make the interface known to the system:

ifconfig le1 plumb

3) configure the interface:

ifconfig le1 up netmask + broadcast +

4) test the connection


Sun Network Interface Duplex
Checking and setting the link parameters of Sun hme network interfaces requires the use of the ndd command. The procedure for qfe interfaces is similar, except that the instance must be specified. For example, the Sun QuadFast Ethernet card would have instances 0-3: qfe0, qfe1, qfe2, qfe3.

Checking the current running speed(s):

Choose the interface instance:

# ndd -set /dev/qfe instance 0

That selects the first instance: qfe0. Note that the default instance is 0.

Check the status, speed & mode:

# ndd -get /dev/qfe link_status
1 = up
0 = down
# ndd -get /dev/qfe link_speed
1 = 100 Mb
0 = 10 Mb
# ndd -get /dev/qfe link_mode
1 = Full Duplex (FDX)
0 = Half Duplex (HDX)

Hot to configure individual interfaces via ndd commands:

These commands are usually placed in a startup script such as /etc/rc2.d/S99qfe.

Hot to force 100Mbs Full Duplex (FDX) on qfe1:

ndd -set /dev/qfe instance 1
ndd -set /dev/qfe adv_100T4_cap 0
ndd -set /dev/qfe adv_100fdx_cap 1
ndd -set /dev/qfe adv_100hdx_cap 0
ndd -set /dev/qfe adv_10fdx_cap 0
ndd -set /dev/qfe adv_10hdx_cap 0
ndd -set /dev/qfe adv_autoneg_cap 0

It is important to run these commands in the above order. The link will be renegotiated when the final command is run.

Tuesday, June 24, 2008

Solaris Zone Config File

Solaris Zone config file; then execute “zonecfg -z zoneA -f /var/tmp/zoneA_config” to configure the non-global zone.

To get the config from existing zone;
# zoneadm -z zoneB halt
# zonecfg -z zoneB export > /var/tmp/zoneB_config
# zoneadm -z zoneB boot

Zone Config file
# cat zoneA_config
create -b
set zonepath=/export/home/zones/zoneA
set autoboot=true
set pool=cwp1-pool
set ip-type=shared
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt/zoneshare
end
add fs
set dir=/opt/precom
set special=/opt/cwpqv04
set type=lofs
add options rw
add options nodevices
end
add net
set address=147.243.251.57
set physical=e1000g0
end
add net
set address=10.188.149.57
set physical=e1000g1
end
add net
set address=10.190.149.57
set physical=e1000g3
end
add attr
set name=comment
set type=string
set value="my server"
end

Wednesday, June 18, 2008

SCNA 10 - CX310-302 - Review

In progress .. Chapter 7 ..
CIDR ..
Total is 12 chapters.
Slow ..
Plan Exam Date: 14 July 2008
Finish Study Date: 29 June 2008
Review Date: 30 Jun - 12 Jul 2008

Solaris Persistent Static Route

Reference Link: Implementing Persistent Host and Network Routes on Solaris Systems

root@myhost # uname -a
SunOS myhost 5.10 Generic_125100-06 sun4v sparc SUNW,Sun-Fire-T200
root@myhost # pwd
/etc/init.d
root@myhost # more routeadd
#!/bin/sh
#
# Static routes to Maintenance and Backup network for eg. AppGate use
#
# To install:
# 1) cp routeadd /etc/init.d
# 2) perform edits on the script as required
# 3) chmod 744 /etc/init.d/routeadd
# 4) chown root:sys /etc/init.d/routeadd
# 5) ln /etc/init.d/routeadd /etc/rc2.d/S99routeadd
#
GATEWAY=10.188.131.1
BACKUP_GATEWAY=10.190.131.1
BACKUP_NET=10.190.128.0

case "$1" in
'start')
echo "adding static network route"
/usr/sbin/route add -net 147.243.2.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.17.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.130.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.145.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.226.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.233.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.194.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.209.0 ${GATEWAY} 1
/usr/sbin/route add -net 10.40.15.0 ${GATEWAY} 1
/usr/sbin/route add -net 10.40.17.0 ${GATEWAY} 1
/usr/sbin/route add -net ${BACKUP_NET} ${BACKUP_GATEWAY} 1
;;
'stop')
echo "deleting static network route"
/usr/sbin/route delete -net 147.243.2.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.17.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.130.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.145.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.226.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.233.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.194.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.209.0 ${GATEWAY} 1
/usr/sbin/route delete -net 10.40.15.0 ${GATEWAY} 1
/usr/sbin/route delete -net 10.40.17.0 ${GATEWAY} 1
/usr/sbin/route delete -net ${BACKUP_NET} ${BACKUP_GATEWAY} 1
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
root@myhost # ls /etc/rc*.d/*route*
/etc/rc2.d/S99routeadd

root@myhost # netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.188.131.0 10.188.131.40 U 1 877 e1000g2
10.190.131.0 10.190.131.37 U 1 102 e1000g3
10.160.242.0 10.160.242.37 U 1 11382 e1000g0
10.160.242.0 10.160.242.37 U 1 0 e1000g0:1
10.160.242.0 10.160.242.37 U 1 1254 e1000g1
147.243.2.0 10.188.131.1 UG 1 0
147.243.130.0 10.188.131.1 UG 1 0
147.243.226.0 10.188.131.1 UG 1 0
147.243.194.0 10.188.131.1 UG 1 0
147.243.233.0 10.188.131.1 UG 1 0
10.40.15.0 10.188.131.1 UG 1 0
147.243.17.0 10.188.131.1 UG 1 2179
147.243.145.0 10.188.131.1 UG 1 91
147.243.209.0 10.188.131.1 UG 1 0
10.40.17.0 10.188.131.1 UG 1 0
10.190.128.0 10.190.131.1 UG 1 202
224.0.0.0 10.160.242.37 U 1 0 e1000g0
default 10.160.242.1 UG 1 50800
127.0.0.1 127.0.0.1 UH 33 447401 lo0

root@myhost #

Thursday, June 12, 2008

Add EVA disk to HP-UX

SecurePath: No
To Check?
myhost:/var/adm/syslog:# ioscan -fnC disk | grep t0d4
/dev/dsk/c2t0d4 /dev/rdsk/c2t0d4
/dev/dsk/c4t0d4 /dev/rdsk/c4t0d4
/dev/dsk/c6t0d4 /dev/rdsk/c6t0d4
/dev/dsk/c8t0d4 /dev/rdsk/c8t0d4
/dev/dsk/c10t0d4 /dev/rdsk/c10t0d4
/dev/dsk/c12t0d4 /dev/rdsk/c12t0d4
/dev/dsk/c14t0d4 /dev/rdsk/c14t0d4
/dev/dsk/c16t0d4 /dev/rdsk/c16t0d4

Server is not using Securepath if you see same device many times ("t0d4" in this example) through multiple controllers.

** To check any new disk is attached;
myhost:/var/adm/syslog:# grep disk /var/adm/syslog/syslog.log
Feb 20 14:19:37 myhost vmunix: 0/0/2/1.0.16.0.0 sdisk
Feb 20 14:19:37 myhost vmunix: 0/4/1/0.0.0.2.0 sdisk
Feb 20 14:19:37 myhost vmunix: 0/4/1/0.0.0.3.0 sdisk
...
Mar 6 16:41:48 myhost vmunix: 0/3/1/0.12.18.0.0.0.2 sdisk
Mar 6 16:41:48 myhost vmunix: 0/3/1/0.12.2.0.0.0.1 sdisk
Mar 6 16:41:48 myhost vmunix: 0/3/1/0.12.2.0.0.0.2 sdisk
Apr 10 10:04:53 myhost vmunix: 0/3/1/0.12.3.0.0.0.3 sdisk
...
Apr 10 10:04:53 myhost vmunix: 0/7/1/0.11.2.0.0.0.3 sdisk
Apr 10 10:04:53 myhost vmunix: 0/7/1/0.11.18.0.0.0.4 sdisk
Apr 10 10:04:53 myhost vmunix: 0/7/1/0.11.2.0.0.0.4 sdisk

>> NO new disk added

** New Disk added
> run ioscan again, check /var/adm/syslog/syslog.log
myhost:/var/adm/syslog:# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Descript ion
========================================================
disk 0 0/0/2/1.0.16.0.0 sdisk CLAIMED DEVICE T EAC DV-28E-V
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 19 0/3/1/0.12.2.0.0.0.1 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c2t0d1 /dev/rdsk/c2t0d1
disk 20 0/3/1/0.12.2.0.0.0.2 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c2t0d2 /dev/rdsk/c2t0d2
disk 24 0/3/1/0.12.2.0.0.0.3 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c2t0d3 /dev/rdsk/c2t0d3
disk 27 0/3/1/0.12.2.0.0.0.4 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c2t0d4 /dev/rdsk/c2t0d4
disk 15 0/3/1/0.12.3.0.0.0.1 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c4t0d1 /dev/rdsk/c4t0d1
disk 16 0/3/1/0.12.3.0.0.0.2 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c4t0d2 /dev/rdsk/c4t0d2
disk 21 0/3/1/0.12.3.0.0.0.3 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c4t0d3 /dev/rdsk/c4t0d3
disk 25 0/3/1/0.12.3.0.0.0.4 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c4t0d4 /dev/rdsk/c4t0d4
disk 17 0/3/1/0.12.18.0.0.0.1 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
disk 18 0/3/1/0.12.18.0.0.0.2 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c6t0d2 /dev/rdsk/c6t0d2
disk 23 0/3/1/0.12.18.0.0.0.3 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c6t0d3 /dev/rdsk/c6t0d3
disk 26 0/3/1/0.12.18.0.0.0.4 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c6t0d4 /dev/rdsk/c6t0d4
disk 13 0/3/1/0.12.19.0.0.0.1 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c8t0d1 /dev/rdsk/c8t0d1
disk 14 0/3/1/0.12.19.0.0.0.2 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c8t0d2 /dev/rdsk/c8t0d2
disk 22 0/3/1/0.12.19.0.0.0.3 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c8t0d3 /dev/rdsk/c8t0d3
disk 28 0/3/1/0.12.19.0.0.0.4 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c8t0d4 /dev/rdsk/c8t0d4
disk 3 0/4/1/0.0.0.2.0 sdisk CLAIMED DEVICE H P DG146ABAB4
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
/dev/dsk/c1t2d0s1 /dev/rdsk/c1t2d0s1
/dev/dsk/c1t2d0s2 /dev/rdsk/c1t2d0s2
/dev/dsk/c1t2d0s3 /dev/rdsk/c1t2d0s3
disk 4 0/4/1/0.0.0.3.0 sdisk CLAIMED DEVICE H P DG146ABAB4
/dev/dsk/c1t3d0 /dev/rdsk/c1t3d0
/dev/dsk/c1t3d0s1 /dev/rdsk/c1t3d0s1
/dev/dsk/c1t3d0s2 /dev/rdsk/c1t3d0s2
/dev/dsk/c1t3d0s3 /dev/rdsk/c1t3d0s3
disk 8 0/7/1/0.11.2.0.0.0.1 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c10t0d1 /dev/rdsk/c10t0d1
disk 12 0/7/1/0.11.2.0.0.0.2 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c10t0d2 /dev/rdsk/c10t0d2
disk 34 0/7/1/0.11.2.0.0.0.3 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c10t0d3 /dev/rdsk/c10t0d3
disk 36 0/7/1/0.11.2.0.0.0.4 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c10t0d4 /dev/rdsk/c10t0d4
disk 5 0/7/1/0.11.3.0.0.0.1 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c12t0d1 /dev/rdsk/c12t0d1
disk 9 0/7/1/0.11.3.0.0.0.2 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c12t0d2 /dev/rdsk/c12t0d2
disk 30 0/7/1/0.11.3.0.0.0.3 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c12t0d3 /dev/rdsk/c12t0d3
disk 33 0/7/1/0.11.3.0.0.0.4 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c12t0d4 /dev/rdsk/c12t0d4
disk 6 0/7/1/0.11.18.0.0.0.1 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c14t0d1 /dev/rdsk/c14t0d1
disk 10 0/7/1/0.11.18.0.0.0.2 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c14t0d2 /dev/rdsk/c14t0d2
disk 31 0/7/1/0.11.18.0.0.0.3 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c14t0d3 /dev/rdsk/c14t0d3
disk 35 0/7/1/0.11.18.0.0.0.4 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c14t0d4 /dev/rdsk/c14t0d4
disk 7 0/7/1/0.11.19.0.0.0.1 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c16t0d1 /dev/rdsk/c16t0d1
disk 11 0/7/1/0.11.19.0.0.0.2 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c16t0d2 /dev/rdsk/c16t0d2
disk 29 0/7/1/0.11.19.0.0.0.3 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c16t0d3 /dev/rdsk/c16t0d3
disk 32 0/7/1/0.11.19.0.0.0.4 sdisk CLAIMED DEVICE H P HSV210
/dev/dsk/c16t0d4 /dev/rdsk/c16t0d4

>> /var/adm/syslog/syslog.log
Jun 12 05:21:54 myhost vmunix: 0/3/1/0.12.3.0.0.0.5 sdisk
Jun 12 05:21:54 myhost vmunix: 0/3/1/0.12.2.0.0.0.5 sdisk
Jun 12 05:21:54 myhost vmunix: 0/3/1/0.12.18.0.0.0.5 sdisk
Jun 12 05:21:54 myhost vmunix: 0/3/1/0.12.19.0.0.0.5 sdisk
Jun 12 05:21:54 myhost vmunix: 0/7/1/0.11.18.0.0.0.5 sdisk
Jun 12 05:21:54 myhost vmunix: 0/7/1/0.11.2.0.0.0.5 sdisk
Jun 12 05:21:54 myhost vmunix: 0/7/1/0.11.3.0.0.0.5 sdisk
Jun 12 05:21:54 myhost vmunix: 0/7/1/0.11.19.0.0.0.5 sdisk

>> ioscan output
disk 37 0/3/1/0.12.3.0.0.0.5 sdisk CLAIMED DEVICE HP HSV210
/dev/dsk/c4t0d5 /dev/rdsk/c4t0d5

----------

myhost:/tmp:# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t2d0s2
/dev/dsk/c1t3d0s2
/dev/vgdata1
/dev/dsk/c10t0d1
/dev/dsk/c10t0d2
/dev/dsk/c12t0d1
/dev/dsk/c12t0d2
/dev/dsk/c14t0d1
/dev/dsk/c14t0d2
/dev/dsk/c16t0d1
/dev/dsk/c16t0d2
/dev/dsk/c2t0d1
/dev/dsk/c2t0d2
/dev/dsk/c4t0d1
/dev/dsk/c4t0d2
/dev/dsk/c6t0d1
/dev/dsk/c6t0d2
/dev/dsk/c8t0d1
/dev/dsk/c8t0d2
/dev/dsk/c2t0d3
/dev/dsk/c2t0d4
/dev/dsk/c4t0d3
/dev/dsk/c4t0d4
/dev/dsk/c6t0d3
/dev/dsk/c6t0d4
/dev/dsk/c8t0d3
/dev/dsk/c8t0d4
/dev/dsk/c10t0d3
/dev/dsk/c10t0d4
/dev/dsk/c12t0d3
/dev/dsk/c12t0d4
/dev/dsk/c14t0d3
/dev/dsk/c14t0d4
/dev/dsk/c16t0d3
/dev/dsk/c16t0d4

myhost:/tmp:# ioscan -funC diskgrep "/dev/dsk"cut -c32-48
/dev/dsk/c0t0d0
/dev/dsk/c2t0d1
/dev/dsk/c2t0d2
/dev/dsk/c2t0d3
/dev/dsk/c2t0d4
/dev/dsk/c2t0d5
/dev/dsk/c4t0d1
/dev/dsk/c4t0d2
/dev/dsk/c4t0d3
/dev/dsk/c4t0d4
/dev/dsk/c4t0d5
/dev/dsk/c6t0d1
/dev/dsk/c6t0d2
/dev/dsk/c6t0d3
/dev/dsk/c6t0d4
/dev/dsk/c6t0d5
/dev/dsk/c8t0d1
/dev/dsk/c8t0d2
/dev/dsk/c8t0d3
/dev/dsk/c8t0d4
/dev/dsk/c8t0d5
/dev/dsk/c1t2d0
/dev/dsk/c1t2d0s1
/dev/dsk/c1t3d0
/dev/dsk/c1t3d0s1
/dev/dsk/c10t0d1
/dev/dsk/c10t0d2
/dev/dsk/c10t0d3
/dev/dsk/c10t0d4
/dev/dsk/c10t0d5
/dev/dsk/c12t0d1
/dev/dsk/c12t0d2
/dev/dsk/c12t0d3
/dev/dsk/c12t0d4
/dev/dsk/c12t0d5
/dev/dsk/c14t0d1
/dev/dsk/c14t0d2
/dev/dsk/c14t0d3
/dev/dsk/c14t0d4
/dev/dsk/c14t0d5
/dev/dsk/c16t0d1
/dev/dsk/c16t0d2
/dev/dsk/c16t0d3
/dev/dsk/c16t0d4
/dev/dsk/c16t0d5
myhost:/tmp:#
>> To ensure the disk is not part of lvm; use the following commands.
myhost:/tmp:# strings /etc/lvmtab grep t0d5
>> To get all alternate path for the disk;
myhost:/tmp:# ioscan -funC diskgrep "/dev/dsk"cut -c32-48 grep t0d5
/dev/dsk/c2t0d5
/dev/dsk/c4t0d5
/dev/dsk/c6t0d5
/dev/dsk/c8t0d5
/dev/dsk/c10t0d5
/dev/dsk/c12t0d5
/dev/dsk/c14t0d5
/dev/dsk/c16t0d5

>> To verify the World wide lun name with storage WO;
myhost:/tmp:# ./evainfo_hpux11_23_IA -d /dev/rdsk/c2t0d5
Devicefile Array WWNN Capacity Controller/Port/Mode
/dev/rdsk/c2t0d5 5000-1FE1-500D-F640 6005-08B4-0006-94B6-0000-F000-036E-0000 51200MB Ctl-A/FP-2/NonOptimized
myhost:/tmp:#
myhost:/tmp:# ./evainfo_hpux11_23_IA -d /dev/rdsk/c4t0d5
Devicefile Array WWNN Capacity Controller/Port/Mode
/dev/rdsk/c4t0d5 5000-1FE1-500D-F640 6005-08B4-0006-94B6-0000-F000-036E-0000 51200MB Ctl-B/FP-2/Optimized

** From Storage WO **
Name: VACOPD-PH04_Disk5
World Wide LUN Name:

6005-08b4-0006-94b6-0000-f000-036e-0000
UUID:


Attributes
Type: Original
Disk group: Disk_Group_1
Redundancy: Vraid5

Capacity
Allocated: 50 GB
***
!! MATCHED !!

** Create the physical volume **
myhost:/tmp:# pvcreate /dev/rdsk/c2t0d5
Physical volume "/dev/rdsk/c2t0d5" has been successfully created.

** Create the dir for new volume mount point **
myhost:/usr1:# mkdir /usr1/data7

myhost:/usr1:# vgdisplay vgdata1
--- Volume groups ---
VG Name /dev/vgdata1
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 7
Open LV 7
Max PV 16
Cur PV 4
Act PV 4
Max PE per PV 64000
VGDA 8
PE Size (Mbytes) 16
Total PE 17914
Alloc PE 11398
Free PE 6516
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

myhost:/usr1:# vgdisplay -v vgdata1
--- Volume groups ---
VG Name /dev/vgdata1
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 7
Open LV 7
Max PV 16
Cur PV 4
Act PV 4
Max PE per PV 64000
VGDA 8
PE Size (Mbytes) 16
Total PE 17914
Alloc PE 11398
Free PE 6516
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vgdata1/apl
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vgdata1/data1
LV Status available/syncd
LV Size (Mbytes) 40944
Current LE 2559
Allocated PE 2559
Used PV 1

LV Name /dev/vgdata1/data2
LV Status available/syncd
LV Size (Mbytes) 40944
Current LE 2559
Allocated PE 2559
Used PV 1

LV Name /dev/vgdata1/data3
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 1250
Used PV 2

LV Name /dev/vgdata1/data4
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vgdata1/data5
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vgdata1/data6
LV Status available/syncd
LV Size (Mbytes) 20480
Current LE 1280
Allocated PE 1280
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c10t0d1
PV Name /dev/dsk/c12t0d1 Alternate Link
PV Name /dev/dsk/c14t0d1 Alternate Link
PV Name /dev/dsk/c16t0d1 Alternate Link
PV Name /dev/dsk/c2t0d1 Alternate Link
PV Name /dev/dsk/c4t0d1 Alternate Link
PV Name /dev/dsk/c6t0d1 Alternate Link
PV Name /dev/dsk/c8t0d1 Alternate Link
PV Status available
Total PE 6398
Free PE 0
Autoswitch On

PV Name /dev/dsk/c10t0d2
PV Name /dev/dsk/c12t0d2 Alternate Link
PV Name /dev/dsk/c14t0d2 Alternate Link
PV Name /dev/dsk/c16t0d2 Alternate Link
PV Name /dev/dsk/c2t0d2 Alternate Link
PV Name /dev/dsk/c4t0d2 Alternate Link
PV Name /dev/dsk/c6t0d2 Alternate Link
PV Name /dev/dsk/c8t0d2 Alternate Link
PV Status available
Total PE 6398
Free PE 1398
Autoswitch On

PV Name /dev/dsk/c2t0d3
PV Name /dev/dsk/c4t0d3 Alternate Link
PV Name /dev/dsk/c6t0d3 Alternate Link
PV Name /dev/dsk/c8t0d3 Alternate Link
PV Name /dev/dsk/c10t0d3 Alternate Link
PV Name /dev/dsk/c12t0d3 Alternate Link
PV Name /dev/dsk/c14t0d3 Alternate Link
PV Name /dev/dsk/c16t0d3 Alternate Link
PV Status available
Total PE 2559
Free PE 2559
Autoswitch On

PV Name /dev/dsk/c2t0d4
PV Name /dev/dsk/c4t0d4 Alternate Link
PV Name /dev/dsk/c6t0d4 Alternate Link
PV Name /dev/dsk/c8t0d4 Alternate Link
PV Name /dev/dsk/c10t0d4 Alternate Link
PV Name /dev/dsk/c12t0d4 Alternate Link
PV Name /dev/dsk/c14t0d4 Alternate Link
PV Name /dev/dsk/c16t0d4 Alternate Link
PV Status available
Total PE 2559
Free PE 2559
Autoswitch On


** Add pv to vg **
myhost:/usr1:# vgextend /dev/vgdata1 /dev/dsk/c2t0d5
Current path "/dev/dsk/c12t0d1" is an alternate link, skip.
Current path "/dev/dsk/c12t0d2" is an alternate link, skip.
Current path "/dev/dsk/c14t0d1" is an alternate link, skip.
Current path "/dev/dsk/c14t0d2" is an alternate link, skip.
Current path "/dev/dsk/c16t0d1" is an alternate link, skip.
Current path "/dev/dsk/c16t0d2" is an alternate link, skip.
Current path "/dev/dsk/c2t0d1" is an alternate link, skip.
Current path "/dev/dsk/c2t0d2" is an alternate link, skip.
Current path "/dev/dsk/c4t0d1" is an alternate link, skip.
Current path "/dev/dsk/c4t0d2" is an alternate link, skip.
Current path "/dev/dsk/c6t0d1" is an alternate link, skip.
Current path "/dev/dsk/c6t0d2" is an alternate link, skip.
Current path "/dev/dsk/c8t0d1" is an alternate link, skip.
Current path "/dev/dsk/c8t0d2" is an alternate link, skip.
Current path "/dev/dsk/c4t0d3" is an alternate link, skip.
Current path "/dev/dsk/c4t0d4" is an alternate link, skip.
Current path "/dev/dsk/c6t0d3" is an alternate link, skip.
Current path "/dev/dsk/c6t0d4" is an alternate link, skip.
Current path "/dev/dsk/c8t0d3" is an alternate link, skip.
Current path "/dev/dsk/c8t0d4" is an alternate link, skip.
Current path "/dev/dsk/c10t0d3" is an alternate link, skip.
Current path "/dev/dsk/c10t0d4" is an alternate link, skip.
Current path "/dev/dsk/c12t0d3" is an alternate link, skip.
Current path "/dev/dsk/c12t0d4" is an alternate link, skip.
Current path "/dev/dsk/c14t0d3" is an alternate link, skip.
Current path "/dev/dsk/c14t0d4" is an alternate link, skip.
Current path "/dev/dsk/c16t0d3" is an alternate link, skip.
Current path "/dev/dsk/c16t0d4" is an alternate link, skip.
Volume group "/dev/vgdata1" has been successfully extended.
Volume Group configuration for /dev/vgdata1 has been saved in /etc/lvmconf/vgdata1.conf

myhost:/usr1:# vgdisplay -v vgdata1
--- Volume groups ---
VG Name /dev/vgdata1
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 7
Open LV 7
Max PV 16
Cur PV 5
Act PV 5
Max PE per PV 64000
VGDA 10
PE Size (Mbytes) 16
Total PE 21113
Alloc PE 11398
Free PE 9715
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vgdata1/apl
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vgdata1/data1
LV Status available/syncd
LV Size (Mbytes) 40944
Current LE 2559
Allocated PE 2559
Used PV 1

LV Name /dev/vgdata1/data2
LV Status available/syncd
LV Size (Mbytes) 40944
Current LE 2559
Allocated PE 2559
Used PV 1

LV Name /dev/vgdata1/data3
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 1250
Used PV 2

LV Name /dev/vgdata1/data4
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vgdata1/data5
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vgdata1/data6
LV Status available/syncd
LV Size (Mbytes) 20480
Current LE 1280
Allocated PE 1280
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c10t0d1
PV Name /dev/dsk/c12t0d1 Alternate Link
PV Name /dev/dsk/c14t0d1 Alternate Link
PV Name /dev/dsk/c16t0d1 Alternate Link
PV Name /dev/dsk/c2t0d1 Alternate Link
PV Name /dev/dsk/c4t0d1 Alternate Link
PV Name /dev/dsk/c6t0d1 Alternate Link
PV Name /dev/dsk/c8t0d1 Alternate Link
PV Status available
Total PE 6398
Free PE 0
Autoswitch On

PV Name /dev/dsk/c10t0d2
PV Name /dev/dsk/c12t0d2 Alternate Link
PV Name /dev/dsk/c14t0d2 Alternate Link
PV Name /dev/dsk/c16t0d2 Alternate Link
PV Name /dev/dsk/c2t0d2 Alternate Link
PV Name /dev/dsk/c4t0d2 Alternate Link
PV Name /dev/dsk/c6t0d2 Alternate Link
PV Name /dev/dsk/c8t0d2 Alternate Link
PV Status available
Total PE 6398
Free PE 1398
Autoswitch On

PV Name /dev/dsk/c2t0d3
PV Name /dev/dsk/c4t0d3 Alternate Link
PV Name /dev/dsk/c6t0d3 Alternate Link
PV Name /dev/dsk/c8t0d3 Alternate Link
PV Name /dev/dsk/c10t0d3 Alternate Link
PV Name /dev/dsk/c12t0d3 Alternate Link
PV Name /dev/dsk/c14t0d3 Alternate Link
PV Name /dev/dsk/c16t0d3 Alternate Link
PV Status available
Total PE 2559
Free PE 2559
Autoswitch On

PV Name /dev/dsk/c2t0d4
PV Name /dev/dsk/c4t0d4 Alternate Link
PV Name /dev/dsk/c6t0d4 Alternate Link
PV Name /dev/dsk/c8t0d4 Alternate Link
PV Name /dev/dsk/c10t0d4 Alternate Link
PV Name /dev/dsk/c12t0d4 Alternate Link
PV Name /dev/dsk/c14t0d4 Alternate Link
PV Name /dev/dsk/c16t0d4 Alternate Link
PV Status available
Total PE 2559
Free PE 2559
Autoswitch On

** New disk added, No alternate link present!
PV Name /dev/dsk/c2t0d5
PV Status available
Total PE 3199
Free PE 3199
Autoswitch On

** Add the rest of 7 alternate link to vg **
myhost:/usr1:# vgextend vgdata1 /dev/dsk/c4t0d5 /dev/dsk/c6t0d5 /dev/dsk/c8t0d5 /dev/dsk/c10t0d5 /dev/dsk/c12t0d5 /dev/dsk/c14t0d5 /dev/dsk/c16t0d5
Current path "/dev/dsk/c12t0d1" is an alternate link, skip.
Current path "/dev/dsk/c12t0d2" is an alternate link, skip.
Current path "/dev/dsk/c14t0d1" is an alternate link, skip.
Current path "/dev/dsk/c14t0d2" is an alternate link, skip.
Current path "/dev/dsk/c16t0d1" is an alternate link, skip.
Current path "/dev/dsk/c16t0d2" is an alternate link, skip.
Current path "/dev/dsk/c2t0d1" is an alternate link, skip.
Current path "/dev/dsk/c2t0d2" is an alternate link, skip.
Current path "/dev/dsk/c4t0d1" is an alternate link, skip.
Current path "/dev/dsk/c4t0d2" is an alternate link, skip.
Current path "/dev/dsk/c6t0d1" is an alternate link, skip.
Current path "/dev/dsk/c6t0d2" is an alternate link, skip.
Current path "/dev/dsk/c8t0d1" is an alternate link, skip.
Current path "/dev/dsk/c8t0d2" is an alternate link, skip.
Current path "/dev/dsk/c4t0d3" is an alternate link, skip.
Current path "/dev/dsk/c4t0d4" is an alternate link, skip.
Current path "/dev/dsk/c6t0d3" is an alternate link, skip.
Current path "/dev/dsk/c6t0d4" is an alternate link, skip.
Current path "/dev/dsk/c8t0d3" is an alternate link, skip.
Current path "/dev/dsk/c8t0d4" is an alternate link, skip.
Current path "/dev/dsk/c10t0d3" is an alternate link, skip.
Current path "/dev/dsk/c10t0d4" is an alternate link, skip.
Current path "/dev/dsk/c12t0d3" is an alternate link, skip.
Current path "/dev/dsk/c12t0d4" is an alternate link, skip.
Current path "/dev/dsk/c14t0d3" is an alternate link, skip.
Current path "/dev/dsk/c14t0d4" is an alternate link, skip.
Current path "/dev/dsk/c16t0d3" is an alternate link, skip.
Current path "/dev/dsk/c16t0d4" is an alternate link, skip.
Volume group "vgdata1" has been successfully extended.
Volume Group configuration for /dev/vgdata1 has been saved in /etc/lvmconf/vgdata1.conf

** Check allocation info after existing lv, no contiguous is used **
myhost:/usr1:# lvdisplay /dev/vgdata1/data4
--- Logical volumes ---
LV Name /dev/vgdata1/data4
VG Name /dev/vgdata1
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 1250
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

** Create new lv for data7 **
myhost:/usr1:# lvcreate -L 50000 -n data7 /dev/vgdata1
Logical volume "/dev/vgdata1/data7" has been successfully created with
character device "/dev/vgdata1/rdata7".
Logical volume "/dev/vgdata1/data7" has been successfully extended.
Volume Group configuration for /dev/vgdata1 has been saved in /etc/lvmconf/vgdata1.conf

** Check existing mountpoint options before newfs **
myhost:/usr1:# cat /etc/fstab
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol4 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand vxfs tranflush 0 1
/dev/vg00/lvol5 /tmp vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vgdata1/apl /usr1/apl vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data1 /usr1/data1 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data2 /usr1/data2 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data3 /usr1/data3 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data4 /usr1/data4 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data5 /usr1/data5 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data6 /usr1/data6 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2


myhost:/usr1:# ls -la /dev/vgdata1
total 32
drwxr-xr-x 2 root sys 8192 Jun 12 06:09 .
dr-xr-xr-x 15 bin bin 8192 Jun 12 05:24 ..
brw-r----- 1 root sys 64 0x010001 Mar 6 16:44 apl
brw-r----- 1 root sys 64 0x010002 Apr 10 10:16 data1
brw-r----- 1 root sys 64 0x010003 Apr 10 10:16 data2
brw-r----- 1 root sys 64 0x010004 May 9 14:58 data3
brw-r----- 1 root sys 64 0x010005 May 9 14:58 data4
brw-r----- 1 root sys 64 0x010006 May 16 10:56 data5
brw-r----- 1 root sys 64 0x010007 May 16 15:26 data6
brw-r----- 1 root sys 64 0x010008 Jun 12 06:09 data7
crw-r--r-- 1 root sys 64 0x010000 Mar 6 16:43 group
crw-r----- 1 root sys 64 0x010001 Mar 6 16:44 rapl
crw-r----- 1 root sys 64 0x010002 Apr 10 10:16 rdata1
crw-r----- 1 root sys 64 0x010003 Apr 10 10:16 rdata2
crw-r----- 1 root sys 64 0x010004 May 9 14:58 rdata3
crw-r----- 1 root sys 64 0x010005 May 9 14:58 rdata4
crw-r----- 1 root sys 64 0x010006 May 16 10:56 rdata5
crw-r----- 1 root sys 64 0x010007 May 16 15:26 rdata6
crw-r----- 1 root sys 64 0x010008 Jun 12 06:09 rdata7

** Create new fs **
myhost:/usr1:# newfs -o largefiles /dev/vgdata1/rdata7
newfs: /etc/default/fs is used for determining the file system type
version 6 layout
51200000 sectors, 51200000 blocks of size 1024, log size 16384 blocks
largefiles supported

** Mount the new fs **
myhost:/usr1:# mount -o largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct /dev/vgdata1/data7 /usr1/data7
myhost:/usr1:# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 622592 307464 312712 50% /
/dev/vg00/lvol1 327680 132872 193392 41% /stand
/dev/vg00/lvol8 4718592 1966512 2730744 42% /var
/dev/vg00/lvol7 6356992 2606504 3721232 41% /usr
/dev/vg00/lvol5 1048576 131936 909544 13% /tmp
/dev/vg00/lvol6 6291456 3557288 2712872 57% /opt
/dev/vgdata1/apl 20480000 11562716 8359954 58% /usr1/apl
/dev/vgdata1/data2 41926656 19937462 20614956 49% /usr1/data2
/dev/vgdata1/data1 41926656 26805222 14176467 65% /usr1/data1
/dev/vgdata1/data4 20480000 6165246 13420142 31% /usr1/data4
/dev/vgdata1/data3 20480000 1846268 17469185 10% /usr1/data3
/dev/vgdata1/data5 20480000 2296960 17046658 12% /usr1/data5
/dev/vgdata1/data6 20971520 17294332 3447429 83% /usr1/data6
/dev/vgdata1/data7 51200000 29634 47972226 0% /usr1/data7

** Add the new lv add fstab **
myhost:/usr1:# vi /etc/fstab
"/etc/fstab" 15 lines, 1231 characters
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol4 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand vxfs tranflush 0 1
/dev/vg00/lvol5 /tmp vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vgdata1/apl /usr1/apl vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data1 /usr1/data1 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data2 /usr1/data2 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data3 /usr1/data3 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data4 /usr1/data4 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data5 /usr1/data5 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data6 /usr1/data6 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
/dev/vgdata1/data7 /usr1/data7 vxfs largefiles,ioerror=mwdisable,mincache=direct,delaylog,nodatainlog,convosync=direct 0 2
~
~
~

"/etc/fstab" 16 lines, 1354 characters
myhost:/usr1:#

* Mission Completed **

Monday, June 9, 2008

Passed Solaris 10 Admin II - 9 Jun 2008

Today i pass Solaris 10 System Administration Part II, CX310-202. The score is 90/100. Not very good. But i am satified.
Next target is Solaris 10 Network Administration, CX310-302. It is tough!

Friday, May 23, 2008

Linux RPMDB

Rebuild rpmdb
---------------

Note: Backup /var/lib/rpm before any activity!

Method # 1

Remove /var/lib/rpm/__db* files to avoid stale locks:
# cd /var/lib
# rm __db*

Rebuild RPM database:
# rpm --rebuilddb
# rpmdb_verify Packages

------------------------------------------------------
Method # 2

If you are still getting errors, then try your luck with following commands:

# mv Packages Packages-BAKUP
# db_dump Packages-BAKUP | db_load Packages
# rpm -qa
# rpm --rebuilddb

Tuesday, May 20, 2008

SVM @ Solaris 9

Reference sites;
Creating Volumes
Finding/setting nvalias (nvram) OBP settings from a running Solaris O/S

SVM Setup at Solaris 9
------------------------
Situation:
- No any SVM state db exist
- Total new SVM
- Solaris 9
- State db created at c1t0d0s7, size ~94MB

Tasks:
- create state db
- Mirror / and /var

----------------------------------------------------
Primary Disk: c1t0d0 /pci@1f,700000/scsi@2/sd@0,0
Secondary Disk: c1t1d0 /pci@1f,700000/scsi@2/sd@1,0
----------------------------------------------------

c1t0d0 Partition Table;
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 12074 58.59GB (12075/0/0) 122875200
1 swap wu 12075 - 13261 5.76GB (1187/0/0) 12078912
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 var wm 13262 - 14067 3.91GB (806/0/0) 8201856
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 14068 - 14086 94.41MB (19/0/0) 193344


# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 58G 6.4G 51G 12% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
/dev/dsk/c1t0d0s3 3.9G 1.2G 2.7G 31% /var
swap 17G 168K 17G 1% /var/run
swap 17G 120K 17G 1% /tmp
esqcqanfs1:/nfs 100G 33G 62G 35% /u01/nsncif/data

2nd Disk to mirror;
1. c1t1d0
/pci@1f,700000/scsi@2/sd@1,0

root@esqcqaa02# fmthard -s /dev/null /dev/rdsk/c1t1d0s2
fmthard: New volume table of contents now in place.

c1t1d0 Partiton Table;
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 12074 58.59GB (12075/0/0) 122875200
1 swap wu 12881 - 14068 5.76GB (1188/0/0) 12089088
2 backup wu 0 - 14086 68.35GB (14087/0/0) 143349312
3 var wm 12075 - 12880 3.91GB (806/0/0) 8201856
4 unassigned wu 0 0 (0/0/0) 0
5 unassigned wu 0 0 (0/0/0) 0
6 unassigned wu 0 0 (0/0/0) 0
7 unassigned wm 14069 - 14086 89.44MB (18/0/0) 183168


##########################
Create state replica
##########################
root@esqcqaa02# metadb -a -f -c 3 c1t0d0s7 c1t1d0s7
you have mail
root@esqcqaa02# metadb -i
flags first blk block count
a u 16 8192 /dev/dsk/c1t0d0s7
a u 8208 8192 /dev/dsk/c1t0d0s7
a u 16400 8192 /dev/dsk/c1t0d0s7
a u 16 8192 /dev/dsk/c1t1d0s7
a u 8208 8192 /dev/dsk/c1t1d0s7
a u 16400 8192 /dev/dsk/c1t1d0s7
r - replica does not have device relocation information
o - replica active prior to last mddb configuration change
u - replica is up to date
l - locator for this replica was read successfully
c - replica's location was in /etc/lvm/mddb.cf
p - replica's location was patched in kernel
m - replica is master, this is replica selected as input
W - replica has device write errors
a - replica is active, commits are occurring to this replica
M - replica had problem with master blocks
D - replica had problem with data blocks
F - replica had format problems
S - replica is too small to hold current data base
R - replica had device read errors
#

--------

Metadevices: ** Plan **
/: d0
-> d10
-> d11
swap: d1
-> d20
-> d21
/var: d3
-> d30
-> d31

##############################
Mirror /var
##############################
Metadevice for /var;
# metainit -f d31 1 1 c1t0d0s3
d31: Concat/Stripe is setup
# metainit d30 1 1 c1t1d0s3
d30: Concat/Stripe is setup
# metainit d3 -m d31
d3: Mirror is setup
> ## Edit /etc/vfstab, Remove the line with /var and add the line below;
/dev/md/dsk/d3 /dev/md/rdsk/d3 /var ufs 1 no -

# Reboot
# metaattach d3 d30

##############################
Mirror Swap
##############################
# metainit -f d20 1 1 c1t0d0s1
d20: Concat/Stripe is setup
# metainit d21 1 1 c1t1d0s1
d21: Concat/Stripe is setup
# metainit d1 -m d20
d1: Mirror is setup
### Edit /etc/vfstab as below;
# grep swap /etc/vfstab
/dev/md/dsk/d1 - - swap - no -
swap - /tmp tmpfs - yes -
#

# Reboot
# metaattach d1 d21

>> To check, run metastat


##############################
Mirror Root FS
##############################
# metainit -f d10 1 1 c1t0d0s0
d10: Concat/Stripe is setup
# metainit d11 1 1 c1t1d0s0
d11: Concat/Stripe is setup
# metainit d0 -m d10
d0: Mirror is setup
# metaroot d0
# lockfs -fa
# cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/md/dsk/d3 /dev/md/rdsk/d3 /var ufs 1 no -
esqcqanfs1:/nfs - /u01/nsncif/data nfs - yes -
swap - /tmp tmpfs - yes -
#

# REBOOT
metaattach d0 d11



Done!
# eeprom boot-device
boot-device=disk disk1

Use "prtconf -vp" to check default disk alias.
If boot-device is not set to backup mirror disk, proceed with follwing steps.
# eeprom use-nvramrc?=true
> We need to do is to set the “use-nvramrc = true” OBP variable so our modifications will be used when system is reboot.
> you can set dev alias if it is not set as below;
# eeprom nvramrc=”devalias rootdisk /pci@780/pci@0/pci@9/scsi@0/disk@0,0 devalias rootmirror /pci@780/pci@0/pci@9/scsi@0/disk@1,0″

> Then set boot-device as below;
# eeprom boot-device=”rootdisk rootmirror”
# reboot

Monday, May 19, 2008

Today - 19 May 2008

2 days had passed. What am i doing? Ans: DUNO!
Waste. only read 2 chapters. =(

Sunday, May 18, 2008

CX310-202: Solaris 10 Sys Admin II

Drag for 2 mons for this exam.. due to do a lot of exercise. Now, i must start to prepare for this exam.

Start with; -
Chapter 8 - Introducing SVM Software Concepts. - Done
Chapter 9 - Configuring SVM Software. - Done
Chapter 6 - Configuring NFS - OTW

Wednesday, May 14, 2008

Solaris Container - Zones

Reference: SystemAdministration Guide: Solaris Containers-Resource Management and Solaris Zones

root@myhost1 # zonecfg -z myhost1-v03
myhost1-v03: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:myhost1-v03> create
zonecfg:myhost1-v03> set zonepath=/export/home/zones/myhost1-v03
zonecfg:myhost1-v03> set autoboot=true
zonecfg:myhost1-v03> add inherit-pkg-dir
zonecfg:myhost1-v03:inherit-pkg-dir> set dir=/opt/zoneshare
zonecfg:myhost1-v03:inherit-pkg-dir> end
zonecfg:myhost1-v03> add net
zonecfg:myhost1-v03:net> set address=10.160.242.40
zonecfg:myhost1-v03:net> set physical=e1000g0
zonecfg:myhost1-v03:net> end
zonecfg:myhost1-v03> add net
zonecfg:myhost1-v03:net> set address=10.188.131.44
zonecfg:myhost1-v03:net> set physical=e1000g2
zonecfg:myhost1-v03:net> end
zonecfg:myhost1-v03> add net
zonecfg:myhost1-v03:net> set address=10.190.131.40
zonecfg:myhost1-v03:net> set physical=e1000g3
zonecfg:myhost1-v03:net> end
zonecfg:myhost1-v03> add attr
zonecfg:myhost1-v03:attr> set name=comment
zonecfg:myhost1-v03:attr> set type=string
zonecfg:myhost1-v03:attr> set value="MY Web Server"
zonecfg:myhost1-v03:attr> end
zonecfg:myhost1-v03> set pool=cwp3-pool
zonecfg:myhost1-v03> add fs
zonecfg:myhost1-v03:fs> set dir=/opt/global
zonecfg:myhost1-v03:fs> set special=/opt/child
zonecfg:myhost1-v03:fs> set type=lofs
zonecfg:myhost1-v03:fs> set options=[rw,nodevices]
zonecfg:myhost1-v03:fs> end
zonecfg:myhost1-v03> verify
zonecfg:myhost1-v03> commit
zonecfg:myhost1-v03> exit
root@myhost1 # zoneadm -z myhost1-v03 verify
WARNING: /export/home/zones/myhost1-v03 does not exist, so it could not be verified.
When 'zoneadm install' is run, 'install' will try to create
/export/home/zones/myhost1-v03, and 'verify' will be tried again,
but the 'verify' may fail if:
the parent directory of /export/home/zones/myhost1-v03 is group- or other-writable
or
/export/home/zones/myhost1-v03 overlaps with any other installed zones.
root@myhost1 # zoneadm -z myhost1-v03 install
Preparing to install zone .
Creating list of files to copy from the global zone.
Copying <2664> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1067> packages on the zone.
Initializing package <3> of <1067>: percent complete: 0%
Initializing package <7> of <1067>: percent complete: 0%
Initializing package <11> of <1067>: percent complete: 0%
Initializing package <15> of <1067>: percent complete: 1%
Initializing package <18> of <1067>: percent complete: 1%
Initializing package <22> of <1067>: percent complete: 2%
Initializing package <26> of <1067>: percent complete: 2%
Initializing package <30> of <1067>: percent complete: 2%
..
..
Initializing package <1051> of <1067>: percent complete: 98%
Initializing package <1055> of <1067>: percent complete: 98%
Initializing package <1059> of <1067>: percent complete: 99%
Initializing package <1062> of <1067>: percent complete: 99%
Initializing package <1066> of <1067>: percent complete: 99%
Initialized <1067> packages on zone.
Zone is initialized.
Installation of <7> packages was skipped.
Installation of these packages generated warnings:
The file contains a log of the zone installation.
root@myhost1 # zoneadm -z myhost1-v03 verify
root@myhost1 # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
1 myhost1-v01 running /export/home/zones/vacwpq02-v01
3 myhost1-v02 running /export/home/zones/myhost1-v02
- myhost1-v03 installed /export/home/zones/myhost1-v03
root@myhost1 # zoneadm -z myhost1-v03 boot
root@myhost1 # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
1 myhost1-v01 running /export/home/zones/vacwpq02-v01
3 myhost1-v02 running /export/home/zones/myhost1-v02
4 myhost1-v03 running /export/home/zones/myhost1-v03
root@myhost1 # zlogin -C myhost1-v03
## Configure the new zone setting

From global zone, run
zlogin myhost1-v3

Wednesday, May 7, 2008

Solaris SVM - SAN DISKs

Create new disk from SAN.

Edit the entry in /etc/lvm/md.tab
e.g.
myhostDS/d100 1 1 /dev/rdsk/c4t600508B40010887F0000B00000640000d0s0

Edit the metaset script in /etc/init.d. Name might be different.

If you can see fibre channels connected with cfgadm -al but there is no
disk in format output you may need to run following commands:

# devlinks
# disks

Just plain command, no switches or options. These build /dev links
again and disks-command makes new disks available for system.

run > cfgadm -al
then, use format to check SAN disk id.

root@myhost1 # metaset -s myDS -a -h myhost1
root@myhost1 # metaset -s myDS -a /dev/rdsk/c4t600508B40010887F0000B00005FB0000d0
root@myhost1 # ls /dev/md/myDS*
/dev/md/myDS
root@myhost1 # EDIT /etc/lvm/md.tab
# Add the line below;
myDS/d100 1 1 /dev/rdsk/c4t600508B40010887F0000B00002D20000d0s0

root@myhost1 # ADD the myDS in /etc/init.d/cp.metasets
root@myhost1 # metaset

Set name = myhost01DS, Set number = 1

Host Owner
myhost1 Yes

Drive Dbase

/dev/dsk/c4t600508B40010887F0000B00000640000d0 Yes

Set name = myhost02DS, Set number = 2

Host Owner
myhost1

Drive Dbase

/dev/dsk/c4t600508B40010887F0000B00002D20000d0 Yes

Set name = myDS, Set number = 3

Host Owner
myhost1 Yes

Drive Dbase

/dev/dsk/c4t600508B40010887F0000B00005FB0000d0 Yes
root@myhost1 # metainit -s myDS -a
myDS/d100: Concat/Stripe is setup
root@myhost1 # newfs /dev/md/myDS/rdsk/d100
newfs: construct a new file system /dev/md/myDS/rdsk/d100: (y/n)? y
Warning: 4096 sector(s) in last cylinder unallocated
/dev/md/myDS/rdsk/d100: 20922368 sectors in 3406 cylinders of 48 tracks, 128 sectors
10216.0MB in 213 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
19957152, 20055584, 20154016, 20252448, 20350880, 20449312, 20547744,
20646176, 20744608, 20843040
root@myhost1 # fsck /dev/md/myDS/rdsk/d100
** /dev/md/myDS/rdsk/d100
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups
2 files, 9 used, 10302683 free (11 frags, 1287834 blocks, 0.0% fragmentation)
root@myhost1 # mount /dev/md/myDS/dsk/d100 /opt/global
root@myhost1 # df -h
Filesystem size used avail capacity Mounted on
..
/dev/md/dsk/d4 3.9G 4.0M 3.9G 1% /opt/zoneshare
/dev/md/dsk/d5 29G 898M 28G 4% /export/home
/dev/md/cwppv01DS/dsk/d100
9.8G 658M 9.1G 7% /opt/cwppv01
/dev/md/myDS/dsk/d100
9.8G 10.0M 9.7G 1% /opt/cwppv03

Saturday, May 3, 2008

Linux LVM 1 & 2

Coming up ... ... Linux LVM 1 & 2

To check the LVM version installed on Linux. run the following command;
[kschua@centera ~]$ rpm -qa | grep lvm
lvm2-2.02.26-3.el5
system-config-lvm-1.0.22-1.0.el5
[kschua@centera ~]$

From the example above, my system is using LVM 2.

How to change keyboard layout in Linux

Linux:
X:
edit /etc/X11/xorg.conf
line : "XkbLayout" "us"

console:
edit /etc/sysconfig/keyboard
KEYTABLE="us"

on spot change keyboard layout.
> loadkeys us