Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

Bài viết này sẽ hướng dẫn bạn cách Cài Đặt Centos 7 Software Raid 1. Nếu bạn cần hỗ trợ, xin vui lòng liên hệ VinaHost qua Hotline 1900 6046 ext.3, email về [email protected] hoặc chat với VinaHost qua livechat https://livechat.vinahost.vn/chat.php.

Show

Các bước thực hiện như sau:

1. Boot vào ISO cài đặt và chọn Install CentOS 7

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

2. Chọn ngôn ngữ và khu vực

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

3. Cấu hình thời gian khu vực của bạn

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

4. Cấu hình partition

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

5. Tick chọn các ổ cứng muốn cài đặt và Tick vào “I will configure partitioning” để hệ thống không tự tạo các phân vùng. Và chọn Done.

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

6. Nhấn biểu tượng + để thêm phân vùng và dung lượng

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

7. Đổi Device Type thành RAID và chọn cấu hình Raid theo nhu cầu

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

8. Tương tự với các phân vùng còn lại. Cuối cùng nhấn Done và Accept

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

9. Nhấn Begin Installation để tiến hành cài đặt

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

10. Cuối cùng cài đặt password cho User root

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

11. Đã cài đặt xong. Bấm Reboot để boot vào OS

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

Chúc bạn thực hiện thành công!

THAM KHẢO CÁC DỊCH VỤ TẠI VINAHOST

\>> SERVER – COLOCATION – CDN

\>> CLOUD – VPS

\>> HOSTING

\>> EMAIL

\>> WEBSITE

\>> TÊN MIỀN

\>> SSL – LICENSE

Kết nối với mình qua

VinaHost là nhà cung cấp hàng đầu trong lĩnh vực Máy Chủ – Hosting – Cloud nói riêng cùng các dịch vụ công nghệ khác nói chung tại thị trường Việt Nam và quốc tế. Được chính thức thành lập vào 5 – 2008, VinaHost đã nhanh chóng mở rộng hoạt động trên toàn cầu và phục vụ cho hàng ngàn khách hàng tại Việt Nam, Trung Quốc, Mỹ, Hàn Quốc, Nhật Bản, Singapore, Thái Lan và nhiều quốc gia khác trên toàn cầu.

You can use the the web console to configure physical and virtual storage devices. This chapter provides instructions for these devices:

  • Mounted NFS
  • Logical Volumes
  • RAID
  • VDO

6.1. Prerequisites

  • The the web console has been installed. For details, see .

6.2. Managing NFS mounts in the web console

The the web console enables you to mount remote directories using the Network File System (NFS) protocol.

NFS makes it possible to reach and mount remote directories located on the network and work with the files as if the directory was located on your physical drive.

Prerequisites

  • NFS server name or IP address.
  • Path to the directory on the remote server.

6.2.1. Connecting NFS mounts in the web console

The following steps aim to help you with connecting a remote directory to your file system using NFS.

Prerequisites
  • NFS server name or IP address.
  • Path to the directory on the remote server.
Procedure
  1. Log in to the web console. For details, see .
  2. Click Storage.
  3. Click + in the NFS mounts section.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  4. In the New NFS Mount dialog box, enter the server or IP address of the remote server.
  5. In the Path on Server field, enter the path to the directory you want to mount.
  6. In the Local Mount Point field, enter the path where you want to find the directory in your local system.
  7. Select Mount at boot. This ensures that the directory will be reachable also after the restart of the local system.
  8. Optionally, select Mount read only if you do not want to change the content.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  9. Click Add.

At this point, you can open the mounted directory and verify that the content is accessible.

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

To troubleshoot the connection, you can adjust it with the .

6.2.2. Customizing NFS mount options in the web console

The following section provides you with information on how to edit an existing NFS mount and shows you where to add custom mount options.

Custom mount options can help you to troubleshoot the connection or change parameters of the NFS mount such as changing timeout limits or configuring authentication.

Prerequisites
  • NFS mount added.
Procedure
  1. Log in to the web console. For details, see .
  2. Click Storage.
  3. Click on the NFS mount you want to adjust.
  4. If the remote directory is mounted, click Unmount. The directory must not be mounted during the custom mount options configuration. Otherwise the web console does not save the configuration and this will cause an error.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  5. Click Edit.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  6. In the NFS Mount dialog box, select Custom mount option.
  7. Enter mount options separated by a comma. For example:
    • nfsvers=4 — the NFS protocol version number
    • soft — type of recovery after an NFS request times out
    • sec=krb5 — files on the NFS server can be secured by Kerberos authentication. Both the NFS client and server have to support Kerberos authentication.
      Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
      For a complete list of the NFS mount options, enter man nfs in the command line.
  8. Click Apply.
  9. Click Mount.

Now you can open the mounted directory and verify that the content is accessible.

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

6.3. Managing Redundant Arrays of Independent Disks in the web console

Redundant Arrays of Independent Disks (RAID) represents a way how to arrange more disks into one storage.

RAID protects data stored in the disks against disk failure with the following data distribution strategies:

  • Mirroring — data are copied to two different locations. If one disk fails, you have a copy and your data is not lost.
  • Striping — data are evenly distributed among disks.

Level of protection depends on the RAID level.

The RHEL web console supports the following RAID levels:

  • RAID 0 (Stripe)
  • RAID 1 (Mirror)
  • RAID 4 (Dedicated parity)
  • RAID 5 (Distributed parity)
  • RAID 6 (Double Distributed Parity)
  • RAID 10 (Stripe of Mirrors)

For more details, see RAID Levels and Linear Support.

Before you can use disks in RAID, you need to:

  • Create a RAID.
  • Format it with file system.
  • Mount the RAID to the server.

6.3.1. Prerequisites

  • The the web console is running and accessible. For details, see .

6.3.2. Creating RAID in the web console

This procedure aims to help you with configuring RAID in the web console.

Prerequisites
  • Physical disks connected to the system. Each RAID level requires different amount of disks.
Procedure
  1. Open the web console.
  2. Click Storage.
  3. Click the + icon in the RAID Devices box.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  4. In the Create RAID Device dialog box, enter a name for a new RAID.
  5. In the RAID Level drop-down list, select a level of RAID you want to use. For detailed description of RAID levels supported on the RHEL 7 system, see RAID Levels and Linear Support.
  6. In the Chunk Size drop-down list, leave the predefined value as it is. The Chunk Size value specifies how large is each block for data writing. If the chunk size is 512 KiB, the system writes the first 512 KiB to the first disk, the second 512 KiB is written to the second disk, and the third chunk will be written to the third disk. If you have three disks in your RAID, the fourth 512 KiB will be written to the first disk again.
  7. Select disks you want to use for RAID.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  8. Click Create.

In the Storage section, you can see the new RAID in the RAID devices box and format it.

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

Now you have the following options how to format and mount the new RAID in the web console:

6.3.3. Formatting RAID in the web console

This section describes formatting procedure of the new software RAID device which is created in the RHEL web interface.

Prerequisites
  • Physical disks are connected and visible by RHEL 7.
  • RAID is created.
  • Consider the file system which will be used for the RAID.
  • Consider creating of a partitioning table.
Procedure
  1. Open the RHEL web console.
  2. Click Storage.
  3. In the RAID devices box, choose the RAID you want to format by clicking on it.
  4. In the RAID details screen, scroll down to the Content part.
  5. Click to the newly created RAID.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  6. Click the Format button.
  7. In the Erase drop-down list, select:
    • Don’t overwrite existing data — the RHEL web console rewrites only the disk header. Advantage of this option is speed of formatting.
    • Overwrite existing data with zeros — the RHEL web console rewrites the whole disk with zeros. This option is slower because the program has to go through the whole disk. Use this option if the RAID includes any data and you need to rewrite it.
  8. In the Type drop-down list, select a XFS file system, if you do not have another strong preference.
  9. Enter a name of the file system.
  10. In the Mounting drop down list, select Custom. The Default option does not ensure that the file system will be mounted on the next boot.
  11. In the Mount Point field, add the mount path.
  12. Select Mount at boot.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  13. Click the Format button. Formatting can take several minutes depending on the used formatting options and size of RAID. After successful finish, you can see the details of the formatted RAID on the Filesystem tab.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  14. To use the RAID, click Mount.

