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
- linux新增新磁碟和建立分割槽Linux
- Linux 分割槽擴容(根分割槽擴容,SWAP 分割槽擴容,掛載新分割槽為目錄)Linux
- Linux下的磁碟分割槽和邏輯卷Linux
- Liunx 磁碟分割槽與檔案掛載
- Linux磁碟分割槽及自動掛載Linux
- linux 磁碟分割槽掛載-LVM-物理卷PV,卷組VG,邏輯卷LVLinuxLVM
- Linux硬碟掛載與磁碟分割槽基礎(二)(物理卷、卷組、邏輯卷)Linux硬碟
- parted和fdisk——兩種磁碟分割槽並掛載的方法
- Mac磁碟如何分割槽?教你Mac系統磁碟自由分割槽教程!Mac
- Linux 磁碟與磁碟分割槽Linux
- Linux磁碟分割槽、掛載、檢視檔案大小Linux
- Seven 儲存結構與磁碟劃分 主分割槽交換分割槽的作用!
- 磁碟分割槽管理
- Linux 新增LVM分割槽及LVM分割槽擴容LinuxLVM
- linux 磁碟自動化分割槽掛載-LVM-物理卷PV,卷組VG,邏輯卷LV-shellLinuxLVM
- Linux核心之磁碟和分割槽Linux
- Linux 擴充套件磁碟分割槽(命令列操作)Linux套件命令列
- Virtualbox中Linux新增新磁碟並建立分割槽Linux
- Windows伺服器如何磁碟分割槽,Windows伺服器磁碟分割槽常見的三種Windows伺服器
- win10怎麼快速給磁碟分割槽_win10如何進行磁碟分割槽Win10
- lvm 擴充邏輯卷空間(linux的磁碟擴容)LVMLinux
- linux建立新分割槽擴充套件磁碟空間Linux套件
- win10增加分割槽的方法_win10怎麼給磁碟新增分割槽Win10
- linux系統下分割槽邏輯卷擴容Linux
- 磁碟分割槽表恢復原理
- 【Linux】MBR磁碟分割槽表只能有四個分割槽?Linux
- linux — 擴容 /home 空間( xfs檔案系統分割槽擴容指定掛載點)Linux
- 應用推薦:開源磁碟分割槽工具 GParted
- Linux下磁碟分割槽工具cfdisk的使用Linux
- Linux系統磁碟和分割槽有哪些命令呢?Linux
- 阿里雲購買磁碟後掛載阿里
- win10怎樣分割槽_win10系統如何給磁碟分割槽Win10
- win10磁碟分割槽在哪裡 win10磁碟怎麼分割槽詳細教程一覽Win10