欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Linux下如何添加磁盤(pán)創(chuàng)建LVM-創(chuàng)新互聯(lián)

這篇文章給大家分享的是有關(guān)Linux下如何添加磁盤(pán)創(chuàng)建LVM的內(nèi)容。小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過(guò)來(lái)看看吧。

青羊ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書(shū)未來(lái)市場(chǎng)廣闊!成為成都創(chuàng)新互聯(lián)的ssl證書(shū)銷(xiāo)售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話(huà)聯(lián)系或者加微信:028-86922220(備注:SSL證書(shū)合作)期待與您的合作!

shell> fdisk /dev/xvdb    #### 選擇磁盤(pán)
Command (m for help): m    #### 幫助
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)
Command (m for help): n    #### 創(chuàng)建新的分區(qū)
Command action
   e   extended
   p   primary partition (1-4)
p    #### 創(chuàng)建主分區(qū)
Partition number (1-4):1     #### 分區(qū)ID
First cylinder (1-65270, default 1): 
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-65270, default 65270): 
Using default value 65270


Command (m for help):t   #### 修改分區(qū)類(lèi)型
Command (m for help):8e    #### Linux lvm
Command (m for help):w      #### 保存修改
shell> pvcreate /dev/xvdb1/    #### 創(chuàng)建新的pv卷
shell> pvs    #### 查看pv卷
shell> vgcreate VolGroup01 /dev/xvdb1/   #### 創(chuàng)建新的vg卷
shell> vgs   #### 查看vg卷
shell> lvcreate -L 50G -n lvmServer    VolGroup01     #### 創(chuàng)建邏輯卷 -L 指定分區(qū)大小 -n 指定lvm名稱(chēng)
shell> mkfs.ext4 /dev/VolGroup01/lvmServer           #### 使用mkfs.ext4命令在邏輯卷lvmServer上創(chuàng)建ext4文件系統(tǒng)
shell> mount /dev/VolGroup01/lvmServer /server/      #### 掛在分區(qū)到本地目錄/server
shell> vi /etc/fstab     #### 修改fstab 開(kāi)機(jī)自動(dòng)掛載
#
# /etc/fstab
# Created by anaconda on Thu Aug 14 21:16:42 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=94e4e384-0ace-437f-bc96-057dd64f42ee / ext4 defaults,barrier=0 1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup01/lvmServer       /server         ext4    defaults        0 0
:wq
#### 保存重啟測(cè)試 
注意:
* fstab一定要正確填寫(xiě)路徑,一旦出錯(cuò),可能無(wú)法正常啟動(dòng).
* 可以在rc.local使用mount命令進(jìn)行掛載

感謝各位的閱讀!關(guān)于“Linux下如何添加磁盤(pán)創(chuàng)建LVM”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!

網(wǎng)頁(yè)標(biāo)題:Linux下如何添加磁盤(pán)創(chuàng)建LVM-創(chuàng)新互聯(lián)
網(wǎng)站URL:http://www.chinadenli.net/article14/ccpdde.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作移動(dòng)網(wǎng)站建設(shè)網(wǎng)站內(nèi)鏈電子商務(wù)網(wǎng)站營(yíng)銷(xiāo)全網(wǎng)營(yíng)銷(xiāo)推廣

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

營(yíng)銷(xiāo)型網(wǎng)站建設(shè)