At this point, the system uses mounted and formatted RAID.

6.3.4. Using the web console for creating a partition table on RAID

RAID requires formatting as any other storage device. You have two options:

  • Format the RAID device without partitions
  • Create a partition table with partitions

This section describes formatting RAID with the partition table on the new software RAID device created in the RHEL web interface.

Prerequisites
  • Physical disks are connected and visible by RHEL 7.
  • RAID is created.
  • Consider the file system used for the RAID.
  • Consider creating a partitioning table.
Procedure
  1. Open the RHEL web console.
  2. Click Storage.
  3. In the RAID devices box, select the RAID you want to edit.
  4. In the RAID details screen, scroll down to the Content part.
  5. Click to the newly created RAID.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  6. Click the Create partition table button.
  7. In the Erase drop-down list, select:
    • Don’t overwrite existing data — the RHEL web console rewrites only the disk header. Advantage of this option is speed of formatting.
    • Overwrite existing data with zeros — the RHEL web console rewrites the whole RAID with zeros. This option is slower because the program has to go through the whole RAID. Use this option if RAID includes any data and you need to rewrite it.
  8. In the Partitioning drop-down list, select:
    • Compatible with modern system and hard disks > 2TB (GPT) — GUID Partition Table is a modern recommended partitioning system for large RAIDs with more than four partitions.
    • Compatible with all systems and devices (MBR) — Master Boot Record works with disks up to 2 TB in size. MBR also support four primary partitions max.
      Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  9. Click Format.

At this point, the partitioning table has been created and you can create partitions.

For creating partitions, see .

6.3.5. Using the web console for creating partitions on RAID

This section describes creating a partition in the existing partition table.

Prerequisites
  • Partition table is created. For details, see .
Procedure
  1. Open the web console.
  2. Click Storage.
  3. In the RAID devices box, click to the RAID you want to edit.
  4. In the RAID details screen, scroll down to the Content part.
  5. Click to the newly created RAID.
  6. Click Create Partition.
  7. In the Create partition dialog box, set up the size of the first partition.
  8. In the Erase drop-down list, select:
    • Don’t overwrite existing data — the RHEL web console rewrites only the disk header. Advantage of this option is speed of formatting.
    • Overwrite existing data with zeros — the RHEL web console rewrites the whole RAID with zeros. This option is slower because the program have to go through the whole RAID. Use this option if RAID includes any data and you need to rewrite it.
  9. In the Type drop-down list, select a XFS file system, if you do not have another strong preference. For details about the XFS file system, see The XFS file system.
  10. Enter any name for the file system. Do not use spaces in the name.
  11. In the Mounting drop down list, select Custom. The Default option does not ensure that the file system will be mounted on the next boot.
  12. In the Mount Point field, add the mount path.
  13. Select Mount at boot.
  14. Click Create partition.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

Formatting can take several minutes depending on used formatting options and size of RAID.

After successful finish, you can continue with creating other partitions.

At this point, the system uses mounted and formatted RAID.

6.3.6. Using the web console for creating a volume group on top of RAID

This section shows you how to build a volume group from software RAID.

Prerequisites
  • RAID device, which is not formatted and mounted.
Procedure
  1. Open the RHEL web console.
  2. Click Storage.
  3. Click the + icon in the Volume Groups box.
  4. In the Create Volume Group dialog box, enter a name for the new volume group.
  5. In the Disks list, select a RAID device. If you do not see the RAID in the list, unmount the RAID from the system. The RAID device must not be used by the RHEL system.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  6. Click Create.

The new volume group has been created and you can continue with creating a logical volume.

For details, see .

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

6.4. Using the web console for configuring LVM logical volumes

Red Hat Enterprise Linux 7 supports the LVM logical volume manager. When you install a Red Hat Enterprise Linux 7, it will be installed on LVM automatically created during the installation.

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

The screenshot shows you a clean installation of the RHEL system with two logical volumes in the the web console automatically created during the installation.

To find out more about logical volumes, follow the sections describing:

6.4.1. Prerequisites

  • Physical drives, RAID devices, or any other type of block device from which you can create the logical volume.

6.4.2. Logical Volume Manager in the web console

The web console provides a graphical interface to create LVM volume groups and logical volumes.

Volume groups create a layer between physical and logical volumes. It makes you possible to add or remove physical volumes without influencing logical volume itself. Volume groups appear as one drive with capacity consisting of capacities of all physical drives included in the group.

You can join physical drives into volume groups in the web console.

Logical volumes act as a single physical drive and it is built on top of a volume group in your system.

Main advantages of logical volumes are:

  • Better flexibility than the partitioning system used on your physical drive.
  • Ability to connect more physical drives into one volume.
  • Possibility of expanding (growing) or reducing (shrinking) capacity of the volume on-line, without restart.
  • Ability to create snapshots.
Additional resources
  • For details, see Logical volume manager administration.

6.4.3. Creating volume groups in the web console

The following describes creating volume groups from one or more physical drives or other storage devices. Logical volumes are created from volume groups.

Each volume group can include multiple logical volumes.

For details, see Volume groups.

Prerequisites
  • Physical drives or other types of storage devices from which you want to create volume groups.
Procedure
  1. Log in to the web console.
  2. Click Storage.
  3. Click the + icon in the Volume Groups box.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  4. In the Name field, enter a name of a group without spaces.
  5. Select the drives you want to combine to create the volume group.

    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
    It might happen that you cannot see devices as you expected. The RHEL web console displays only unused block devices. Used devices means, for example:

    • Devices formatted with a file system
    • Physical volumes in another volume group
    • Physical volumes being a member of another software RAID device
      If you do not see the device, format it to be empty and unused.
  6. Click Create.

The web console adds the volume group in the Volume Groups section. After clicking the group, you can create logical volumes that are allocated from that volume group.

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

6.4.4. Creating logical volumes in the web console

The following steps describe how to create LVM logical volumes.

Prerequisites
  • Volume group created. For details, see .
Procedure
  1. Log in to the web console.
  2. Click Storage.
  3. Click the volume group in which you want to create logical volumes.
  4. Click Create new Logical Volume.
  5. In the Name field, enter a name for the new logical volume without spaces.
  6. In the Purpose drop down menu, select Block device for filesystems. This configuration enables you to create a logical volume with the maximum volume size which is equal to the sum of the capacities of all drives included in the volume group.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  7. Define the size of the logical volume. Consider:
    • How much space the system using this logical volume will need.
    • How many logical volumes you want to create. You do not have to use the whole space. If necessary, you can grow the logical volume later.
      Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  8. Click Create.

To verify the settings, click your logical volume and check the details.

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

At this stage, the logical volume has been created and you need to create and mount a file system with the formatting process.

6.4.5. Formatting logical volumes in the web console

Logical volumes act as physical drives. To use them, you need to format them with a file system.

Formatting logical volumes will erase all data on the volume.

The file system you select determines the configuration parameters you can use for logical volumes. For example, some the XFS file system does not support shrinking volumes. For details, see .

The following steps describe the procedure to format logical volumes.

Prerequisites
  • Logical volume created. For details, see .
Procedure
  1. Log in to the RHEL web console.
  2. Click Storage.
  3. Click the volume group in which the logical volume is placed.
  4. Click the logical volume.
  5. Click on the Unrecognized Data tab.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  6. Click Format.
  7. In the Erase drop down menu, select:
    • Don’t overwrite existing data — the RHEL web console rewrites only the disk header. Advantage of this option is speed of formatting.
    • Overwrite existing data with zeros — the RHEL web console rewrites the whole disk with zeros. This option is slower because the program have to go through the whole disk. Use this option if the disk includes any data and you need to overwrite it.
  8. In the Type drop down menu, select a file system:
    • XFS file system supports large logical volumes, switching physical drives online without outage, and growing an existing file system. Leave this file system selected if you do not have a different strong preference.
      XFS does not support reducing the size of a volume formatted with an XFS file system  
    • ext4 file system supports:
      • Logical volumes
      • Switching physical drives online without outage
      • Growing a file system
      • Shrinking a file system You can also select a version with the LUKS (Linux Unified Key Setup) encryption, which allows you to encrypt the volume with a passphrase.
  9. In the Name field, enter the logical volume name.
  10. In the Mounting drop down menu, select Custom. The Default option does not ensure that the file system will be mounted on the next boot.
  11. In the Mount Point field, add the mount path.
  12. Select Mount at boot.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  13. Click Format. Formatting can take several minutes depending on the volume size and which formatting options are selected. after the formatting has completed successfully, you can see the details of the formatted logical volume on the Filesystem tab.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  14. To use the logical volume, click Mount.

