Use lvm Logical Volumes in Linux to create a file system

Source: Internet
Author: User
The following is only the installation record 1. create lv [root @ Linux ~] # Lvcreate-L20480VolGroup_ID_25519-nlvdbraLogicalvolumelvdbracreated2, create mount point [root @ Linux ~] # Mkdir/dbra3. if the file is directly mounted or mounted in ext3 format, the following error occurs: [root @ Linux ~] # Mou

The following is only the installation record
1. create an lv


[Root @ Linux ~] # Lvcreate-L 20480 VolGroup_ID_25519-n lvdbra
Logical volume "lvdbra" created


2. create a mount point


[Root @ Linux ~] # Mkdir/dbra


3. an error is reported when mounting directly or mounting in ext3 format.


[Root @ Linux ~] # Mount/dev/VolGroup_ID_25519/lvdbra/dbra
Mount: you must specify the filesystem type
[Root @ Linux ~] # Mount-t ext3/dev/VolGroup_ID_25519/lvdbra/dbra
Mount: wrong fs type, bad option, bad superblock on/dev/VolGroup_ID_25519/lvdbra,
Missing codepage or othererror
In some cases useful info isfound in syslog-try
Dmesg | tail or so



4. use the ext3 file system format lv


[Root @ Linux ~] # Mkfs. ext3-L lvdbra/dev/VolGroup_ID_25519/lvdbra
Mke2fs 1.39 (29-may-2006)
Filesystem label = lvdbra
OS type: Linux
Block size = 4096 (log = 2)
Fragment size = 4096 (log = 2)
2621440 inodes, 5242880 blocks
262144 blocks (5.00%) reserved for the super user
First data block = 0
Maximum filesystem blocks = 4294967296
160 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768,983 04, 163840,229376, 294912,819 200, 884736,160 5632, 2654208,
4096000


Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:
Done

This filesystem will be automatically checked every 23 mountsor
180 days, whichever comes first. Use tune2fs-c or-I tooverride.


5. mount points



[Root @ Linux ~] # Mount/dev/VolGroup_ID_25519/lvdbra/dbra


6. add entries in/etc/fstab and start it with the system


/Dev/VolGroup_ID_25519/lvdbra/dbra ext3 defaults 1 2


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.