本篇文章為大家展示了HP-UNIX如何創(chuàng)建文件系統(tǒng),內(nèi)容簡(jiǎn)明扼要并且容易理解,絕對(duì)能使你眼前一亮,通過(guò)這篇文章的詳細(xì)介紹希望你能有所收獲。
十多年的金灣網(wǎng)站建設(shè)經(jīng)驗(yàn),針對(duì)設(shè)計(jì)、前端、開(kāi)發(fā)、售后、文案、推廣等六對(duì)一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。成都營(yíng)銷網(wǎng)站建設(shè)的優(yōu)勢(shì)是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整金灣建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無(wú)論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。創(chuàng)新互聯(lián)從事“金灣網(wǎng)站設(shè)計(jì)”,“金灣網(wǎng)站推廣”以來(lái),每個(gè)客戶項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。
HP-UNIX 創(chuàng)建文件系統(tǒng)
1.系統(tǒng)環(huán)境
# uname -a
HP-UX callcdb2 B.11.31 U ia64
2.查看VG組
# ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Jun 9 12:13 /dev/vg00/group
3.創(chuàng)建物理卷
# pvcreate /dev/rdisk/disk162
Physical volume "/dev/rdisk/disk162" has been successfully created.
4.創(chuàng)建VG
4-1.創(chuàng)建VG組名
# mkdir /dev/vg_cdc
# ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Jun 9 12:13 /dev/vg00/group
4-2.給與VG組唯一的0x010000
# mknod /dev/vg_cdc/group c 64 0x010000
# ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Jun 9 12:13 /dev/vg00/group
crw-r--r-- 1 root sys 64 0x010000 Aug 18 14:19 /dev/vg_cdc/group
4-3.創(chuàng)建VG組并寫入配置文件
# vgcreate -s 32 /dev/vg_cdc /dev/disk/disk162
Increased the number of physical extents per physical volume to 1599.
Volume group "/dev/vg_cdc" has been successfully created.
Volume Group configuration for /dev/vg_cdc has been saved in /etc/lvmconf/vg_cdc.conf
5.創(chuàng)建LV并指定LV大小
# lvcreate -L 40000 -n lv_cdc vg_cdc
Logical volume "/dev/vg_cdc/lv_cdc" has been successfully created with
character device "/dev/vg_cdc/rlv_cdc".
Logical volume "/dev/vg_cdc/lv_cdc" has been successfully extended.
Volume Group configuration for /dev/vg_cdc has been saved in /etc/lvmconf/vg_cdc.conf
6.格式化
# newfs -F vxfs -o largefiles /dev/vg_cdc/rlv_cdc
version 7 layout
40960000 sectors, 40960000 blocks of size 1024, log size 65536 blocks
largefiles supported
7.創(chuàng)建掛載點(diǎn)
# mkdir /cdc
8.掛載
# mount /dev/vg_cdc/lv_cdc /cdc
附表
1.vgexport vg_cdc --刪除VG卷組
2.pvcreate -f /dev/rdisk/disk162 --如果重新創(chuàng)建VG卷組的時(shí)候加F參數(shù)
3.vgchange -a n(y) vg_cdc --停止或者激活邏輯卷組。
換SAS卡、重啟后出現(xiàn)此問(wèn)題。重新激活邏輯卷組即可
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg_cdc".
解決方法:vgchange -a y /dev/vg_cdc
上述內(nèi)容就是HP-UNIX如何創(chuàng)建文件系統(tǒng),你們學(xué)到知識(shí)或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識(shí)儲(chǔ)備,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。