HP-UX邏輯卷管理
1、建立物理卷
zdcxdb[/]#ll /dev/rdisk
total 0
crw-r----- 1 bin sys 12 0x00000c Apr 11 18:20 disk33
crw-r----- 1 bin sys 12 0x00000d Apr 12 16:26 disk34
crw-r----- 1 bin sys 12 0x00000e Apr 11 18:20 disk35
crw-r----- 1 bin sys 12 0x000025 Apr 27 09:43 disk50
zdcxdb[/]#pvcreate -f /dev/rdisk/disk50
Physical volume "/dev/rdisk/disk50" has been successfully created.
2、建立卷組:
zdcxdb[/]#mkdir /dev/vg01
zdcxdb[/]#mknod /dev/vg01/group c 64 0x010000
zdcxdb[/]#vgcreate /dev/vg01 /dev/disk/disk50
Warning: Max_PE_per_PV for the volume group (65535) too small for this PV (153599).
Using only 65535 PEs from this physical volume.
Increased the number of physical extents per physical volume to 65535.
vgcreate: Volume group "/dev/vg01" 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.
zdcxdb[/]#vgcreate -s 32 /dev/vg01 /dev/disk/disk50
Increased the number of physical extents per physical volume to 19199.
Volume group "/dev/vg01" has been successfully created.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
3、劃分邏輯卷:
zdcxdb[/]#lvcreate -L 10240 -n lvywlog /dev/vg01
zdcxdb[/]#newfs -F vxfs /dev/vg01/rlvywlog
4、掛載邏輯卷:
zdcxdb[/]#mkdir ywlog
zdcxdb[/]#vi /etc/fstab
zdcxdb[/]#cat /etc/fstab
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /home vxfs delaylog 0 2
/dev/vg00/lvol5 /opt vxfs delaylog 0 2
/dev/vg00/lvol6 /tmp vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg00/lvora /oracle vxfs delaylog 0 2
/dev/vg01/lvywdata /ywdata vxfs delaylog 0 2
/dev/vg01/lvywarch /ywarch vxfs delaylog 0 2
/dev/vg01/lvywlog /ywlog vxfs delaylog 0 2
/dev/vg01/lvcwdata /cwdata vxfs delaylog 0 2
/dev/vg01/lvcwarch /cwarch vxfs delaylog 0 2
/dev/vg01/lvcwlog /cwlog vxfs delaylog 0 2
/dev/vg01/lvbackup /backup vxfs delaylog 0 2
zdcxdb[/]#mount -a
zdcxdb[/]#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 130800 1951048 6% /
/dev/vg00/lvol1 1776056 80440 1518008 5% /stand
/dev/vg00/lvol8 10485760 2634224 7790328 25% /var
/dev/vg00/lvol7 4194304 2072344 2105408 50% /usr
/dev/vg00/lvol6 4194304 23592 4140440 1% /tmp
/dev/vg00/lvora 20971520 46881 19641103 0% /oracle
/dev/vg00/lvol5 8388608 3559032 4791888 43% /opt
/dev/vg00/lvol4 2097152 22984 2058008 1% /home
/dev/vg01/lvywlog 10485760 19651 9811985 0% /ywlog
/dev/vg01/lvcwlog 10485760 19651 9811985 0% /cwlog
/dev/vg01/lvcwarch 52428800 29931 49123947 0% /cwarch
/dev/vg01/lvcwdata 157286400 55632 147403852 0% /cwdata
/dev/vg01/lvywarch 52428800 29931 49123947 0% /ywarch
/dev/vg01/lvywdata 157286400 55632 147403852 0% /ywdata
/dev/vg01/lvbackup 104857600 42781 98263900 0% /backup
另:
擴充套件邏輯卷:
zdcxdb[/]#umount /ywlog
zdcxdb[/]#lvextend -L 51200 /dev/vg01/lvywlog
zdcxdb[/]#extendfs -F vxfs /dev/vg01/lvywlog
zdcxdb[/]#mount /ywlog
刪除邏輯卷:
zdcxdb[/]#umount /ywlog
zdcxdb[/]#lvremove /dev/vg01/lvywlog
刪除卷組:
zdcxdb[/]#lvremove /dev/vg01/lvbea
zdcxdb[/]#vgreduce /dev/vg01 /dev/disk/disk4
zdcxdb[/]#vgremove /dev/vg01
zdcxdb[/]#ll /dev/rdisk
total 0
crw-r----- 1 bin sys 12 0x00000c Apr 11 18:20 disk33
crw-r----- 1 bin sys 12 0x00000d Apr 12 16:26 disk34
crw-r----- 1 bin sys 12 0x00000e Apr 11 18:20 disk35
crw-r----- 1 bin sys 12 0x000025 Apr 27 09:43 disk50
zdcxdb[/]#pvcreate -f /dev/rdisk/disk50
Physical volume "/dev/rdisk/disk50" has been successfully created.
2、建立卷組:
zdcxdb[/]#mkdir /dev/vg01
zdcxdb[/]#mknod /dev/vg01/group c 64 0x010000
zdcxdb[/]#vgcreate /dev/vg01 /dev/disk/disk50
Warning: Max_PE_per_PV for the volume group (65535) too small for this PV (153599).
Using only 65535 PEs from this physical volume.
Increased the number of physical extents per physical volume to 65535.
vgcreate: Volume group "/dev/vg01" 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.
zdcxdb[/]#vgcreate -s 32 /dev/vg01 /dev/disk/disk50
Increased the number of physical extents per physical volume to 19199.
Volume group "/dev/vg01" has been successfully created.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
3、劃分邏輯卷:
zdcxdb[/]#lvcreate -L 10240 -n lvywlog /dev/vg01
zdcxdb[/]#newfs -F vxfs /dev/vg01/rlvywlog
4、掛載邏輯卷:
zdcxdb[/]#mkdir ywlog
zdcxdb[/]#vi /etc/fstab
zdcxdb[/]#cat /etc/fstab
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /home vxfs delaylog 0 2
/dev/vg00/lvol5 /opt vxfs delaylog 0 2
/dev/vg00/lvol6 /tmp vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg00/lvora /oracle vxfs delaylog 0 2
/dev/vg01/lvywdata /ywdata vxfs delaylog 0 2
/dev/vg01/lvywarch /ywarch vxfs delaylog 0 2
/dev/vg01/lvywlog /ywlog vxfs delaylog 0 2
/dev/vg01/lvcwdata /cwdata vxfs delaylog 0 2
/dev/vg01/lvcwarch /cwarch vxfs delaylog 0 2
/dev/vg01/lvcwlog /cwlog vxfs delaylog 0 2
/dev/vg01/lvbackup /backup vxfs delaylog 0 2
zdcxdb[/]#mount -a
zdcxdb[/]#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 130800 1951048 6% /
/dev/vg00/lvol1 1776056 80440 1518008 5% /stand
/dev/vg00/lvol8 10485760 2634224 7790328 25% /var
/dev/vg00/lvol7 4194304 2072344 2105408 50% /usr
/dev/vg00/lvol6 4194304 23592 4140440 1% /tmp
/dev/vg00/lvora 20971520 46881 19641103 0% /oracle
/dev/vg00/lvol5 8388608 3559032 4791888 43% /opt
/dev/vg00/lvol4 2097152 22984 2058008 1% /home
/dev/vg01/lvywlog 10485760 19651 9811985 0% /ywlog
/dev/vg01/lvcwlog 10485760 19651 9811985 0% /cwlog
/dev/vg01/lvcwarch 52428800 29931 49123947 0% /cwarch
/dev/vg01/lvcwdata 157286400 55632 147403852 0% /cwdata
/dev/vg01/lvywarch 52428800 29931 49123947 0% /ywarch
/dev/vg01/lvywdata 157286400 55632 147403852 0% /ywdata
/dev/vg01/lvbackup 104857600 42781 98263900 0% /backup
另:
擴充套件邏輯卷:
zdcxdb[/]#umount /ywlog
zdcxdb[/]#lvextend -L 51200 /dev/vg01/lvywlog
zdcxdb[/]#extendfs -F vxfs /dev/vg01/lvywlog
zdcxdb[/]#mount /ywlog
刪除邏輯卷:
zdcxdb[/]#umount /ywlog
zdcxdb[/]#lvremove /dev/vg01/lvywlog
刪除卷組:
zdcxdb[/]#lvremove /dev/vg01/lvbea
zdcxdb[/]#vgreduce /dev/vg01 /dev/disk/disk4
zdcxdb[/]#vgremove /dev/vg01
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26194851/viewspace-722343/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- LVM 邏輯卷管理LVM
- LVM_邏輯卷管理LVM
- Linux下LVM邏輯卷管理LinuxLVM
- Linux—磁碟配額,管理LVM邏輯卷LinuxLVM
- 在Linux中,如何使用LVM管理邏輯卷?LinuxLVM
- Linux LVM Logical Volume Management 邏輯卷的管理LinuxLVM
- 如何在 Ubuntu 中管理和使用邏輯卷管理 LVMUbuntuLVM
- 如何新建邏輯卷及磁碟掛載,邏輯卷擴容
- Linux-使用者管理與建立邏輯卷Linux
- linux系統掛載邏輯卷和擴充套件邏輯卷組Linux套件
- linux之LVM邏輯卷LinuxLVM
- 一文全解:LVM(邏輯卷管理器)LVM
- lvm收縮邏輯卷空間LVM
- 什麼是LVM邏輯卷管理?0基礎學Linux運維LVMLinux運維
- Linux作業系統邏輯盤卷管理LVM建立步驟(轉)Linux作業系統LVM
- 『學了就忘』Linux檔案系統管理 — 65、LVM邏輯卷管理介紹LinuxLVM
- Centos8中遷移邏輯卷CentOS
- Linux下的磁碟分割槽和邏輯卷Linux
- 11 管理邏輯備庫
- Lvm邏輯卷管理、建立、使用、擴充套件、縮減、遷移、快照、恢復LVM套件
- Linux硬碟掛載與磁碟分割槽基礎(二)(物理卷、卷組、邏輯卷)Linux硬碟
- linux 磁碟分割槽掛載-LVM-物理卷PV,卷組VG,邏輯卷LVLinuxLVM
- linux系統下分割槽邏輯卷擴容Linux
- Centos8中建立LVM精簡邏輯卷CentOSLVM
- 手把手教學----LVM邏輯卷管理與磁碟配額實操全流程LVM
- 在LVM中恢復已刪除的邏輯卷LVM
- 邏輯、集合運算上的卷積一覽(FMT、FWT,……)卷積
- 實操CentOS8系統中建立LVM邏輯卷CentOSLVM
- lvm 擴充邏輯卷空間(linux的磁碟擴容)LVMLinux
- LVM邏輯卷線上動態擴容磁碟空間LVM
- ENGINEER01 - 分割槽規劃和使用,LVM邏輯卷LVM
- linux 磁碟自動化分割槽掛載-LVM-物理卷PV,卷組VG,邏輯卷LV-shellLinuxLVM
- 如何在 Linux 分割槽或邏輯卷中建立檔案系統Linux
- 邏輯題
- onethink後臺選單管理,選單邏輯錯誤
- 邏輯運算子
- 邏輯推理20201028
- 量子邏輯閘
- 邏輯迴歸邏輯迴歸