The Solaris iSCSI Target Implementation: Concepts
14 Dec ’06 – 16:18 by benr
Solaris and iSCSI are two technologies that share something in common: they are amazing technologies that have had to slug their way into the data center. Solaris puts insane amounts of power at your fingertips and iSCSI puts insane amounts of flexibility into your architecture. And so, I think its time that we start looking closely at the Solaris iSCSI Target and what it can do for you. We’ll start at the beginning and work our way forward.
The purpose of iSCSI is simple: make a block storage device, such as a disk or a volume, accessible over a conventional IP network. When iSCSI was introduced it looked neat and nifty but since 1Gbps Ethernet has become the standard baseline for network throughput across the board and 10Gbps Ethernet is a reality, iSCSI has been elevated from “interesting” to “koooooooool”. The immediate advantage of iSCSI is clear: no-cost/low-cost storage networking. However, once you get past the cost aspects you realize that the true advantage of iSCSI is the flexibility it provides as a product of the cost, systems that you would never have imagined putting a Fibre Channel HBA in are now prime candidates for iSCSI. When combined with Ethernet technologies like aggregation (“trunking”, “teaming”, etc) and JumboFrames, or storage technologies like thin provisioning or ZFS we create some unique and compelling options that were either impossible on Fibre Channel or just far too costly to be attainable by the masses. Read more…
bash-3.00# fmthard -s /root/vtoc /dev/rdsk/c1t0d0s2
fmthard: New volume table of contents now in place.
bash-3.00# rsc> break
rsc> console
rsc>
rsc> break
rsc> console
{2} ok boot cdrom – install
Boot device: /pci@8,700000/ide@6/cdrom@0,0:f File and args: – install
SunOS Release 5.10 Version Generic_120011-14 64-bit
Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface ce1…
Skipped interface ce1
Attempting to configure interface ce0…
Skipped interface ce0
Setting up Java. Please wait…
Extracting windowing system. Please wait…
Beginning system identification…
Searching for configuration file(s)…
Search complete.
Discovering additional network configuration…
Read more…
Solaris 10::WANboot=>
Setting up a WANboot server
This is version 2.0 of Setting up a WANboot server which was last modified on 22:07:53 16-08-2007. Since 12:11:51 02-11-2005, when it was written by petervg, it is read 1050 times with the last read on 21:18:18 05-10-2007.
Tags :
A Simple Way to Wipe Multiple Disks Using the Solaris OS
Eric Straavaldsen, April 2007
Introduction
Read more…
# cd
mount -F pcfs /dev/dsk/c2t0d0s2:c /rmdisk/noname
# rmformat
Looking for devices…
1. Volmgt Node: /vol/dev/aliases/cdrom0
Logical Node: /dev/rdsk/c1t0d0s2
Physical Node: /pci@7c0/pci@0/pci@1/pci@0/ide@8/sd@0,0
Connected Device: MATSHITA CD-RW CW-8124 DZ13
Device Type: DVD Reader
2. Volmgt Node: /vol/dev/aliases/rmdisk0
Logical Node: /dev/rdsk/c2t0d0s2
Physical Node: /pci@7c0/pci@0/pci@1/pci@0/usb@6/hub@1/storage@1/disk@0,0
Connected Device: KINGMAX USB2.0 Flashdisk 2.00
Device Type: Removable
#
# rmformat
Looking for devices…
1. Volmgt Node: /vol/dev/aliases/cdrom0
Logical Node: /dev/rdsk/c1t0d0s2
Physical Node: /pci@7c0/pci@0/pci@1/pci@0/ide@8/sd@0,0
Connected Device: MATSHITA CD-RW CW-8124 DZ13
Device Type: DVD Reader
2. Volmgt Node: /vol/dev/aliases/rmdisk0
Logical Node: /dev/rdsk/c2t0d0s2
Physical Node: /pci@7c0/pci@0/pci@1/pci@0/usb@6/hub@1/storage@1/disk@0,0
Connected Device: KINGMAX USB2.0 Flashdisk 2.00
Device Type: Removable
# umount /rmdisk/noname/
# rmmount /dev/dsk/c2t0d0s2 /rmdisk/noname/
# cd /rmdisk/noname/
# sc>
sc> console -f
Enter #. to return to ALOM.
y
y: not found
#
#
# bash
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 20655025 4612555 15835920 23% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 15060576 1216 15059360 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
20655025 4612555 15835920 23% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
20655025 4612555 15835920 23% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
swap 15314840 255480 15059360 2% /tmp
swap 15059432 72 15059360 1% /var/run
/dev/dsk/c0t0d0s7 31333125 6780341 24239453 22% /export/home
mypool 70189056 24 47764727 1% /mypool
mypool/zones 70189056 29 47764727 1% /zones
mypool/zones/titan1 70189056 1448136 56539959 3% /zones/titan1
mypool/zones/william1
70189056 1365715 56610394 3% /zones/william1
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s6
31 2 26 8% /cdrom/sol_10_1106_sparc/s6
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s5
31 2 26 8% /cdrom/sol_10_1106_sparc/s5
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s4
31 2 26 8% /cdrom/sol_10_1106_sparc/s4
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s3
31 2 26 8% /cdrom/sol_10_1106_sparc/s3
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s2
31 2 26 8% /cdrom/sol_10_1106_sparc/s2
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s1
162303 146427 0 100% /cdrom/sol_10_1106_sparc/s1
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s0
3929110 3929110 0 100% /cdrom/sol_10_1106_sparc/s0
mypool/zones/tomorrow1p_old
70189056 777574 47764727 2% /zones/tomorrow1p_old
mypool/zones/tomorrow1p
70189056 539870 47764727 2% /zones/tomorrow1p
/vol/dev/dsk/c2t0d0/noname:c
2014912 32 2014880 1% /rmdisk/noname
# cd /rmdisk/noname/
# ls -la
total 34
drwxrwxrwx 1 root root 16384 Dec 31 1969 .
drwxr-xr-x 3 root nobody 512 Jul 23 09:37 ..
# df -k .
Filesystem kbytes used avail capacity Mounted on
/vol/dev/dsk/c2t0d0/noname:c
2014912 32 2014880 1% /rmdisk/noname
# touch test
touchJul 23 10:18:35 nrhweb01 scsi: Device is gone
: test cannot create
Jul 23 10:18:35 nrhweb01 usba: WARNING: /pci@7c0/pci@0/pci@1/pci@0/usb@6/hub@1/storage@1 (scsa2usb0): Disconnected device was busy, please reconnect.
# Jul 23 10:18:35 nrhweb01 usba: WARNING: /pci@7c0/pci@0/pci@1/pci@0/usb@6/hub@1/storage@1 (scsa2usb0): Reinserted device is accessible again.
# cd /
# /etc/init.d/volmgt
volmgt volmgt.118833-36
# /etc/init.d/volmgt stop
# /etc/init.d/volmgt start
volume management starting.
#
#
#
# pwd
/
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 20655025 4612380 15836095 23% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 15060632 1216 15059416 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
20655025 4612380 15836095 23% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
20655025 4612380 15836095 23% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
swap 15314896 255480 15059416 2% /tmp
swap 15059488 72 15059416 1% /var/run
/dev/dsk/c0t0d0s7 31333125 6780341 24239453 22% /export/home
mypool 70189056 24 47764727 1% /mypool
mypool/zones 70189056 29 47764727 1% /zones
mypool/zones/titan1 70189056 1448136 56539959 3% /zones/titan1
mypool/zones/william1
70189056 1365715 56610394 3% /zones/william1
mypool/zones/tomorrow1p_old
70189056 777574 47764727 2% /zones/tomorrow1p_old
mypool/zones/tomorrow1p
70189056 539870 47764727 2% /zones/tomorrow1p
# svcs -a | grep vol
online 10:19:07 svc:/system/filesystem/volfs:default
# svcadm restart svc:/system/filesystem/volfs:default
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 20655025 4612436 15836039 23% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 15057496 1224 15056272 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
20655025 4612436 15836039 23% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
20655025 4612436 15836039 23% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
swap 15311752 255480 15056272 2% /tmp
swap 15056344 72 15056272 1% /var/run
/dev/dsk/c0t0d0s7 31333125 6780341 24239453 22% /export/home
mypool 70189056 24 47764725 1% /mypool
mypool/zones 70189056 29 47764725 1% /zones
mypool/zones/titan1 70189056 1448136 56539957 3% /zones/titan1
mypool/zones/william1
70189056 1365715 56610392 3% /zones/william1
mypool/zones/tomorrow1p_old
70189056 777574 47764725 2% /zones/tomorrow1p_old
mypool/zones/tomorrow1p
70189056 539870 47764725 2% /zones/tomorrow1p
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s0
20655025 4612436 15836039 23% /cdrom/sol_10_1106_sparc/s0
#
#
#
# format
Searching for disks…done
Read more…
Document ID: 2086
SYNOPSIS: Ten common SSA/VOLUME Manager Questions
DETAIL DESCRIPTION:
1. Disaster destroys VM configuration
2. Encapsulating a disk fails
Read more…
It looks like the file /etc/vx/volboot may not be present on the system.
Please verify with:
#ls -la /etc/vx/volboot
If it is not there, run:
#vxdctl init
The above command should initialize the ‘volboot’ file and then you should be able to continue with:
Read more…
Veritas Volume Manager (vxvm)
rescan bus for volume manager devices after device reconfiguration
vxdctl enable
——————————————————————————–
Information
vxprint -Aht
vxdisk list
show multipathing info
vxdisk list <specific_disk>
vxdg list
never really need to use
vxdmpadm
Read more…
hastatus -sum — gives you the status of the cluster
haconf -makero — makes the cluster configuration writable
hagrp -switch — switch a service group to another machine
ot@ivan1]# cd /opt/VRTS/bin/
[root@ivan1]# ./hastatus -sum
– SYSTEM STATE
– System State Frozen
A ivan1 RUNNING 0
A ivan2 RUNNING 0
Read more…
[09:49:32] root: /export/home/appl > prtconf -vp | grep wwn
port-wwn: 210000e0.8b8613ae
node-wwn: 200000e0.8b8613ae
port-wwn: 210000e0.8b8f4d67
node-wwn: 200000e0.8b8f4d67
[09:49:34] root: /export/home/appl > prtpicl -v -c scsi-fcp | grep wwn
:node-wwn 20 00 00 e0 8b 86 13 ae
:port-wwn 21 00 00 e0 8b 86 13 ae
:node-wwn 20 00 00 e0 8b 8f 4d 67
:port-wwn 21 00 00 e0 8b 8f 4d 67
[09:50:01] root: /export/home/appl >