How to mount Eva 4000 storage on a Linux host

Source: Internet
Author: User
Tags hex code

Environment:

HP dl380 (RedHat as3 u8) + Optical Fiber card (2 * qla2000) + Eva 4000, directly connected to the host for storage, vdisks on Eva have been divided.

Procedure:


1. Install the qla2000 Optical Fiber card driver.

2. CD/opt/hp_fibreutils; hp_rescan-

Sending rescan signal to/proc/SCSI/qla2300/0...
Sending rescan signal to/proc/SCSI/qla2300/1...
Removing/proc/SCSI/qla2300/0, target 0, Lun 32 scanning/proc/SCSI/qla2300/0, target 0, Lun 32

Scsi0 00 00 01 hp hsv 200 6000 direct-Access
Scsi0 00 00 00 hp hsv 200 6000

3. fdisk-l // display the hardware path of the mounted Eva Hard Disk

ISK/dev/SDA: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 Cylinders
Units = cylinders of 16065*512 = 8225280 bytesdisk/dev/SDA doesn't contain a valid Partition Table

4. Linux LVM formatting for Hard Disks

Fdisk/dev/SDB
Device contains neither a valid DOS partition table, Nor Sun, SGI or OSF disklabel
Building a new dos disklabel. changes will remain in memory only,
Until you decide to write them. After that, of course, the previous
Content won't be recoverable.


The number of cylinders for this disk is set to 63741.
There is nothing wrong with that, but this is larger than 1024,
And coshould in certain setups cause problems:
1) software that runs at boot time (e.g., old versions of lilo)
2) booting and partitioning software from other OSS
(E.g., DOS fdisk, OS/2 fdisk)
Warning: Invalid flag 0x0000 of Partition Table 4 will be corrected by W (RITE)

Command (M for help): n
Command action
E extended
P primary partition (1-4)
P
Partition Number (1-4): 1
First cylinder (1-63741, default 1 ):
Using default value 1
Last cylinder or + size or + sizem or + sizek (1-63741, default 63741 ):
Using default value 63741
Command (M for help): T
Selected partition 1
HEX Code (type L to list codes): L

0 empty 1C hidden Win95 fa 70 disksecure mult BB boot wizard hid
1 fat12 1E hidden Win95 fa 75 PC/IX be Solaris boot
2 XENIX root 24 NEC dos 80 old minix C1 drdos/sec (fat-
3 xenix usr 39 Plan 9 81 minix/old lin C4 drdos/sec (fat-
4 fat16 <32 m 3C partitionmagic 82 Linux swap C6 drdos/sec (fat-
5 Extended 40 venix 80286 83 Linux C7 syr.pdf
6 fat16 41 PPC prep boot 84 OS/2 hidden C: Da non-FS Data
7 HPFs/NTFS 42 SFS 85 Linux extended dB CP/M/ctos /.
8 AIX 4D qnx4.x 86 NTFS Volume set de Dell Utility
9 AIX bootable 4E qnx4.x 2nd part 87 NTFS Volume set DF bootit
A OS/2 boot manag 4f qnx4.x 3rd part 8e Linux LVM E1 dos access
B Win95 FAT32 50 ontrack DM 93 amoeba E3 dos R/o
C Win95 FAT32 (Lb 51 ontrack DM6 aux 94 amoeba bbt E4 speedstor
E Win95 fat16 (Lb 52 CP/M 9f BSD/OS EB BEOs FS
F Win95 ext 'd (Lb 53 ontrack DM6 aux A0 IBM ThinkPad Hi EE EFI GPT
10 opus 54 ontrackdm6 A5 FreeBSD ef efi (fat-12/16/
11 hidden fat12 55 ez-drive A6 OpenBSD F0 Linux/PA-RISC B
12 Compaq diagnost 56 Golden Bow A7 nextstep F1 speedstor
14 hidden fat16 <3 5C Priam edisk A8 Darwin UFS F4 speedstor
16 hidden fat16 61 speedstor A9 NetBSD F2 dos secondary
17 hidden HPFs/NTF 63 GNU Hurd or sys AB Darwin boot FD Linux raid auto
18 ast smartsleep 64 Novell Netware B7 bsdi FS Fe lanstep
1B hidden Win95 fa 65 Novell Netware B8 bsdi swap FF bbt
HEX Code (type L to list codes): 8E
Changed system type of partition 1 to 8E (Linux LVM)

Command (M for help): p

Disk/dev/SDB: 524.2 GB, 524289048064 bytes
255 heads, 63 sectors/track, 63741 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes

Device boot start end blocks ID system
/Dev/sdb1 1 63741 511999551 8e Linux LVM
Command (M for help): W
The partition table has been altered!

Calling IOCTL () to re-read partition table.
Syncing disks.
After formatting, use fdisk-L to view the following information:

Disk/dev/SDB: 524.2 GB, 524289048064 bytes
255 heads, 63 sectors/track, 63741 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes

Device boot start end blocks ID system
/Dev/sdb1 1 63741 511999551 8e Linux LVM

Now you can run pvcreate and other volume groups and logical volume series commands on the/dev/sdb1 hard disk.

[Root] # pvcreate/dev/sdb1
Pvcreate -- physical volume "/dev/sdb1" successfully created

[Root] # vgcreate-s 16-l 255/dev/vg_data/dev/sdb1
Vgcreate -- info: Maximum logical volume size is 1023.97 Gigabyte
Vgcreate -- doing automatic backup of volume group "vg_data"
Vgcreate -- Volume group "vg_data" successfully created and activated

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.