[HPUX] HP Unix pv,vg,lv操作
[root@testdb:/#] pvcreate /dev/rdsk/c2t1d4 #使用的字元裝置
Physical volume "/dev/rdsk/c2t1d4" has been successfully created.
[root@testdb:/#] vgcreate vgora /dev/dsk/c2t1d4 #使用塊裝置
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 預設大小是4M,so...4M*50431=201724M < 201728M (206569472/1024) 所以要增加PE的大小,設定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 #需要使用字元裝置的,就是一個字母帶r的.(帶r裸裝置使用,不帶是檔案系統使用的)
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檢視是否掛載.
如果想要系統系統掛載filesystem,需要在/etc/fstab中新增記錄.
[root@testdb:/#] vi /etc/fstab #新增如下內容.
/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 #只能這樣了.但是這樣裡面的資料都沒有了.
[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引數,強制執行
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
Physical volume "/dev/rdsk/c2t1d4" has been successfully created.
[root@testdb:/#] vgcreate vgora /dev/dsk/c2t1d4 #使用塊裝置
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 預設大小是4M,so...4M*50431=201724M < 201728M (206569472/1024) 所以要增加PE的大小,設定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 #需要使用字元裝置的,就是一個字母帶r的.(帶r裸裝置使用,不帶是檔案系統使用的)
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檢視是否掛載.
如果想要系統系統掛載filesystem,需要在/etc/fstab中新增記錄.
[root@testdb:/#] vi /etc/fstab #新增如下內容.
/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 #只能這樣了.但是這樣裡面的資料都沒有了.
[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引數,強制執行
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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2147135/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- AIX中PV,VG,LV及FS常用相關命令AI
- linux 磁碟分割槽掛載-LVM-物理卷PV,卷組VG,邏輯卷LVLinuxLVM
- Linux作業系統中分割槽格式轉換LVM格式及多磁碟建立PV、VG、LVLinux作業系統LVM
- linux 磁碟自動化分割槽掛載-LVM-物理卷PV,卷組VG,邏輯卷LV-shellLinuxLVM
- HP-UNIX 建立檔案系統
- hp-unix下的高可用叢集設定
- centos7 新增磁碟到/(根目錄下),擴充套件VG卷和lvCentOS套件
- AIX系統擴vg操作步驟AI
- 九、Linux/UNIX操作命令積累【rpm】Linux
- java實現pv操作 -------哲學家問題Java
- hp-unix作業系統root賬號被鎖定的兩種解決方法:作業系統
- AIX_EXT_VGAI
- aix lvm big vgAILVM
- LV中的Facade
- hp glance
- 論HPUX系統交換與偽交換UX
- 擴充和縮小LV
- Unix pthreadthread
- 建立PV、PVC
- Unix哲學(Unix程式設計藝術)程式設計
- win10系統hp3838印表機網路安裝怎麼操作Win10
- df-pv 工具檢視pvc,pv 容量使用情況
- 使用NFS建立PVNFS
- 看完了程式同步與互斥機制,我終於徹底理解了 PV 操作
- 《Unix 網路程式設計》15:Unix 域協議程式設計協議
- lv高仿包包一千多貴嗎
- 高仿lv包在哪裡可以買
- Unix, Linux 和MacOSLinuxMac
- PV、PVC、StorageClass講解
- HP hpssacli 常用命令
- HP系統配置檢查
- hp 64位jdk問題JDK
- 各大作業系統AIX/HPUX/Solaris/Linux下的系統日誌作業系統AILinux
- Zabbix開發實踐:HPUX獲取磁碟利用率最大值UX
- Linux下共享VG改變活動狀態Linux
- 揭祕高仿包包Lv哪裡可以買
- UNIX 常用命令
- unix signal : signalfd, eventfd, timerfd
- k8s-pv-pvcK8S