LVM劃分
成都創(chuàng)新互聯(lián)公司于2013年成立,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目成都網(wǎng)站設(shè)計(jì)、成都網(wǎng)站建設(shè)網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元太和做網(wǎng)站,已為上家服務(wù),為太和各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:028-86922220
1.劃分說明
服務(wù)器對(duì)存儲(chǔ)設(shè)備的訪問采用多路徑技術(shù) (Linux Device Mapper Multipathing),多路徑設(shè)備配置完畢后,會(huì)在/dev/mapper/ 發(fā)現(xiàn)mpthX的多路徑設(shè)備,可以使用lvcreate將其中一個(gè)設(shè)備劃分為一個(gè)物理卷。
本次擴(kuò)容的日立裸存儲(chǔ)設(shè)備共有900G*10空間,做RAID1+0后,實(shí)際可用存儲(chǔ)為約為3T分6個(gè)pv (一個(gè)pv 500G),分6個(gè)卷組--oravg01-06,一個(gè)卷組下分一個(gè)PV。
Oracle各主要數(shù)據(jù)文件分配大小:
temp:80G undo:60G SAP:819G SMS:999G
BCA_YW:100G BCA_GW:100G APP:200G indx:200G
備注:劃分時(shí)發(fā)現(xiàn),對(duì)一臺(tái)服務(wù)器劃分到LV后,另一臺(tái)也能識(shí)別相同的LV,但是VG處于不活動(dòng)狀態(tài),需要進(jìn)行激活。
2.創(chuàng)建PV
pvcreate /dev/mapper/mpath2
pvcreate/dev/mapper/mpath3
pvcreate/dev/mapper/mpath4
pvcreate/dev/mapper/mpath5
pvcreate/dev/mapper/mpath6
pvcreate/dev/mapper/mpath7
查看PV屬性
[root@rac1 ~]#pvdisplay
"/dev/mpath/mpath2" is a newphysical volume of "500.00 GB"
--- NEW Physical volume ---
PV Name /dev/mpath/mpath2
VG Name
PV Size 500.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID TtAWwc-5hZF-0ZLt-TVuP-Jn9f-n2FQ-oaLCDh
"/dev/mpath/mpath3" is a newphysical volume of "500.00 GB"
--- NEW Physical volume ---
PV Name /dev/mpath/mpath3
VG Name
PV Size 500.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID GiUA3r-cHfQ-LF0m-FBQt-K0yK-0jbH-GayMhX
"/dev/mpath/mpath4" is a newphysical volume of "500.00 GB"
--- NEW Physical volume ---
PV Name /dev/mpath/mpath4
VG Name
PV Size 500.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID HjaH7y-Zoy9-xl1N-m2QU-JeUI-QyzN-ZWutNq
"/dev/mpath/mpath5" is a newphysical volume of "500.00 GB"
--- NEW Physical volume ---
PV Name /dev/mpath/mpath5
VG Name
PV Size 500.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID zJbntF-iZae-BTn6-fleK-PGKn-jvIr-GHLT0D
"/dev/mpath/mpath6" is a newphysical volume of "500.00 GB"
--- NEW Physical volume ---
PV Name /dev/mpath/mpath6
VG Name
PV Size 500.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID KAt3j4-NnAP-C018-BUM1-Xfhv-UYY6-Zdy3PD
"/dev/mpath/mpath7" is a newphysical volume of "500.00 GB"
--- NEW Physical volume ---
PV Name /dev/mpath/mpath7
VG Name
PV Size 500.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID q1I884-vCgj-EMb8-FwI3-1Oqn-CuGo-wjF7nW
3. 創(chuàng)建VG
創(chuàng)建6個(gè)VG,一個(gè)VG下分一個(gè)PV,默認(rèn)PE=4M,一個(gè)VG 500G
[root@rac1 ~]# vgcreate oravg01 /dev/mpath/mpath2
Volume group"oravg01" successfully created
[root@rac1 ~]# vgcreate oravg02 /dev/mpath/mpath3
Volume group"oravg02" successfully created
[root@rac1 ~]# vgcreate oravg03 /dev/mpath/mpath4
Volume group"oravg03" successfully created
[root@rac1 ~]# vgcreate oravg04 /dev/mpath/mpath5
Volume group"oravg04" successfully created
[root@rac1 ~]# vgcreate oravg05 /dev/mpath/mpath6
Volume group"oravg05" successfully created
[root@rac1 ~]# vgcreate oravg06 /dev/mpath/mpath7
Volume group"oravg06" successfully created
查看VG
[root@rac1 ~]# vgdisplay
--- Volume group ---
VG Name oravg06
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 500.00 GB
PE Size 4.00 MB
Total PE 127999
Alloc PE / Size 0 / 0
Free PE / Size 127999 / 500.00 GB
VG UUID wevGwC-kmhe-3ho9-4CRk-GVnt-hOvE-2qq93g
--- Volume group ---
VG Name oravg05
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 500.00 GB
PE Size 4.00 MB
Total PE 127999
Alloc PE / Size 0 / 0
Free PE / Size 127999 / 500.00 GB
VG UUID P6pEjs-SHzZ-Rxql-XIwR-uOff-euw5-kPJpQg
--- Volume group ---
VG Name oravg04
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 500.00 GB
PE Size 4.00 MB
Total PE 127999
Alloc PE / Size 0 / 0
Free PE / Size 127999 / 500.00 GB
VG UUID K9yT9I-21Wg-48Ye-k1TY-ge3F-354N-EGYuPc
--- Volume group ---
VG Name oravg03
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 500.00 GB
PE Size 4.00 MB
Total PE 127999
Alloc PE / Size 0 / 0
Free PE / Size 127999 / 500.00 GB
VG UUID B4Nmcz-CEQK-yIL7-tn9j-SB03-e0GU-WUSlic
--- Volume group ---
VG Name oravg02
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 500.00 GB
PE Size 4.00 MB
Total PE 127999
Alloc PE / Size 0 / 0
Free PE / Size 127999 / 500.00 GB
VG UUID 3ydc98-DgkI-P8F5-HlGd-B2xO-mX0o-eE3zsn
--- Volume group ---
VG Name oravg01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 500.00 GB
PE Size 4.00 MB
Total PE 127999
Alloc PE / Size 0 / 0
Free PE / Size 127999 / 500.00 GB
VG UUID Ei6ZDe-29bP-XARY-qpCe-Qsve-y9Py-YtaKUw
4. 創(chuàng)建LV
注:這里創(chuàng)建lv大小時(shí),最好分配得比預(yù)先設(shè)計(jì)的大一些
依次創(chuàng)建LV(省略)
[root@rac1 ~]# lvcreate -L 512M oravg01
Logical volume "lvol0" created
掃描系統(tǒng)存在的LV
[root@rac1 ~]# lvscan
ACTIVE '/dev/oravg01/lvol0' [512.00 MB]inherit
查看VG屬性
[root@rac1 ~]# vgdisplay -P oravg01
Partial mode. Incomplete logical volumes will be processed.
---Volume group ---
VGName oravg01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 39
VGAccess read/write
VGStatus resizable
MAXLV 0
CurLV 38
Open LV 0
MaxPV 0
CurPV 1
ActPV 1
VGSize 500.00 GB
PESize 4.00 MB
Total PE 127999
AllocPE / Size 121216 / 473.50 GB
Free PE / Size 6783 / 26.50 GB
VGUUID Ei6ZDe-29bP-XARY-qpCe-Qsve-y9Py-YtaKUw
網(wǎng)站題目:10GORACLERAC搭建實(shí)戰(zhàn)之LINUXLVM劃分
當(dāng)前鏈接:http://vcdvsql.cn/article16/pdisdg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供動(dòng)態(tài)網(wǎng)站、網(wǎng)站營(yíng)銷、微信公眾號(hào)、軟件開發(fā)、網(wǎng)站維護(hù)、電子商務(wù)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)