亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2302 | 回復(fù): 0
打印 上一主題 下一主題

How To Create Linux LVM In 3 Minutes [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2009-07-16 10:17 |只看該作者 |倒序?yàn)g覽

                轉(zhuǎn)載自:http://www.walkernews.net/2007/07/02/how-to-create-linux-lvm-in-3-minutes/

How To Create Linux LVM In 3 Minutes
          Copyright ©
Walker
02 Jul 2007 23:22
   
      What’s LVM? Why using Linux Logical Volume Manager or LVM?
These questions are not the scope here. But in brief, the most
attractive feature of Logical Volume Manager is to make disk management
easier in Linux! Basically, LVM allows users to dynamically extend or
shrink Linux “partition” or file system in online mode! The
LVM can resize volume groups (VG) online
by adding new physical volumes (PV) or rejecting those existing PVs attached to VG.

A visualized concept diagram of the Linux Logical Volume Manager or LVM
In this 3-minutes Linux LVM guide, let’s assume that
  • The LVM is not currently configured or in used. Having say that,
    this is the LVM tutorial if you’re going to setup LVM from the ground
    up on a production Linux server with a new
    SATA
    / SCSI hard disk.
  • Without a luxury server hardware, I tested this LVM tutorial on PC
    with the secondary hard disk dedicated for LVM setup. So, the Linux dev
    file of secondary IDE hard disk will be /dev/hdb (or /dev/sdb for SCSI
    hard disk).
  • This guide is fully tested in Red Hat Enterprise Linux 4 with
    Logical Volume Manager 2 (LVM2) run-time environment (LVM version
    2.00.31 2004-12-12, Library version 1.00.19-ioctl 2004-07-03, Driver
    version 4.1.0)!

How to setup Linux LVM in 3 minutes at command line?
  • Login with root user ID and try to avoid
    using sudo command
    for simplicity reason.
  • Using the whole secondary hard disk for LVM partition:
    fdisk /dev/hdb
    At the Linux fdisk command prompt,
  • press n to create a new disk partition,
  • press p to create a primary disk partition,
  • press 1 to denote it as 1st disk partition,
  • press ENTER twice to accept the default of 1st and last cylinder – to convert the whole secondary hard disk to a single disk partition,
  • press t (will automatically select the only partition
    – partition 1) to change the default Linux partition type (0×83) to LVM
    partition type (0×8e),
  • press L to list all the currently supported partition type,
  • press 8e (as per the L listing) to change partition 1 to 8e, i.e. Linux LVM partition type,
  • press p to display the secondary hard disk partition setup. Please take note that the first partition is denoted as /dev/hdb1 in Linux,
  • press w to write the partition table and exit fdisk upon completion.
  • Next, this LVM command will create a LVM physical volume (PV) on a regular hard disk or partition:
    pvcreate /dev/hdb1
  • Now, another LVM command to create a LVM volume group (VG) called vg0 with a physical extent size (PE size) of 16MB:
    vgcreate -s 16M vg0 /dev/hdb1
    Be
    properly planning ahead of PE size before creating a volume group with vgcreate -s
    option!

  • Create a 400MB logical volume (LV) called lvol0 on volume group vg0:
    lvcreate -L 400M -n lvol0 vg0
    This lvcreate command will create a softlink /dev/vg0/lvol0 point
    to a correspondence block device file called /dev/mapper/vg0-lvol0.
  • The Linux LVM setup is almost done. Now is the time to format
    logical volume lvol0 to create a Red Hat Linux supported file system,
    i.e. EXT3 file system, with 1%
    reserved block count
    :
    mkfs -t ext3 -m 1 -v /dev/vg0/lvol0
  • Create a mount point before mounting the new EXT3 file system:
    mkdir /mnt/vfs
  • The last step of this LVM tutorial – mount the new EXT3 file system
    created on logical volume lvol0 of LVM to /mnt/vfs mount point:
    mount -t ext3 /dev/vg0/lvol0 /mnt/vfs
    To confirm the LVM setup has been completed successfully, the df -h command should display these similar message:
    /dev/mapper/vg0-lvol0 388M   11M  374M   3% /mnt/vfs
                   
                   
                   
                   
                   

    本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u/17006/showart_1997723.html
  • 您需要登錄后才可以回帖 登錄 | 注冊

    本版積分規(guī)則 發(fā)表回復(fù)

      

    北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年舉報(bào)專區(qū)
    中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
    感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP