溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

多路徑格式化,對磁盤操作提示要分區(qū),對別名操作正常格式化

發(fā)布時間:2020-08-04 13:17:48 來源:ITPUB博客 閱讀:351 作者:lusklusklusk 欄目:建站服務(wù)器
SAN存儲劃分到服務(wù)器后,服務(wù)器需要對其格式化,該服務(wù)器才能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磁盤操作提示要分區(qū)

[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別名操作不需要分區(qū)

[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.
向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI