Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use redhat Linux logical Volume Manager

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Redhat Linux logical volume manager how to use, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

The application of Linux operating system, Linux operating system has a lot to learn, here we mainly introduce how to use logical volume manager to create a logical volume after redhat Linux installation. I hope you can master how to use logical volume manager after redhat Linux installation.

LVM can be created during operating system installation, but sometimes it needs to be created after installation.

You can refer to the following steps to create a logical volume after installation: for example, suppose there are three available disk partitions / dev/sda3,/dev/sdb1 and / dev/hda2. You need to create a LVM volume group named test_vg.

1. When using fdisk partition, change the partition type of these three partitions to ox8e. LVM partition, check pvcreate (8) (man 8 pvcreate).

2.pvcreate / dev/sda3 / dev/sdb1 / dev/hda2 3.

Vgcreate test_vg / dev/sda3 / dev/sdb1 / dev/hda2

After the volume group test_vg is online, logical volumes can be created. For example, create a logical volume for 100MB, whose standard name is / dev/test_vg/lvol1, and a my_test_lv with three physical volumes 200MB.

1.lvcreate-L 100 test_vg2.

Lvcreate-L 200-n my_test_lv-I 3 test_vg

Note: the command lvcreate-L 100 test_vg creates a logical volume with the 100MB name / dev/test_vg/lvol1. The command lvcreate-L 200-n my_test_lv-I 3 test_vg creates a logical volume named my_test_lv (enable-n). The-I option refers to the number of physical volumes on which the stripe resides, in case 3 in this case.

Create a file system in the array. For example, create an ext2 text system in my_test_lv:

Mkfs-t ext2 / dev/test_vg/my_test_lv

You can mount LV with the following command:

Mount / dev/test_vg/my_test_lv / usr1

To create a LV in the bootstrapper, add the appropriate entry in the file / etc/fstab. Above you have learned how to create a logical volume using the logical Volume Manager after redhat Linux installation.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report