At this point, the system can use mounted and formatted logical volume.

6.4.6. Resizing logical volumes in the web console

This section describes how to resize logical volumes. You can extend or even reduce logical volumes. Whether you can resize a logical volume depends on which file system you are using. Most file systems enable you to extend (grow) the volume online (without outage).

You can also reduce (shrink) the size of logical volumes, if the logical volume contains a file system which supports shrinking. It should be available, for example, in the ext3/ext4 file systems.

You cannot reduce volumes that contains GFS2 or XFS filesystem.

Prerequisites
  • Existing logical volume containing a file system which supports resizing logical volumes.
Procedure

The following steps provide the procedure for growing a logical volume without taking the volume offline:

  1. Log in to the RHEL web console.
  2. Click Storage.
  3. Click the volume group in which the logical volume is placed.
  4. Click the logical volume.
  5. On the Volume tab, click Grow.
  6. In the Grow Logical Volume dialog box, adjust volume space.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  7. Click Grow.

LVM grows the logical volume without system outage.

6.5. Using the web console for configuring thin logical volumes

Thinly-provisioned logical volumes enables you to allocate more space for designated applications or servers than how much space logical volumes actually contain.

For details, see .

The following sections describe:

6.5.1. Prerequisites

  • Physical drives or other types of storage devices from which you want to create volume groups.

6.5.2. Creating pools for thin logical volumes in the web console

The following steps show you how to create a pool for thinly provisioned volumes:

Prerequisites
  • .
Procedure
  1. Log in to the web console.
  2. Click Storage.
  3. Click the volume group in which you want to create thin volumes.
  4. Click Create new Logical Volume.
  5. In the Name field, enter a name for the new pool of thin volumes without spaces.
  6. In the Purpose drop down menu, select Pool for thinly provisioned volumes. This configuration enables you to create the thin volume.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  7. Define the size of the pool of thin volumes. Consider:
    • How many thin volumes you will need in this pool?
    • What is the expected size of each thin volume? You do not have to use the whole space. If necessary, you can grow the pool later.
      Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  8. Click Create. The pool for thin volumes has been created and you can add thin volumes.

6.5.3. Creating thin logical volumes in the web console

The following text describes creating a thin logical volume in the pool. The pool can include multiple thin volumes and each thin volume can be as large as the pool for thin volumes itself.

Using thin volumes requires regular checkup of actual free physical space of the logical volume.

Prerequisites
  • Pool for thin volumes created. For details, see .
Procedure
  1. Log in to the web console.
  2. Click Storage.
  3. Click the volume group in which you want to create thin volumes.
  4. Click the desired pool.
  5. Click Create Thin Volume.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  6. In the Create Thin Volume dialog box, enter a name for the thin volume without spaces.
  7. Define the size of the thin volume.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  8. Click Create.

At this stage, the thin logical volume has been created and you need to format it.

6.5.4. Formatting logical volumes in the web console

Logical volumes act as physical drives. To use them, you need to format them with a file system.

Formatting logical volumes will erase all data on the volume.

The file system you select determines the configuration parameters you can use for logical volumes. For example, some the XFS file system does not support shrinking volumes. For details, see .

The following steps describe the procedure to format logical volumes.

Prerequisites
  • Logical volume created. For details, see .
