LinuxLVM扩容过程.docx
- 文档编号:27837014
- 上传时间:2023-07-05
- 格式:DOCX
- 页数:15
- 大小:18.65KB
LinuxLVM扩容过程.docx
《LinuxLVM扩容过程.docx》由会员分享,可在线阅读,更多相关《LinuxLVM扩容过程.docx(15页珍藏版)》请在冰豆网上搜索。
LinuxLVM扩容过程
检查环境
[root@SZBFORADB02oracle]#df-m
Filesystem1M-blocksUsedAvailableUse%Mountedon
/dev/mapper/vg_szdcslot4-lv_root5039750974274111%/
tmpfs30720162581446353%/dev/shm
/dev/sda1485414199%/boot
/dev/mapper/vg_szdcslot4-lv_home50397720471182%/home
/dev/mapper/vg_szdcslot4-lv_u0160476259413146446%/u01
/dev/mapper/vg_szdcslot4-lv_backup100794703572531774%/backup
/dev/mapper/vg_emc-lv_oradata80634735205841332946%/oradata
[root@SZBFORADB02oracle]#
[root@SZBFORADB02oracle]#df-h
FilesystemSizeUsedAvailUse%Mountedon
/dev/mapper/vg_szdcslot4-lv_root50G5.0G42G11%/
tmpfs30G16G15G53%/dev/shm
/dev/sda1485M41M419M9%/boot
/dev/mapper/vg_szdcslot4-lv_home50G720M47G2%/home
/dev/mapper/vg_szdcslot4-lv_u0160G26G31G46%/u01
/dev/mapper/vg_szdcslot4-lv_backup99G69G25G74%/backup
/dev/mapper/vg_emc-lv_oradata788G344G404G46%/oradata
[root@SZBFORADB02oracle]#powermtdisplaydev=all
Pseudoname=emcpowerb
VNXID=CETV2152200087[SZBFORADB02]
LogicaldeviceID=600601601E403D0090B6F8131356E511[szbforadb02A]
state=alive;policy=CLAROpt;queued-IOs=1
Owner:
default=SPB,current=SPBArrayfailovermode:
4
==============================================================================
---------------Host----------------Stor---I/OPath----Stats---
###HWPathI/OPathsInterf.ModeStateQ-IOsErrors
==============================================================================
2qla2xxxsdeSPB3activealive10
2qla2xxxsddSPA3activealive00
1qla2xxxsdcSPB2activealive00
1qla2xxxsdbSPA2activealive00
[root@SZBFORADB02oracle]#
[root@SZBFORADB02oracle]#fdisk-l
Disk/dev/sda:
299.4GB,299439751168bytes
255heads,63sectors/track,36404cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x55943905
DeviceBootStartEndBlocksIdSystem
/dev/sda1*16451200083Linux
Partition1doesnotendoncylinderboundary.
/dev/sda264364052919086088eLinuxLVM
Partition2doesnotendoncylinderboundary.
Disk/dev/sdb:
1099.5GB,1099511627776bytes
255heads,63sectors/track,133674cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
Disk/dev/sdc:
1099.5GB,1099511627776bytes
255heads,63sectors/track,133674cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
Disk/dev/sdd:
1099.5GB,1099511627776bytes
255heads,63sectors/track,133674cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
Disk/dev/mapper/vg_szdcslot4-lv_root:
53.7GB,53687091200bytes
255heads,63sectors/track,6527cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
Disk/dev/mapper/vg_szdcslot4-lv_swap:
16.9GB,16877879296bytes
255heads,63sectors/track,2051cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
Disk/dev/sde:
1099.5GB,1099511627776bytes
255heads,63sectors/track,133674cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
Disk/dev/mapper/vg_emc-lv_oradata:
859.0GB,858993459200bytes
255heads,63sectors/track,104433cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
Disk/dev/mapper/vg_szdcslot4-lv_home:
53.7GB,53687091200bytes
255heads,63sectors/track,6527cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
Disk/dev/mapper/vg_szdcslot4-lv_u01:
64.4GB,64424509440bytes
255heads,63sectors/track,7832cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
Disk/dev/mapper/vg_szdcslot4-lv_backup:
107.4GB,107374182400bytes
255heads,63sectors/track,13054cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
Disk/dev/emcpowerb:
1099.5GB,1099511627776bytes
255heads,63sectors/track,133674cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):
512bytes/512bytes
I/Osize(minimum/optimal):
512bytes/512bytes
Diskidentifier:
0x00000000
-----------------------------------------------------------------------------------------------------------------
[root@SZBFORADB02oracle]#pvscan
PV/dev/emcpowerbVGvg_emclvm2[1024.00GiB/224.00GiBfree]
PV/dev/sda2VGvg_szdcslot4lvm2[278.38GiB/2.66GiBfree]
Total:
2[1.27TiB]/inuse:
2[1.27TiB]/innoVG:
0[0]
[root@SZBFORADB02oracle]#vgscan
Readingallphysicalvolumes.Thismaytakeawhile...
Foundvolumegroup"vg_emc"usingmetadatatypelvm2
Foundvolumegroup"vg_szdcslot4"usingmetadatatypelvm2
[root@SZBFORADB02oracle]#lvscan
ACTIVE'/dev/vg_emc/lv_oradata'[800.00GiB]inherit
ACTIVE'/dev/vg_szdcslot4/lv_root'[50.00GiB]inherit
ACTIVE'/dev/vg_szdcslot4/lv_home'[50.00GiB]inherit
ACTIVE'/dev/vg_szdcslot4/lv_swap'[15.72GiB]inherit
ACTIVE'/dev/vg_szdcslot4/lv_u01'[60.00GiB]inherit
ACTIVE'/dev/vg_szdcslot4/lv_backup'[100.00GiB]inherit
[root@SZBFORADB02oracle]#
[root@SZBFORADB02oracle]#
[root@SZBFORADB02oracle]#
[root@SZBFORADB02oracle]#more/proc/scsi/scsi
Attacheddevices:
Host:
scsi0Channel:
02Id:
00Lun:
00
Vendor:
DELLModel:
PERCH710Rev:
3.13
Type:
Direct-AccessANSISCSIrevision:
05
Host:
scsi1Channel:
00Id:
00Lun:
00
Vendor:
DGCModel:
VRAIDRev:
0533
Type:
Direct-AccessANSISCSIrevision:
04
Host:
scsi1Channel:
00Id:
01Lun:
00
Vendor:
DGCModel:
VRAIDRev:
0533
Type:
Direct-AccessANSISCSIrevision:
04
Host:
scsi2Channel:
00Id:
00Lun:
00
Vendor:
DGCModel:
VRAIDRev:
0533
Type:
Direct-AccessANSISCSIrevision:
04
Host:
scsi2Channel:
00Id:
01Lun:
00
Vendor:
DGCModel:
VRAIDRev:
0533
Type:
Direct-AccessANSISCSIrevision:
04
[root@SZBFORADB02oracle]#
查看linux下fc卡的wwn号
[root@SZBFORADB02oracle]#cd/sys/class/fc_host
[root@SZBFORADB02fc_host]#ls
host1host2
[root@SZBFORADB02fc_host]#cdhost1
[root@SZBFORADB02host1]#ls
dev_loss_tmoissue_lipnpiv_vports_inuseport_statespeedsupported_classessystem_hostnamevport_create
devicemax_npiv_vportsport_idport_typestatisticssupported_speedstgtid_bind_typevport_delete
fabric_namenode_nameport_namepowersubsystemsymbolic_nameuevent
[root@SZBFORADB02host1]#catport_name
0x2001d0431e6b5f8c
[root@SZBFORADB02host1]#
[root@SZBFORADB02fc_host]#cat/host2/portr_name
[root@SZBFORADB02host2]#catport_name
0x2002d0431e6b5f8c
[root@SZBFORADB02host2]#
交换机创建zone
Broacade交换机:
10.25.1.212
zone:
SZBFORADB02
20:
01:
d0:
43:
1e:
6b:
5f:
8c
50:
06:
01:
62:
08:
60:
7f:
a5
50:
06:
01:
6a:
08:
60:
7f:
a5
需要新加的zone:
Szbroradb02_HDS_G200
20:
01:
d0:
43:
1e:
6b:
5f:
8c
50:
06:
0e:
80:
12:
52:
3f:
40
50:
06:
0e:
80:
12:
52:
3f:
60
10.25.1.213
zone:
SZBFORADB02
20:
02:
d0:
43:
1e:
6b:
5f:
8c
50:
06:
01:
63:
08:
60:
7f:
a5
50:
06:
01:
6b:
08:
60:
7f:
a5
需要新加的zone:
Szbroradb02_HDS_G200
20:
02:
d0:
43:
1e:
6b:
5f:
8c
50:
06:
0e:
80:
12:
52:
3f:
50
50:
06:
0e:
80:
12:
52:
3f:
70
存储分配LUN
Linux主机识别新盘
首先确定物理机的HBA卡的编号
执行下一步
echo"1">/sys/class/fc_host/host?
/issue_lip
?
为系统内部显示的编号,每个都执行一次
接下来执行
echo"---">/sys/class/scsi_host/host?
/scan
?
为上面的HBA卡编号一样,有几个执行几次
最后
fdisk–l
---------------------------------------------------------------------------------------
echo"---">/sys/class/scsi_host/host0/scan
echo"---">/sys/class/scsi_host/host1/scan
echo"---">/sys/class/scsi_host/host2/scan
echo"---">/sys/class/scsi_host/host3/scan
echo"---">/sys/class/scsi_host/host4/scan
echo"---">/sys/class/scsi_host/host5/scan
echo"---">/sys/class/scsi_host/host6/scan
echo"---">/sys/class/scsi_host/host7/scan
echo"---">/sys/class/scsi_host/host8/scan
fdisk–l
识别multipath磁盘
[root@SZBFORADB02host1]#powermtdisplaydev=all
Pseudoname=emcpowerc
HitachiID=21055
LogicaldeviceID=HITACHI5040523F021D
state=alive;policy=ADaptive;queued-IOs=0
==============================================================================
---------------Host----------------Stor---I/OPath----Stats---
###HWPathI/OPathsInterf.ModeStateQ-IOsErrors
==============================================================================
2qla2xxxsdiN/Aactivealive00
2qla2xxxsdhN/Aactivealive00
1qla2xxxsdgN/Aactivealive00
1qla2xxxsdfN/Aactivealive00
Pseudoname=emcpowerb
VNXID=CETV2152200087[SZBFORADB02]
LogicaldeviceID=600601601E403D0090B6F8131356E511[szbforadb02A]
state=alive;policy=CLAROpt;queued-IOs=0
Owner:
default=SPB,current=SPBArrayfailovermode:
4
==============================================================================
---------------Host
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- LinuxLVM 扩容 过程