linux 主機掛接EVA 4000儲存的操作步驟
環境:
HP DL380(redhat as3 u8)+光纖卡(2*qla2000)+EVA 4000,採用直連方式掛機儲存,EVA上的Vdisk已經劃分完畢。
具體操作步驟:
[@more@]1.安裝qla2000光纖卡驅動程式.
2.cd /opt/hp_fibreutils ;hp_rescan -a
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 HSV200 6000 Direct-Access
scsi0 00 00 00 HP HSV200 6000
3.fdisk -l //顯示掛機EVA硬碟的硬體路徑
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格式化
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 could in certain setups cause problems with:
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 <32M 3c PartitionMagic 82 Linux swap c6 DRDOS/sec (FAT-
5 Extended 40 Venix 80286 83 Linux c7 Syrinx
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.
格式化完畢,再次透過fdisk -l檢視資訊如下:
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
現在就可以對/dev/sdb1硬碟進行pvcreate等卷組和邏輯卷系列的命令操作
[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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15192459/viewspace-1009379/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux雲主機安全入侵排查步驟Linux
- 在Linux中,如何規劃⼀臺 Linux 主機,步驟是怎樣?Linux
- HP EVA系列儲存結構原理研究
- 記一次雲主機如何掛載物件儲存物件
- 操作步驟
- HP EVA系列儲存資料恢復原理資料恢復
- linux主機互信操作Linux
- 完整的SMT貼片機操作步驟流程
- MySQL主從複製配置步驟如何操作?學linux要什麼基礎MySqlLinux
- AJAX 操作步驟
- 【儲存資料恢復】HP EVA儲存誤刪除VDISK的資料恢復案例資料恢復
- 配置簡單的linux 的幾個操作步驟(Cent OS)Linux
- Eclipse配置hadoop外掛步驟【Linux centos6.0】EclipseHadoopLinuxCentOS
- 機器學習操作基本步驟 - svpino機器學習
- Linux環境下MySQL安裝部署操作步驟LinuxMySql
- 正思維的操作步驟
- 主儲存器
- 主備都是全新的恢復,主主搭建步驟
- 關於SQL server2008除錯儲存過程的完整步驟SQLServer除錯儲存過程
- Nginx配置虛擬主機有哪些步驟?linux伺服器入門學習NginxLinux伺服器
- Linux虛擬機器怎麼拍攝快照並管理?Linux虛擬機器拍攝快照並管理的操作步驟Linux虛擬機
- Linux 安裝步驟Linux
- linux下安裝redis 單節點安裝操作步驟LinuxRedis
- 用一臺虛擬主機搭建網站步驟?網站
- 在 Ubuntu中從外部儲存庫安裝軟體包步驟Ubuntu
- 【RAC】RAC更換心跳地址和RAC更換儲存主要步驟
- 華碩主機板開啟vt怎麼操作 華碩主機板開啟vt虛擬化最簡單步驟
- realvnc linux,realvnc linux配置的8個步驟VNCLinux
- MyBatis的逆向工程詳細步驟操作MyBatis
- Hive -------- 使用mysql儲存hive後設資料,Mysql的安裝以及配置步驟HiveMySql
- Oracle 共享儲存掛載Oracle
- Linux安裝Nginx步驟LinuxNginx
- 掛載Linux雲主機硬碟到本地計算機Linux硬碟計算機
- 【VMware vSphere】沒有共享儲存的ESXi主機之間如何共享本地儲存上的ISO檔案。
- EVA4400儲存斷電導致資料丟失如何恢復
- 【伺服器資料恢復】HP EVA儲存資料恢復案例伺服器資料恢復
- vnc安裝步驟,4個在Linux下vnc的個安裝步驟VNCLinux
- LINUX下ORACLE增量備份的步驟LinuxOracle
- Linux安裝jdk的詳細步驟LinuxJDK