How to configure EMC storage on HPUX

Source: Internet
Author: User
Tags hp ux
1. Install EMC host base agentmount-F CDFs-O cdcase on the client
/Dev/DSK/c0t0d0/CDROM (only such a mount can read the correct EMC disc) swinstall-S/CDROM 2. Create a raid group (group 3) on the EMC Manager server) 3. Create Lun (Lun 8) on the raid group 4. Create a new storage group (js-wap01) 5. On the storage group (js-wap01) add js-wap01 to hosts (right-click js-wap01 --> Properties) 6, add Lun 8 to luns7 in storage group (js-wap01), you can see the js-wap01 in hosts (top tab, open Luns, and you will see that the hardware number is c8t0d0 8, failover on EMC, And the menu is tools --> failover Setup Wizard parameter is configuration Summary
==================================
HOST: js_wap01
Initiator type: HP auto trespass

Failover mode: 0
Array comatrix: True
Storage System (s ):
Ck200041400381 such as: 9, use ioscan-FNC disk # ioscan-FNC disk in js-wap01
Class I h/W path driver S/W State H/W type description
========================================================== ==========================================
Disk 0 0/0/2/0.0.0.0 sdisk claimed device teac DV-28E-C
/Dev/DSK/c0t0d0/dev/rdsk/c0t0d0
Disk 1 0/1/1/0.0.0 sdisk claimed device HP 36.4gmas3367nc
/Dev/DSK/c2t0d0/dev/rdsk/c2t0d0
Disk 2 0/1/1/0.1.0 sdisk claimed device HP 36.4gmas3367nc
/Dev/DSK/c2t1d0/dev/rdsk/c2t1d0
Disk 8 0/3/1/0.1.15.0.0.0.0 sdisk claimed device DGC cx400wdr5
/Dev/DSK/c8t0d0/dev/rdsk/c8t0d0
Disk 4 0/3/1/0.1.31.0.0.0.0 sdisk claimed device DGC cx400wdr5
/Dev/DSK/c9t0d0/dev/rdsk/c9t0d0
Disk 6 0/4/1/0.1.15.0.0.0.0 sdisk claimed device DGC cx400wdr5
/Dev/DSK/c10t0d0/dev/rdsk/c10t0d0
Disk 5 0/4/1/0.1.31.0.0.0.0 sdisk claimed device DGC cx400wdr5
/Dev/DSK/c11t0d0/dev/rdsk/c11t0d010. Create a physical volume:
# Pvcreate/dev/rdsk
/C8t0d0

11. Create a volume group
11.1 create a directory under/dev with the volume group name.
If the volume group name is vg_miscfile, the directory is/dev/vg_miscfile.
# Mkdir/dev/vg_miscfile.
11.2 create a set of device files for the volume group in this directory.
# Mknod/dev/vg_miscfile/group C 64 0x010000
12. Create a volume group (with the physical volume as the parameter ):
# Vgcreate/dev/vg_miscfile/dev/DSK/c8t0d0.
After creation, run the command: vgdisplay to check whether the settings are correct. 13. Create a logical volume.
When creating a logical volume, the corresponding character devices and Block devices are generated under the volume group directory.
Now, create the following logical volume in the volume group vg_miscfile:
A 512 MB logical volume named lv_miscfile.
# Lvcreate-l 512-N lv_miscfile/dev/vg_miscfile parameter:-L indicates the logical volume size in MB.
-N indicates the logical volume name. The default value is lvol1, lvol2 ...... [HPUX] If Multiple Volume groups are involved, it is best to add the name of the volume group, for example, # lvcreate-N lvname vgname

14. Compile the file system.
Run the following command to create a JFS File System on/dev/vg00/lvoldb01:
# Newfs-F vxfs/dev/vg_miscfile/R

Lv_miscfile Note: There must be letters R
# Newfs-O largefiles-F vxfs/dev/vg_cdrlog/rlv_cdrlog create a large file system # fsadm-F vxfs-O largefile/oralce modify the file system to a large file system

15. Mount the file system.
15.1 create a mount point: # mkdir/miscfile15.2. Use mount to mount:
# Mount-F vxfs/dev/vg_miscfile/lv_miscfile/miscfile.
Currently, BDF is available to display all pending volumes.
16. Fault Tolerance of VG for EMC storage # vgextend vg_miscfile/dev/DSK/c10t0d0
Volume group "vg_miscfile" has been successfully extended.
Volume group configuration for/dev/vg_miscfile has been saved in/etc/lvmconf/vg_miscfile.conf
# Vgextend vg_miscfile/dev/DSK/c9t0d0
Current path "/dev/DSK/c10t0d0" is an alternate link, Skip.
Volume group "vg_miscfile" has been successfully extended.
Volume group configuration for/dev/vg_miscfile has been saved in/etc/lvmconf/vg_miscfile.conf
# Vgextend vg_miscfile/dev/DSK/c11t0d0
Current path "/dev/DSK/c10t0d0" is an alternate link, Skip.
Current path "/dev/DSK/c9t0d0" is an alternate link, Skip.
Volume group "vg_miscfile" has been successfully extended.
Volume group configuration for/dev/vg_miscfile has been saved in/etc/lvmconf/vg_miscfile.conf
# Vgdisplay-V/dev/vg_miscfile
--- Volume groups ---
VG name/dev/vg_miscfile
VG write access read/write
VG status available
Max lv255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
Vgda 2
PE size (Mbytes) 4
Total PE 255
Alloc PE 128.
Free PE 127
Total PVG 0
Total spare PVS 0
Total spare PVS in use 0 --- logical volumes ---
LV name/dev/vg_miscfile/lv_miscfile
LV status available/syncd
LV size (MB) 512
Current le 128
Allocated PE 128.
Used PV 1 --- physical volumes ---
PV name/dev/DSK/c8t0d0
PV name/dev/DSK/c10t0d0 alternate Link
PV name/dev/DSK/c9t0d0 alternate Link
PV name/dev/DSK/c11t0d0 alternate Link

PV status available
Total PE 255
Free PE 127
Autoswitch on 16. Edit the/etc/fstab file to automatically mount the file system created on the machine at startup # Cat/etc/fstab
# System/etc/fstab file. Static information about the file systems
# See fstab (4) and sam (1 m) for further details on logging ing devices.
/Dev/vg00/lvol3/vxfs delaylog 0 1
/Dev/vg00/lvol1/stand HFS defaults 0 1
/Dev/vg00/lvol4/tmp vxfs delaylog 0 2
/Dev/vg00/lvol5/home 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/vg00/lvol9/Oracle vxfs RW, SUID, nolargefiles, delaylog, datainlog 0 2
/Dev/vg_miscfile/lv_miscfile/miscfile vxfs RW, SUID, largefiles, delaylog, datainlog 0 2

# Note: the following error occurs when EMC configuration is not performed in Step 8 (8. failover on EMC: 1. VG cannot be expanded on hp ux to implement failover # vgextend vg_miscfile/dev/DSK/c9t0d0
Vgextend: couldn't open physical volume "/dev/DSK/c9t0d0 ":
I/O Error # pvcreate/dev/DSK/c9t0d0
Pvcreate: couldn't open physical volume "/dev/DSK/c9t0d0 ":
I/O Error
# Pvcreate/dev/rdsk/c9t0d0
# Vgextend vg_miscfile/dev/DSK/c9t0d0
Vgextend: couldn't open physical volume "/dev/DSK/c9t0d0 ":
I/O error indicates that the Failover function has not been configured on EMC. HP UX can be seen through ioscan, but cannot be controlled.
# Pvcreate/dev/rdsk/c10t0d0
Pvcreate: the physical volume already belongs to a volume group
It indicates that c10t0d0 is the replaceable connection of PV in VG, And it is/dev/rdsk/c8t0d0. It also indicates that the replaceable connection does not need to be created by pvcreate.
Note 1: When the EMC host base agent is not installed on hp unix, UX can see four disks (ioscan-fncdisk), which are actually a lun and different connection paths, but it cannot be read or written. NOTE 2: After the agent is installed, the UX can be seen, but cannot be read or written. NOTE 3: After configuring Lun, raid group, and storage group on EMC, UX can read and write c8t0d0 and c10t0d0 (the Lun is controlled by the SP ), c9t0d0 and c11t0d0 cannot read and write annotations 4: After failover is configured on EMC, UX can read and write all four paths # strings/etc/lvmtab
/Dev/vg00
/Dev/DSK/c2t0d0
/Dev/DSK/c2t1d0
/Dev/vg_miscfile
/Dev/DSK/c8t0d0
/Dev/DSK/c10t0d0
/Dev/DSK/c9t0d0
/Dev/DSK/c11t0d0
#

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.