Skip to main content
E-Series Systems
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

建立檔案系統(RHEL 7和SLES 12)

貢獻者

對於RHEL 7和SLES 12、您可以在所需的dm裝置上建立檔案系統、然後掛載檔案系統。

步驟
  1. 執行「multiPath-ll」命令、取得「dev/mapper/dm」裝置清單。

    # multipath -ll

    此命令的結果顯示兩個設備:"dm-19"和"dm-16":

    eui.00001ffe5a94ff8500a0980000af4444 dm-19 NVME,NetApp E-Series
    size=10G features='1 queue_if_no_path' hwhandler='0' wp=rw
    |-+- policy='service-time 0' prio=50 status=active
    | |- #:#:#:# nvme0n19 259:19  active ready running
    | `- #:#:#:# nvme1n19 259:115 active ready running
    `-+- policy='service-time 0' prio=10 status=enabled
      |- #:#:#:# nvme2n19 259:51  active ready running
      `- #:#:#:# nvme3n19 259:83  active ready running
    eui.00001fd25a94fef000a0980000af4444 dm-16 NVME,NetApp E-Series
    size=16G features='1 queue_if_no_path' hwhandler='0' wp=rw
    |-+- policy='service-time 0' prio=50 status=active
    | |- #:#:#:# nvme0n16 259:16  active ready running
    | `- #:#:#:# nvme1n16 259:112 active ready running
    `-+- policy='service-time 0' prio=10 status=enabled
      |- #:#:#:# nvme2n16 259:48  active ready running
      `- #:#:#:# nvme3n16 259:80  active ready running
  2. 在分割區上為每個「/開發/對應器/ EUI-」裝置建立檔案系統。

    建立檔案系統的方法會因所選的檔案系統而異。此範例顯示如何建立「ext4」檔案系統。

    # mkfs.ext4 /dev/mapper/dm-19
    mke2fs 1.42.11 (09-Jul-2014)
    Creating filesystem with 2620928 4k blocks and 655360 inodes
    Filesystem UUID: 97f987e9-47b8-47f7-b434-bf3ebbe826d0
    Superblock backups stored on blocks:
            32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
    
    Allocating group tables: done
    Writing inode tables: done
    Creating journal (32768 blocks): done
    Writing superblocks and filesystem accounting information: done
  3. 建立要掛載新裝置的資料夾。

    # mkdir /mnt/ext4
  4. 掛載裝置。

    # mount /dev/mapper/eui.00001ffe5a94ff8500a0980000af4444 /mnt/ext4