Procedure
  1. Log in to the RHEL web console.
  2. Click Storage.
  3. Click the volume group in which the logical volume is placed.
  4. Click the logical volume.
  5. Click on the Unrecognized Data tab.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  6. Click Format.
  7. In the Erase drop down menu, select:
    • Don’t overwrite existing data — the RHEL web console rewrites only the disk header. Advantage of this option is speed of formatting.
    • Overwrite existing data with zeros — the RHEL web console rewrites the whole disk with zeros. This option is slower because the program have to go through the whole disk. Use this option if the disk includes any data and you need to overwrite it.
  8. In the Type drop down menu, select a file system:
    • XFS file system supports large logical volumes, switching physical drives online without outage, and growing an existing file system. Leave this file system selected if you do not have a different strong preference.
      XFS does not support reducing the size of a volume formatted with an XFS file system  
    • ext4 file system supports:
      • Logical volumes
      • Switching physical drives online without outage
      • Growing a file system
      • Shrinking a file system You can also select a version with the LUKS (Linux Unified Key Setup) encryption, which allows you to encrypt the volume with a passphrase.
  9. In the Name field, enter the logical volume name.
  10. In the Mounting drop down menu, select Custom. The Default option does not ensure that the file system will be mounted on the next boot.
  11. In the Mount Point field, add the mount path.
  12. Select Mount at boot.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  13. Click Format. Formatting can take several minutes depending on the volume size and which formatting options are selected. after the formatting has completed successfully, you can see the details of the formatted logical volume on the Filesystem tab.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  14. To use the logical volume, click Mount.

At this point, the system can use mounted and formatted logical volume.

6.6. Using the web console for changing physical drives in volume groups

The following text describes how to change the drive in a volume group using the the web console.

The change of physical drives consists of the following procedures:

6.6.1. Prerequisites

  • A new physical drive for replacing the old or broken one.
  • The configuration expects that physical drives are organized in a volume group.

6.6.2. Adding physical drives to volume groups in the web console

The web console enables you to add a new physical drive or other type of volume to the existing logical volume.

Prerequisites
  • A volume group must be created.
  • A new drive connected to the machine.
Procedure
  1. Log in to the web console.
  2. Click Storage.
  3. In the Volume Groups box, click the volume group in which you want to add a physical volume.
  4. In the Physical Volumes box, click the + icon.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  5. In the Add Disks dialog box, select the preferred drive and click Add.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

As a result, the web console adds the physical volume. You can see it in the Physical Volumes section, and the logical volume can immediately start to write on the drive.

6.6.3. Removing physical drives from volume groups in the web console

If a logical volume includes multiple physical drives, you can remove one of the physical drives online.

The system moves automatically all data from the drive to be removed to other drives during the removal process. Notice that it can take some time.

The web console also verifies, if there is enough space for removing the physical drive.

Prerequisites
  • A volume group with more than one physical drive connected.
Procedure

The following steps describe how to remove a drive from the volume group without causing outage in the RHEL web console.

  1. Log in to the RHEL web console.
  2. Click Storage.
  3. Click the volume group in which you have the logical volume.
  4. In the Physical Volumes section, locate the preferred volume.
  5. Click the - icon. The RHEL web console verifies, if the logical volume has enough free space for removing the disk. If not, you cannot remove the disk and it is necessary to add another disk first. For details, see .
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

As results, the RHEL web console removes the physical volume from the created logical volume without causing an outage.

6.7. Using the web console for managing Virtual Data Optimizer volumes

This chapter describes the Virtual Data Optimizer (VDO) configuration using the the web console. After reading it, you will be able to:

  • Create VDO volumes
  • Format VDO volumes
  • Extend VDO volumes

6.7.1. Prerequisites

  • The the web console is installed and accessible. For details, see .

6.7.2. VDO volumes in the web console

Red Hat Enterprise Linux 7 supports Virtual Data Optimizer (VDO). VDO is a block virtualization technology that combines:

Using these technologies, VDO:

  • Saves storage space inline
  • Compresses files
  • Eliminates duplications
  • Enables you to allocate more virtual space than how much the physical or logical storage provides
  • Enables you to extend the virtual storage by growing

VDO can be created on top of many types of storage. In the web console, you can configure VDO on top of:

  • LVM It is not possible to configure VDO on top of thinly-provisioned volumes.
  • Physical volume
  • Software RAID

For details about placement of VDO in the Storage Stack, see System Requirements.

