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.
Wednesday, June 25, 2008
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
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
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 #
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 **
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!
Next target is Solaris 10 Network Administration, CX310-302. It is tough!
Subscribe to:
Posts (Atom)