lvm增加分割槽容量
增加硬碟略
硬碟分割槽
[root@ora10g-1 ~]# fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): d
Partition number (1-5): 3
Command (m for help): p
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000391c7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 3917 31251456 8e Linux LVM
/dev/sda4 3917 4177 2094472+ 83 Linux
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Selected partition 3
First cylinder (4178-5221, default 4178):
Using default value 4178
Last cylinder, +cylinders or +size{K,M,G} (4178-5221, default 5221):
Using default value 5221
Command (m for help): t
Partition number (1-4): e
Partition number (1-4): 3
Hex code (type L to list codes): 8e
Changed system type of partition 3 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: 裝置或資源忙.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): d
Partition number (1-5): 3
Command (m for help): p
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000391c7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 3917 31251456 8e Linux LVM
/dev/sda4 3917 4177 2094472+ 83 Linux
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Selected partition 3
First cylinder (4178-5221, default 4178):
Using default value 4178
Last cylinder, +cylinders or +size{K,M,G} (4178-5221, default 5221):
Using default value 5221
Command (m for help): t
Partition number (1-4): e
Partition number (1-4): 3
Hex code (type L to list codes): 8e
Changed system type of partition 3 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: 裝置或資源忙.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
重啟reboot
Physical volume "/dev/sda3" successfully created
[root@ora10g-1 ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "vg_ora10g1" using metadata type lvm2
[root@ora10g-1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_ora10g1-LogVol03 7.8G 7.7G 0 100% /
tmpfs 581M 0 581M 0% /dev/shm
/dev/sda1 194M 30M 155M 16% /boot
/dev/mapper/vg_ora10g1-LogVolU01 7.8G 2.4G 5.1G 32% /u01
/dev/mapper/vg_ora10g1-LogVol02 12G 9.5G 1.5G 87% /u02
[root@ora10g-1 ~]# vgextend vg_ora10g1 /dev/sda3
Volume group "vg_ora10g1" successfully extended
[root@ora10g-1 ~]#
Reading all physical volumes. This may take a while...
Found volume group "vg_ora10g1" using metadata type lvm2
[root@ora10g-1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_ora10g1-LogVol03 7.8G 7.7G 0 100% /
tmpfs 581M 0 581M 0% /dev/shm
/dev/sda1 194M 30M 155M 16% /boot
/dev/mapper/vg_ora10g1-LogVolU01 7.8G 2.4G 5.1G 32% /u01
/dev/mapper/vg_ora10g1-LogVol02 12G 9.5G 1.5G 87% /u02
[root@ora10g-1 ~]# vgextend vg_ora10g1 /dev/sda3
Volume group "vg_ora10g1" successfully extended
[root@ora10g-1 ~]#
Extending logical volume LogVol03 to 14.83 GiB
Logical volume LogVol03 successfully resized
[root@ora10g-1 ~]# resize2fs /dev/mapper/vg_ora10g1-LogVol0
vg_ora10g1-LogVol00 vg_ora10g1-LogVol02 vg_ora10g1-LogVol03
[root@ora10g-1 ~]# resize2fs /dev/mapper/vg_ora10g1-LogVol03
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/vg_ora10g1-LogVol03 is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/mapper/vg_ora10g1-LogVol03 to 3888128 (4k) blocks.
The filesystem on /dev/mapper/vg_ora10g1-LogVol03 is now 3888128 blocks long.
[root@ora10g-1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_ora10g1-LogVol03 15G 7.7G 6.2G 56% /
tmpfs 581M 0 581M 0% /dev/shm
/dev/sda1 194M 30M 155M 16% /boot
/dev/mapper/vg_ora10g1-LogVolU01 7.8G 2.4G 5.1G 32% /u01
/dev/mapper/vg_ora10g1-LogVol02 12G 9.5G 1.5G 87% /u02
vg_ora10g1-LogVol00 vg_ora10g1-LogVol02 vg_ora10g1-LogVol03
[root@ora10g-1 ~]# resize2fs /dev/mapper/vg_ora10g1-LogVol03
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/vg_ora10g1-LogVol03 is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/mapper/vg_ora10g1-LogVol03 to 3888128 (4k) blocks.
The filesystem on /dev/mapper/vg_ora10g1-LogVol03 is now 3888128 blocks long.
[root@ora10g-1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_ora10g1-LogVol03 15G 7.7G 6.2G 56% /
tmpfs 581M 0 581M 0% /dev/shm
/dev/sda1 194M 30M 155M 16% /boot
/dev/mapper/vg_ora10g1-LogVolU01 7.8G 2.4G 5.1G 32% /u01
/dev/mapper/vg_ora10g1-LogVol02 12G 9.5G 1.5G 87% /u02
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24486203/viewspace-1698708/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- LVM XFS增加硬碟分割槽容量(resize2fs: Bad magic number in super-block while)LVM硬碟BloCWhile
- Linux 新增LVM分割槽及LVM分割槽擴容LinuxLVM
- LVM分割槽恢復LVM
- 【實驗】【PARTITION】RANGE分割槽表增加分割槽
- 大容量硬碟典型分割槽方案(轉)硬碟
- Linux 增加 swap 分割槽Linux
- Oracle分割槽表基礎運維-07增加分割槽(2 HASH分割槽)Oracle運維
- win10 c盤新增容量怎麼操作_win10系統如何增加c盤分割槽容量Win10
- win10擴充c盤容量怎麼設定 win10怎樣增加c盤分割槽容量Win10
- 非 LVM 分割槽動態擴容LVM
- Oracle分割槽表基礎運維-07增加分割槽(1範圍分割槽)Oracle運維
- 全面學習分割槽表及分割槽索引(8)--增加和收縮表分割槽索引
- 全面學習分割槽表及分割槽索引(16)--增加和刪除索引分割槽索引
- linux下增加swap分割槽Linux
- oracle增加分割槽的方法Oracle
- Oracle分割槽表基礎運維-07增加分割槽(3列表分割槽)Oracle運維
- Linux LVM 擴充套件磁碟分割槽LinuxLVM套件
- (轉)管理LVM2邏輯分割槽LVM
- vmware server 增加根分割槽的方法Server
- (轉) linux下增加swap分割槽Linux
- SSD固態硬碟要分割槽嗎?不同容量SSD固態硬碟分割槽方案建議硬碟
- 增加LVMLVM
- Linux中lvm分割槽是什麼?LVM優缺點有哪些?LinuxLVM
- Oracle分割槽表基礎運維-07增加分割槽(4 RANGE_HASH)Oracle運維
- Oracle分割槽表基礎運維-07增加分割槽(5RANGE_LIST)Oracle運維
- Oracle分割槽表基礎運維-07增加分割槽(6RANGE_RANGE)Oracle運維
- 騰訊雲CVM主機在原分割槽(主分割槽)上增加磁碟空間
- 在 Linux 中建立 LVM 分割槽的分步指南LinuxLVM
- 新增儲存用Parted分割槽並建LVM卷LVM
- lvm中怎麼增大根分割槽的步驟:LVM
- 在 Linux 下使用 fdisk 擴充套件分割槽容量Linux套件
- sql server針對表增加新的分割槽SQLServer
- 虛擬機器增加磁碟分割槽的大小虛擬機
- Linux系統中增加Swap分割槽大小Linux
- win10增加分割槽的方法_win10怎麼給磁碟新增分割槽Win10
- win10新增硬碟分割槽怎麼操作 win10硬碟如何增加新分割槽Win10硬碟
- Oracle分割槽表增加分割槽報錯“ORA-14760:不允許對間隔分割槽物件執行 ADD PARTITION”Oracle物件
- ENGINEER01 - 分割槽規劃和使用,LVM邏輯卷LVM