No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Huawei SAN Storage Host Connectivity Guide for Windows

HUAWEI SAN Storage Host Connectivity Guide for Windows Servers

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Disk Management Commands

Disk Management Commands

Although Windows is a GUI-based operating system, it also provides the powerful diskpart MS-DOS management commands. The diskpart disk management module can complete all operations under Disk Management.

Figure 2-6 shows the diskpart commands.

Figure 2-6 diskpart commands in GUI

The preceding commands show the process that three LUNs are initialized and then used to create a RAID-5 volume.

  1. Scan for LUNs.

    DISKPART> rescan
    
    Please wait while DiskPart scans your configuration...
    
    DiskPart has finished scanning your configuration.
    
    DISKPART> list disk
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          279 GB      0 B
      Disk 1    Online          279 GB  4094 MB
      Disk 2    Offline        5120 MB  5120 MB
      Disk 3    Offline          10 GB      0 B        *
      Disk 4    Offline          20 GB      0 B        *

  2. Set the state of the LUNs mapped to the host for the first time to online.

    DISKPART> select disk 2
    
    Disk 2 is now the selected disk.
    
    DISKPART> online disk
    
    DiskPart successfully onlined the selected disk.
    
    DISKPART> list disk
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          279 GB      0 B
      Disk 1    Online          279 GB  4094 MB
    * Disk 2    Online         5120 MB  5120 MB
      Disk 3    Offline          10 GB      0 B        *
      Disk 4    Offline          20 GB      0 B        *
    
    DISKPART> select disk 3
    
    Disk 3 is now the selected disk.
    
    DISKPART> online disk
    
    DiskPart successfully onlined the selected disk.
    
    DISKPART> list disk
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          279 GB      0 B
      Disk 1    Online          279 GB  4094 MB
      Disk 2    Online         5120 MB  5120 MB
    * Disk 3    Online           10 GB      0 B        *
      Disk 4    Offline          20 GB      0 B        *
    
    DISKPART> select disk 4
    
    Disk 4 is now the selected disk.
    
    DISKPART> online disk
    
    DiskPart successfully onlined the selected disk.
    
    DISKPART> list disk
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          279 GB      0 B
      Disk 1    Online          279 GB  4094 MB
      Disk 2    Online         5120 MB  5120 MB
      Disk 3    Online           10 GB      0 B        *
    * Disk 4    Online           20 GB      0 B        *

  3. Convert disks to dynamic disks.

    DISKPART> select disk 2
    
    Disk 2 is now the selected disk.
    
    DISKPART> convert dynamic
    
    DiskPart successfully converted the selected disk to dynamic format.
    
    DISKPART> select disk 3
    
    Disk 3 is now the selected disk.
    
    DISKPART> convert dynamic
    
    DiskPart successfully converted the selected disk to dynamic format.
    
    DISKPART> select disk 4
    
    Disk 4 is now the selected disk.
    
    DISKPART> convert dynamic
    
    DiskPart successfully converted the selected disk to dynamic format.

  4. Create a RAID 5 volume.

    DISKPART> list volume
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 0         System Rese  NTFS Partition    350 MB  Healthy    System
      Volume 1     C                NTFS Partition    160 GB  Healthy    Boot
    
    DISKPART> create volume raid size=50 disk=2,3,4
    
    DiskPart successfully created the volume.
    
    DISKPART> list volume
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 0         System Rese  NTFS Partition    350 MB  Healthy    System
      Volume 1     C                NTFS Partition    160 GB  Healthy    Boot
    * Volume 2                      RAW    RAID-5       100 MB  Healthy

  5. Format the volume.

    DISKPART> format
    
      100 percent completed
    
    DiskPart successfully formatted the volume.
    
    DISKPART> list volume
    
      Volume ###  Ltr  Label        Fs     Type      Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 0         System Rese  NTFS Partition    350 MB  Healthy    System
      Volume 1     C                NTFS Partition    160 GB  Healthy  Boot
    * Volume 2                      NTFS RAID-5       100 MB  Healthy

  6. Mount the file system.

    DISKPART> assign
    
    DiskPart successfully assigned the drive letter or mount point.
    
    DISKPART> list volume
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 0         System Rese  NTFS Partition    350 MB  Healthy    System
      Volume 1     C                NTFS Partition    160 GB  Healthy    Boot
    * Volume 2     D                NTFS RAID-5       100 MB  Healthy

    Compared with the GUI-based disk management, the CLI disk management commands in Windows are complex. However, those CLI commands are useful in automatic management and tests.

Download
Updated: 2020-01-17

Document ID: EDOC1000150159

Views: 89797

Downloads: 3651

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next