Additional resources
  • For details about VDO, see Deduplication and compression with VDO.

6.7.3. Creating VDO volumes in the web console

This section helps you to create a VDO volume in the RHEL web console.

Prerequisites
  • Physical drives, LVMs, or RAID from which you want to create VDO.
Procedure
  1. Log in to the web console. For details, see .
  2. Click Storage.
  3. Click the + icon in the VDO Devices box.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  4. In the Name field, enter a name of a VDO volume without spaces.
  5. Select the drive that you want to use.
  6. In the Logical Size bar, set up the size of the VDO volume. You can extend it more than ten times, but consider for what purpose you are creating the VDO volume:
    • For active VMs or container storage, use logical size that is ten times the physical size of the volume.
    • For object storage, use logical size that is three times the physical size of the volume. For details, see Getting started with VDO.
  7. In the Index Memory bar, allocate memory for the VDO volume. For details about VDO system requirements, see System Requirements.
  8. Select the Compression option. This option can efficiently reduce various file formats. For details, see .
  9. Select the Deduplication option. This option reduces the consumption of storage resources by eliminating multiple copies of duplicate blocks. For details, see .
  10. [Optional] If you want to use the VDO volume with applications that need a 512 bytes block size, select Use 512 Byte emulation. This reduces the performance of the VDO volume, but should be very rarely needed. If in doubt, leave it off.
  11. Click Create.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

If the process of creating the VDO volume succeeds, you can see the new VDO volume in the Storage section and format it with a file system.

Hướng dẫn cài đặt redhat enterprise linux 7 dung raid

6.7.4. Formatting VDO volumes in the web console

VDO volumes act as physical drives. To use them, you need to format them with a file system.

Formatting VDO will erase all data on the volume.

The following steps describe the procedure to format VDO volumes.

Prerequisites
  • A VDO volume is created. For details, see .
Procedure
  1. Log in to the web console. For details, see .
  2. Click Storage.
  3. Click the VDO volume.
  4. Click on the Unrecognized Data tab.
  5. Click Format.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  6. In the Erase drop down menu, select: Don’t overwrite existing data The RHEL web console rewrites only the disk header. The advantage of this option is the speed of formatting.Overwrite existing data with zeros The RHEL web console rewrites the whole disk with zeros. This option is slower because the program has to go through the whole disk. Use this option if the disk includes any data and you need to rewrite them.
  7. In the Type drop down menu, select a filesystem:
    • The XFS file system supports large logical volumes, switching physical drives online without outage, and growing. Leave this file system selected if you do not have a different strong preference.
      XFS does not support shrinking volumes. Therefore, you will not be able to reduce volume formatted with XFS.  
    • The ext4 file system supports logical volumes, switching physical drives online without outage, growing, and shrinking. You can also select a version with the LUKS (Linux Unified Key Setup) encryption, which allows you to encrypt the volume with a passphrase.
  8. In the Name field, enter the logical volume name.
  9. In the Mounting drop down menu, select Custom. The Default option does not ensure that the file system will be mounted on the next boot.
  10. In the Mount Point field, add the mount path.
  11. Select Mount at boot.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  12. Click Format. Formatting can take several minutes depending on the used formatting options and the volume size. After a successful finish, you can see the details of the formatted VDO volume on the Filesystem tab.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  13. To use the VDO volume, click Mount.

At this point, the system uses the mounted and formatted VDO volume.

6.7.5. Extending VDO volumes in the web console

This section describes extending VDO volumes in the web console.

Prerequisites
  • The VDO volume created.
Procedure
  1. Log in to the web console. For details, see .
  2. Click Storage.
  3. Click your VDO volume in the VDO Devices box.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
  4. In the VDO volume details, click the Grow button.
  5. In the Grow logical size of VDO dialog box, extend the logical size of the VDO volume.
    Hướng dẫn cài đặt redhat enterprise linux 7 dung raid
    Original size of the logical volume from the screenshot was 6 GB. As you can see, the RHEL web console enables you to grow the volume to more than ten times the size and it works correctly because of the compression and deduplication.
  6. Click Grow.

If the process of growing VDO succeeds, you can see the new size in the VDO volume details.