<
創(chuàng)新互聯(lián)專注于密云網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗。 熱誠為您提供密云營銷型網(wǎng)站建設(shè),密云網(wǎng)站制作、密云網(wǎng)頁設(shè)計、密云網(wǎng)站官網(wǎng)定制、小程序設(shè)計服務(wù),打造密云網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供
密云網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。a href="http://m.rwnh.cn/" target="_blank">建站服務(wù)器
[root@testdb:/#] pvcreate /dev/rdsk/c2t1d4 #使用的字符設(shè)備
Physical volume /dev/rdsk/c2t1d4 has been successfully created.
[root@testdb:/#] vgcreate vgora /dev/dsk/c2t1d4 #使用塊設(shè)備
Increased the number of physical extents per physical volume to 50431.
vgcreate: Volume group /dev/vgora could not be created:
VGRA for the disk is too big for the specified parameters. Increase the
extent size or decrease max_PVs/max_LVs and try again.
[root@testdb:/#] diskinfo /dev/rdsk/c2t1d4
SCSI describe of /dev/rdsk/c2t1d4:
vendor: HITACHI
product id: DF600F
type: direct access
size: 206569472 Kbytes
bytes per sector: 512
一個PE Size 默認(rèn)大小是4M,so...4M*50431=201724M < 201728M (206569472/1024) 所以要增加PE的大小,設(shè)置PE Size=32M.
[root@testdb:/#] vgcreate -s 32 vgora /dev/dsk/c2t1d4
Increased the number of physical extents per physical volume to 6303.
Volume group /dev/vgora has been successfully created.
Volume Group configuration for /dev/vgora has been saved in /etc/lvmconf/vgora.conf
[root@testdb:/#] lvcreate -L 40G -n lvoracle vgora #不能識別G.so..delete
[root@testdb:/#] lvcreate -L 80G -n lvoradata vgora
[root@testdb:/#] lvremove /dev/vgora/lvoracle
[root@testdb:/#] lvremove /dev/vgora/lvoradata
[root@testdb:/#] lvcreate -L 40960M -n lvoracle vgora
[root@testdb:/#] lvcreate -L 81920M -n lvoradata vgora
[root@testdb:/#] vgdisplay -v vgora #重新查看信息.
[root@testdb:/#] newfs -F vxfs /dev/vgora/lvoracle #需要使用字符設(shè)備的,就是一個字母帶r的.(帶r裸設(shè)備使用,不帶是文件系統(tǒng)使用的)
UX:vxfs newfs: ERROR: V-3-21623: /dev/vgora/lvoracle is not a character device
[root@testdb:/#] newfs -F vxfs /dev/vgora/rlvoracle
[root@testdb:/#] newfs -F vxfs /dev/vgora/rlvoradata
[root@testdb:/#] mkdir -p /oracle/testdb/oracle
[root@testdb:/#] mkdir -p /oracle/testdb/oradata
[root@testdb:/#] mount /dev/vgora/lvoracle /oracle/testdb/oracle
[root@testdb:/#] mount /dev/vgora/lvoradata /oracle/testdb/oradata
這個時候可以通過bdf查看是否掛載.
如果想要系統(tǒng)系統(tǒng)掛載filesystem,需要在/etc/fstab中添加記錄.
[root@testdb:/#] vi /etc/fstab #添加如下內(nèi)容.
/dev/vgora/lvoracle /oracle/testdb/oracle vxfs delaylog 0 2
/dev/vgora/lvoradata /oracle/testdb/oradata vxfs delaylog 0 2
[root@testdb:/#] mount -a
[root@testdb:/#] lvextend -L 92160M /dev/vgora/lvoradata #增加lv大小
[root@testdb:/#] extendfs -F vxfs /dev/vgora/lvoradata #filesystem不能在線操作.需要umount操作
UX:vxfs extendfs: ERROR: V-3-20144: /dev/vgora/lvoradata is mounted, cannot extend.
[root@testdb:/#] fsadm -F vxfs -b 92160M /oracle/testdb/oradata #使用fsadm 在線操作.
UX:vxfs fsadm: INFO: V-3-25942: /dev/vgora/rlvoradata size increased from 83886080 sectors to 94371840 sectors
[root@testdb:/#] umount /oracle/testdb/oradata
[root@testdb:/#] lvreduce -L 81920M /dev/vgora/lvoradata
root@testdb:/#] mount /dev/vgora/lvoradata /oracle/testdb/oradata
UX:vxfs mount: ERROR: V-3-24706: /dev/vgora/lvoradata no such device or filesystem on it missing one or more devices
[root@testdb:/#] newfs -F vxfs /dev/vgora/rlvoradata #只能這樣了.但是這樣里面的數(shù)據(jù)都沒有了.
[root@testdb:/#] newfs -o largefiles -F vxfs /dev/vgora/rlvoradata #不加-o 支持2G,加了之后支持128G.
[root@testdb:/#] mount -a
[root@testdb:/dev/vgasm#] pvcreate /dev/rdsk/c2t1d3
pvcreate: Could not perform LVM operation on VxVM disk /dev/rdsk/c2t1d3.
[root@testdb:/dev/vgasm#] pvcreate -f /dev/rdsk/c2t1d3 #加上-f參數(shù),強(qiáng)制執(zhí)行
Physical volume /dev/rdsk/c2t1d3 has been successfully created.
[root@testdb:/dev/vgasm#] vgextend vgora /dev/dsk/c2t1d3
[root@testdb:/dev/vgasm#] vgreduce vgora /dev/dsk/c2t1d3
網(wǎng)頁名稱:[HPUX]HPUnixpv,vg,lv操作
網(wǎng)站鏈接:http://m.rwnh.cn/article20/cpohco.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化、網(wǎng)站改版、網(wǎng)站排名、Google、商城網(wǎng)站、軟件開發(fā)
廣告
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源:
創(chuàng)新互聯(lián)