Linux course _ Storage Management

Source: Internet
Author: User
1. use vmware and other tools to add a hard disk (1 GB) to the system and create partitions as follows: two primary partitions and three logical partitions. The size of all five partitions is 200.

1. use vmware and other tools to add a hard disk (1 GB) to the system and create partitions as follows: two primary partitions and three logical partitions. The size of the five partitions is 200 MB. Format the five partitions. the partition type of the last partition is set to FAT32, and the other partition types are set to Linux.

1. first add a 1 GB hard disk to the system using the VM


2. use fdisk? L command to list the number and basic information of the system disk. highlight the disk. hdb is the newly added 1g hard disk.


3. use the fdisk/dev/hdb command to partition the disk.



4. enter 'N' to add the first partition.


5. add the second primary partition


6. add an extended partition


7. enter 'P' to list the partition tables we just partitioned.


8. input 'n' again, and we will find that the option of extended partition is gone, which is changed to the option of logical partition. This is because at most one partition can be extended during partitioning.

Enter 'L' to add a logical partition. VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20140408/20140408090550112.jpg" alt = "\">

9. Similarly, add another two logical partitions.


10. enter 'P' to view the partition information.


11. set the partition type of the last partition to FAT32. enter 'I to list the partition types.


12. enter 'T' to modify the hdb7 partition type.


13. Enter 'w' to write the partition table to the hard disk and exit. enter fdisk? L command to list the number and basic information of the system disk


14. run the mkfs command to format hdb1, hdb2, hdb5, hdb6, and hdb7 respectively.

Save formatting for other partitions

2. create an ordinary user abc1 (abc represents your name in pinyin ). Implement disk quota allocation for this user. The user's soft quota of abc1 is 5 M, the hard quota is 7 M, and the number of available index files is 5. Verify that quota management is effective after configuration, that is, to verify that users are allowed to use ultra-large hard disk space and index nodes.

1. create a user, jerry1


2. use the vi editing tool to edit the/etc/fstab file and add the command option usrquota on the highlighted line.


3. restart the system and re-mount the file system in RHEL Server 5 according to the modified/etc/fstab file. after the restart, log on to the system as root.

Use quotacheck? Run the avu command to create aquota. user. in this case, go to the/home directory and check whether the system creates the user-level configuration management file aquto. user.


4. use the edquota command to edit the quota. user file, configure user jerry1, and modify highlighted data.


5. use quotaon? Avu command to start quota management


6. test the user quota. Log on with jerry1 and copy the file to/home/jerry1. When only the soft quota is exceeded,

The screen prompts highlighted information, but the file can still be saved.


7. if you continue copying files, the system automatically terminates the copy process when the hard quota is exceeded.

3. use vmware and other tools to add two hard disks to the system (the size is set by yourself) and set two primary partitions for the two hard disks respectively. Create a volume group vg0 and vg1. vg0 uses the first partition of the two hard disks as the physical volume, and vg1 uses the second partition of the two hard disks as the physical volume. Create logical volume data for vg0. The size is 100 MB. Finally, transfer one of the physical volumes in vg1 to vg0.

1. add a hard disk and partition. refer to the first question. After partitioning is complete, use fdisk? L confirm


2. create a volume group vg0 and vg1. In vg0, the first partition of the two hard disks is the physical volume, and in vg1, the second partition of the two hard disks is the physical volume.



3. create logical volume data for vg0. The size is 100 MB.


4. finally, transfer one of the physical volumes in vg1 to vg0.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.