SAN儲存卷擴容後對應客戶端磁碟和掛載磁碟的分割槽如何正確顯示新增容量
總結:
SAN儲存的卷可以不是LVM模式情況下,對卷新增容量後,客戶端需要重啟才可以看到卷對應的磁碟新增後的容量,再對該磁碟執行resize2fs後,該磁碟掛載的分割槽才可以看到新增後的容量
--確定需要新增容量的磁碟在客戶端顯示200G,已在儲存端新增100G,但是客戶端仍然顯示200G
[root@mdg /]# fdisk -l |grep /dev/mapper/3600a098038303867635d4a48624e5467
Disk /dev/mapper/3600a098038303867635d4a48624e5467: 214.7 GB, 214748364800 bytes
[root@mdg ~]# df -h |grep /u02test
/dev/mapper/3600a098038303867635d4a48624e5467 197G 216M 187G 1% /u02test
--執行resize2fs命令,磁碟新容量300G,但客戶端仍然顯示200G
[root@mdg /]# resize2fs -help
resize2fs 1.41.12 (17-May-2010)
Usage: resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [new_size]
[root@mdg /]# resize2fs /dev/mapper/3600a098038303867635d4a48624e5467 300G
resize2fs 1.41.12 (17-May-2010)
The containing partition (or device) is only 52428800 (4k) blocks.
You requested a new size of 78643200 blocks.
[root@mdg /]# fdisk -l |grep /dev/mapper/3600a098038303867635d4a48624e5467
Disk /dev/mapper/3600a098038303867635d4a48624e5467: 214.7 GB, 214748364800 bytes
[root@mdg ~]# df -h |grep /u02test
/dev/mapper/3600a098038303867635d4a48624e5467 197G 216M 187G 1% /u02test
--重啟後,磁碟在客戶端正常顯示300G
[root@mdg /]# reboot
Broadcast message from root@mdg
(/dev/pts/0) at 14:39 ...
The system is going down for reboot NOW!
[root@mdg /]#
login as: root
root@192.168.8.8's password:
Last login: Wed May 16 14:24:51 2018 from 192.168.1.3
[root@mdg ~]# fdisk -l |grep /dev/mapper/3600a098038303867635d4a48624e5467
Disk /dev/mapper/3600a098038303867635d4a48624e5467: 322.1 GB, 322122547200 bytes
--mount該磁碟,該磁碟已經正常顯示300G,但是mount分割槽仍然顯示200G
[root@mdg ~]# mount /dev/mapper/3600a098038303867635d4a48624e5467 /u02test
[root@mdg ~]# df -h |grep /u02test
/dev/mapper/3600a098038303867635d4a48624e5467 197G 216M 187G 1% /u02test
--執行resize2fs命令,磁碟新容量300G,mount分割槽正常顯示300G
[root@mdg ~]# resize2fs /dev/mapper/3600a098038303867635d4a48624e5467 300G
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/3600a098038303867635d4a48624e5467 is mounted on /u02test; on-line resizing required
old desc_blocks = 13, new_desc_blocks = 19
Performing an on-line resize of /dev/mapper/3600a098038303867635d4a48624e5467 to 78643200 (4k) blocks.
The filesystem on /dev/mapper/3600a098038303867635d4a48624e5467 is now 78643200 blocks long.
[root@mdg ~]# df -h |grep /u02test
/dev/mapper/3600a098038303867635d4a48624e5467 296G 220M 281G 1% /u02test
--檔案沒有丟失,檔案沒有損壞
[root@mdg ~]# cd /u02test
[root@mdg u02test]# ll
total 29164
-rw-r--r-- 1 root root 12 May 16 14:10 123
-rw-r--r-- 1 oracle dba 12 May 16 14:12 123_2
-rw-r----- 1 orahyprd oinstall 3509831 May 16 14:12 alert_HYPRD.log
-rw-r----- 1 oracle oinstall 26327331 May 16 14:11 alert_MESDB.log
drwx------ 2 root root 16384 May 16 13:39 lost+found
[root@mdg u02test]# cat 123
efefasdjlj
[root@mdg u02test]# cat 123_2
efefasdjlj
[root@mdg u02test]# less alert_HYD.log
[root@mdg u02test]# less alert_MDB.log
--實驗過不停往該分割槽複製檔案,可以使用到296G,說明新增容量有效
SAN儲存的卷可以不是LVM模式情況下,對卷新增容量後,客戶端需要重啟才可以看到卷對應的磁碟新增後的容量,再對該磁碟執行resize2fs後,該磁碟掛載的分割槽才可以看到新增後的容量
--確定需要新增容量的磁碟在客戶端顯示200G,已在儲存端新增100G,但是客戶端仍然顯示200G
[root@mdg /]# fdisk -l |grep /dev/mapper/3600a098038303867635d4a48624e5467
Disk /dev/mapper/3600a098038303867635d4a48624e5467: 214.7 GB, 214748364800 bytes
[root@mdg ~]# df -h |grep /u02test
/dev/mapper/3600a098038303867635d4a48624e5467 197G 216M 187G 1% /u02test
--執行resize2fs命令,磁碟新容量300G,但客戶端仍然顯示200G
[root@mdg /]# resize2fs -help
resize2fs 1.41.12 (17-May-2010)
Usage: resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [new_size]
[root@mdg /]# resize2fs /dev/mapper/3600a098038303867635d4a48624e5467 300G
resize2fs 1.41.12 (17-May-2010)
The containing partition (or device) is only 52428800 (4k) blocks.
You requested a new size of 78643200 blocks.
[root@mdg /]# fdisk -l |grep /dev/mapper/3600a098038303867635d4a48624e5467
Disk /dev/mapper/3600a098038303867635d4a48624e5467: 214.7 GB, 214748364800 bytes
[root@mdg ~]# df -h |grep /u02test
/dev/mapper/3600a098038303867635d4a48624e5467 197G 216M 187G 1% /u02test
--重啟後,磁碟在客戶端正常顯示300G
[root@mdg /]# reboot
Broadcast message from root@mdg
(/dev/pts/0) at 14:39 ...
The system is going down for reboot NOW!
[root@mdg /]#
login as: root
root@192.168.8.8's password:
Last login: Wed May 16 14:24:51 2018 from 192.168.1.3
[root@mdg ~]# fdisk -l |grep /dev/mapper/3600a098038303867635d4a48624e5467
Disk /dev/mapper/3600a098038303867635d4a48624e5467: 322.1 GB, 322122547200 bytes
--mount該磁碟,該磁碟已經正常顯示300G,但是mount分割槽仍然顯示200G
[root@mdg ~]# mount /dev/mapper/3600a098038303867635d4a48624e5467 /u02test
[root@mdg ~]# df -h |grep /u02test
/dev/mapper/3600a098038303867635d4a48624e5467 197G 216M 187G 1% /u02test
--執行resize2fs命令,磁碟新容量300G,mount分割槽正常顯示300G
[root@mdg ~]# resize2fs /dev/mapper/3600a098038303867635d4a48624e5467 300G
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/3600a098038303867635d4a48624e5467 is mounted on /u02test; on-line resizing required
old desc_blocks = 13, new_desc_blocks = 19
Performing an on-line resize of /dev/mapper/3600a098038303867635d4a48624e5467 to 78643200 (4k) blocks.
The filesystem on /dev/mapper/3600a098038303867635d4a48624e5467 is now 78643200 blocks long.
[root@mdg ~]# df -h |grep /u02test
/dev/mapper/3600a098038303867635d4a48624e5467 296G 220M 281G 1% /u02test
--檔案沒有丟失,檔案沒有損壞
[root@mdg ~]# cd /u02test
[root@mdg u02test]# ll
total 29164
-rw-r--r-- 1 root root 12 May 16 14:10 123
-rw-r--r-- 1 oracle dba 12 May 16 14:12 123_2
-rw-r----- 1 orahyprd oinstall 3509831 May 16 14:12 alert_HYPRD.log
-rw-r----- 1 oracle oinstall 26327331 May 16 14:11 alert_MESDB.log
drwx------ 2 root root 16384 May 16 13:39 lost+found
[root@mdg u02test]# cat 123
efefasdjlj
[root@mdg u02test]# cat 123_2
efefasdjlj
[root@mdg u02test]# less alert_HYD.log
[root@mdg u02test]# less alert_MDB.log
--實驗過不停往該分割槽複製檔案,可以使用到296G,說明新增容量有效
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30126024/viewspace-2154591/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux 新增磁碟 分割槽掛載Linux
- Linux 磁碟分割槽和掛載Linux
- 如何新建邏輯卷及磁碟掛載,邏輯卷擴容
- liunx磁碟分割槽擴容實操
- linux 磁碟分割槽掛載-fdiskLinux
- orcl:和asmdisk對應的磁碟分割槽資訊ASM
- 分析asm對應的磁碟分割槽ASM
- Linux 分割槽擴容(根分割槽擴容,SWAP 分割槽擴容,掛載新分割槽為目錄)Linux
- Liunx 磁碟分割槽與檔案掛載
- 新增磁碟並掛載磁碟
- parted和fdisk——兩種磁碟分割槽並掛載的方法
- 安裝Windows10系統後磁碟分割槽不顯示磁碟機代號如何解決Windows
- Linux下的磁碟分割槽和邏輯卷Linux
- linux新增新磁碟和建立分割槽Linux
- Linux磁碟分割槽及自動掛載Linux
- linux 磁碟分割槽掛載-LVM-物理卷PV,卷組VG,邏輯卷LVLinuxLVM
- Virtualbox中Linux新增一個新磁碟->建立分割槽->格式化->掛載分割槽Linux
- 虛擬機器磁碟不足,新增磁碟擴容虛擬機
- Mac磁碟如何分割槽?教你Mac系統磁碟自由分割槽教程!Mac
- Seven 儲存結構與磁碟劃分 主分割槽交換分割槽的作用!
- 新增磁碟多連路磁碟併為ASM磁碟組擴容ASM
- 安裝Windows10系統後磁碟分割槽不顯示碟符如何解決Windows
- 【Linux】Linux檔案系統管理1 磁碟分割槽、格式化、掛載-卷標掛載Linux
- 新增儲存用Parted分割槽並建LVM卷LVM
- Linux磁碟分割槽、掛載、檢視檔案大小Linux
- 磁碟分割槽以及Linux目錄掛載詳解Linux
- Linux 磁碟與磁碟分割槽Linux
- 掛載大容量儲存
- linux fdisk 命令 磁碟劃分新的分割槽及掛載Linux
- linux下查詢asm磁碟和linux的分割槽的對應關係確認的方法LinuxASM
- linux 磁碟自動化分割槽掛載-LVM-物理卷PV,卷組VG,邏輯卷LV-shellLinuxLVM
- Linux LVM 擴充套件磁碟分割槽LinuxLVM套件
- Windows伺服器如何磁碟分割槽,Windows伺服器磁碟分割槽常見的三種Windows伺服器
- win10怎麼快速給磁碟分割槽_win10如何進行磁碟分割槽Win10
- Linux核心之磁碟和分割槽Linux
- 確定asm磁碟與物理磁碟的對應關係ASM
- Linux 擴充套件磁碟分割槽(命令列操作)Linux套件命令列
- Linux 新增LVM分割槽及LVM分割槽擴容LinuxLVM