HP-UX11v3 ioscan,DSF Mass Storage devices,HW,VG,LV,FS

** Web & Myself
Formats of DSFs and Hardware Paths for Mass Storage Devices
Legacy View
The legacy DSF format for disks is:
/dev/[r]dsk/cxtydz[sn]
Where x is the HBA instance
          y is the SCSI-2 target number
          z is the SCSI-2 LUN number
          n is the partition number
Example: /dev/dsk/c5t0d1 or /dev/rdsk/c6t0d1s2
Agile View
The persistent DSF format for disks introduced with the agile view in HP-UX 11i v3 is:
/dev/[r]disk/diskx[_py]
Where x is the device instance
          y is the partition number
Example: /dev/disk/disk2, /dev/rdisk/disk5_p2
Agile and Legacy Views in Ioscan
By default in HP-UX 11i v3 ioscan shows the legacy view. This view is compatible with previous releases of HP-UX. To enable the agile view in output of the ioscan command you must use the new ¿N option.
Mapping Commands
In HP-UX 11i v3, the ioscan command offers two new options to map configuration information from the legacy view to agile view:
-m dsf [dsf_name] To map legacy DSFs to persistent DSFs
-m hwpath [-H hw_path] To map legacy hardware paths to lunpath hardware paths and LUN hardware paths
Legacy DSF to Persistent DSF mapping:
The "ioscan -m dsf [dsf_name]" command shows the mapping between character legacy DSFs and character persistent DSFs if no dsf_name is specified. As a rule, the block DSFs are mapped similarly. If a dsf_name is specified, it shows the mapping for this DSF name only.
Sample "ioscan -m dsf" output:
Persistent DSF                    Legacy DSF(s)
========================================
/dev/rdisk/disk17                  /dev/rdsk/c9t0d0
/dev/rdisk/disk24                  /dev/rdsk/c4t0d0
/dev/rdisk/disk37                  /dev/rdsk/c5t0d0
/dev/rdsk/c8t0d0
/dev/rdisk/disk38                  /dev/rdsk/c5t1d0
/dev/rdsk/c8t1d0
In the example above the persistent DSF /dev/rdisk/disk17 maps to the legacy DSF /dev/rdsk/c9t0d0. The persistent DSF /dev/rdisk/disk37 maps to the legacy DSFs /dev/rdsk/c5t0d0 and /dev/rdsk/c8t0d0. This also implies that block persistent DSF /dev/disk/disk17 (not shown) maps to block legacy DSF /dev/dsk/c9t0d0.
Legacy Hardware Path to Lunpath Hardware Path mapping:
The "ioscan -m hwpath [-H hw_path]" command shows the mapping between legacy hardware paths, lunpath hardware paths, and LUN hardware paths. If a hw_path is specified with option -H, it shows the mapping for that hw_path only.
Sample "ioscan -m hwpath" output:
Lun H/W Path                             Lunpath H/W Path                          Legacy H/W Path
====================================================================
64000/0xfa00/0x10                        0/2/1/0.0x0.0x0                              0/2/1/0.0.0
64000/0xfa00/0x8                          0/5/1/1.0x0.0x0                              0/5/1/1.0.0
64000/0xfa00/0x1a                        0/2/1/1.0x0.0x0                              0/2/1/1.0.0
                                                  0/5/1/0.0x0.0x0                              0/5/1/0.0.0
64000/0xfa00/0x1b                        0/2/1/1.0x1.0x0                              0/2/1/1.1.0
                                                  0/5/1/0.0x1.0x0                              0/5/1/0.1.0  
The Legacy H/W path is the hardware path for the legacy DSF. The Lun H/W path is the virtualized hardware path representing the LUN. The Lunpath H/W Path is the physical hardware path to the LUN. The LUN under Lun H/W Path 64000/0xfa00/0x1a shows that it has two lunpaths leading to it. Note that the last two elements of a LUN H/W path and a Lunpath H/W path use the hexadecimal notation instead of the decimal notation.
 
Scan disk storage disk
ioscan –fnNC disk

Change disk id from 21 to 31 and remove special file disk21
vi /tmp/infile
64000/0xfa00/0xe disk 31
 
ioinit -f /tmp/infile
rmsf /dev/disk/disk21
rmsf /dev/rdisk/disk21
 
Create vg,lv,file
pvcreate /dev/rdisk/disk31
mkdir /dev/vgoraarch
mknod /dev/vgoraarch/group c 64 0x020000
vgcreate -s 32 /dev/vgoraarch /dev/disk/disk31
lvcreate -L 102368 -n lvoraarch /dev/vgoraarch
mkfs -F vxfs -o largefiles /dev/vgoraarch/lvoraarch
mkdir -p /oracle/ORCL/archive1
 
vi /etc/fstab #Edit fstab
/dev/vgoraarch/lvoraarch/oracle/ORCL/archive1 vxfs delaylog 0 2
mount –a

1 comments:

cloneab said...

thank you!

Finally found a spot that tells me that LVM commmands like vgextend work with this agile format.
Before I could find: "log into facebook to set up an account", and Adobe acrobat crashes trying to read a pdf from hp's. And HP telling me their website has changed, but they do not redirect me.
...harumph...it only took 2 hours.

Loading