多路徑格式化,對磁碟操作提示要分割槽,對別名操作正常格式化
SAN儲存劃分到伺服器後,伺服器需要對其格式化,該伺服器才能mount這塊儲存。
--多路徑的磁碟,擁有一樣的wwid
[root@sdb etc]# fdisk -l |grep dev|grep -v sda
Disk /dev/sdb: 1099.5 GB, 1099529453568 bytes
Disk /dev/sdc: 1099.5 GB, 1099529453568 bytes
Disk /dev/sdd: 1099.5 GB, 1099529453568 bytes
Disk /dev/mapper/3600a09803830464d6c5d4c6c47664356: 1099.5 GB, 1099529453568 bytes
[root@sdb etc]# multipath -l
3600a09803830464d6c5d4c6c47664356 dm-0 NETAPP,LUN C-Mode
size=1.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=0 status=active
| |- 1:0:0:0 sdb 8:16 active undef running
| `- 2:0:0:0 sdd 8:48 active undef running
`-+- policy='round-robin 0' prio=0 status=enabled
`- 1:0:1:0 sdc 8:32 active undef running
[root@sdb etc]# scsi_id -g -u /dev/sdb
3600a09803830464d6c5d4c6c47664356
[root@srmdb etc]# scsi_id -g -u /dev/mapper/3600a09803830464d6c5d4c6c47664356
3600a09803830464d6c5d4c6c47664356
--直接mount報錯,提示需要格式化
[root@sdb etc]# mount /dev/mapper/3600a09803830464d6c5d4c6c47664356 /u02
mount: you must specify the filesystem type
--對/dev/sdb磁碟操作提示要分割槽
[root@sdb etc]# mkfs -t ext4 /dev/sdb
mke2fs 1.41.12 (17-May-2010)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) n
--對/dev/mapper/wwid別名操作不需要分割槽
[root@sdb etc]# mkfs -t ext4 /dev/mapper/3600a09803830464d6c5d4c6c47664356
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=1 blocks, Stripe width=16 blocks
67117056 inodes, 268439808 blocks
13421990 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
8193 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
--多路徑的磁碟,擁有一樣的wwid
[root@sdb etc]# fdisk -l |grep dev|grep -v sda
Disk /dev/sdb: 1099.5 GB, 1099529453568 bytes
Disk /dev/sdc: 1099.5 GB, 1099529453568 bytes
Disk /dev/sdd: 1099.5 GB, 1099529453568 bytes
Disk /dev/mapper/3600a09803830464d6c5d4c6c47664356: 1099.5 GB, 1099529453568 bytes
[root@sdb etc]# multipath -l
3600a09803830464d6c5d4c6c47664356 dm-0 NETAPP,LUN C-Mode
size=1.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=0 status=active
| |- 1:0:0:0 sdb 8:16 active undef running
| `- 2:0:0:0 sdd 8:48 active undef running
`-+- policy='round-robin 0' prio=0 status=enabled
`- 1:0:1:0 sdc 8:32 active undef running
[root@sdb etc]# scsi_id -g -u /dev/sdb
3600a09803830464d6c5d4c6c47664356
[root@srmdb etc]# scsi_id -g -u /dev/mapper/3600a09803830464d6c5d4c6c47664356
3600a09803830464d6c5d4c6c47664356
--直接mount報錯,提示需要格式化
[root@sdb etc]# mount /dev/mapper/3600a09803830464d6c5d4c6c47664356 /u02
mount: you must specify the filesystem type
--對/dev/sdb磁碟操作提示要分割槽
[root@sdb etc]# mkfs -t ext4 /dev/sdb
mke2fs 1.41.12 (17-May-2010)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) n
--對/dev/mapper/wwid別名操作不需要分割槽
[root@sdb etc]# mkfs -t ext4 /dev/mapper/3600a09803830464d6c5d4c6c47664356
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=1 blocks, Stripe width=16 blocks
67117056 inodes, 268439808 blocks
13421990 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
8193 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30126024/viewspace-2154614/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux磁碟分割槽格式化-fdisk命令工具Linux
- 在Linux中,如何格式化一個磁碟分割槽?Linux
- Linux 分割槽和格式化Linux
- MySql資料分割槽操作之新增分割槽操作MySql
- Linux 擴充套件磁碟分割槽(命令列操作)Linux套件命令列
- Jquery對當前日期的操作(格式化當前日期)jQuery
- Linux系統對分割槽有哪些要求?操作方法!Linux
- linux fdisk 分割槽、格式化、掛載!Linux
- 大盤分割槽格式化及掛載
- Linux 格式化擴充套件分割槽(Extended)Linux套件
- Spark操作Hive分割槽表SparkHive
- SSD固態硬碟要分割槽嗎?SSD固態硬碟分割槽與不分割槽的效能對比硬碟
- ArcGIS對欄位分割查詢操作
- 如何格式化磁碟?Tuxera NTFS for Mac輕鬆格式化磁碟UXMac
- linux掛載新硬碟並進行分割槽格式化Linux硬碟
- WIN10 windows無法格式化這個磁碟上的系統分割槽怎麼辦Win10Windows
- Linux 磁碟與磁碟分割槽Linux
- 磁碟分割槽管理
- WIN10無法格式化這個磁碟上的系統分割槽最佳解決方法Win10
- Mac磁碟如何分割槽?教你Mac系統磁碟自由分割槽教程!Mac
- html中想把圖片絕對路徑 改成相對路徑怎麼操作?HTML
- 理解Path對路徑進行操作的APIAPI
- Linux下進行格式化行動硬碟(U盤)以及分割槽Linux硬碟
- Golang 對金融數字的格式化Golang
- VS Code 對 Lua 程式碼格式化
- SQL SERVER資料庫檔案刪除、分割槽格式化解決方案SQLServer資料庫
- 【Linux】MBR磁碟分割槽表只能有四個分割槽?Linux
- win10如何使用自帶工具給磁碟分割槽_win10使用自帶工具對硬碟分割槽的方法Win10硬碟
- 對oracle分割槽表的理解整理Oracle
- 對格式化字串的一些思考字串
- Win10徹底格式化一個分割槽的方法(防止恢復)Win10
- echarts map 名稱格式化Echarts
- Linux配置和管理裝置對映多路徑multipathLinux
- LINUX 多路徑對映Multipath與正規表示式Linux
- linux 新增磁碟 分割槽掛載Linux
- 磁碟分割槽表恢復原理
- Linux 磁碟分割槽和掛載Linux
- linux 磁碟分割槽掛載-fdiskLinux