HP-UNIX 建立檔案系統
HP-UNIX 建立檔案系統
1.系統環境
# 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.建立物理卷
# pvcreate /dev/rdisk/disk162
Physical volume "/dev/rdisk/disk162" has been successfully created.
4.建立VG
4-1.建立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.建立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.建立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.建立掛載點
# mkdir /cdc
8.掛載
# mount /dev/vg_cdc/lv_cdc /cdc
# 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.建立物理卷
# pvcreate /dev/rdisk/disk162
Physical volume "/dev/rdisk/disk162" has been successfully created.
4.建立VG
4-1.建立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.建立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.建立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.建立掛載點
# mkdir /cdc
8.掛載
# mount /dev/vg_cdc/lv_cdc /cdc
附表
1.vgexport vg_cdc --刪除VG卷組
2.pvcreate -f /dev/rdisk/disk162 --如果重新建立VG卷組的時候加F引數
3.vgchange -a n(y) vg_cdc --停止或者啟用邏輯卷組。
換SAS卡、重啟後出現此問題。重新啟用邏輯卷組即可
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg_cdc".
解決方法:vgchange -a y /dev/vg_cdc
1.vgexport vg_cdc --刪除VG卷組
2.pvcreate -f /dev/rdisk/disk162 --如果重新建立VG卷組的時候加F引數
3.vgchange -a n(y) vg_cdc --停止或者啟用邏輯卷組。
換SAS卡、重啟後出現此問題。重新啟用邏輯卷組即可
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg_cdc".
解決方法:vgchange -a y /dev/vg_cdc
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25462274/viewspace-2156408/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- HP-UNIX下建立檔案系統
- 【Solaris】Solaris檔案系統管理1 UFS檔案系統的建立
- 【Solaris】Solaris檔案系統管理3 ZFS檔案系統的建立
- 何在Mac系統上建立大檔案?教你在Mac系統建立大檔案的方法Mac
- AIX 建立檔案系統步驟AI
- FreeBSD建立檔案系統(轉)
- aix上用smit建立檔案系統AIMIT
- Linux 建立檔案系統及掛載檔案系統詳解一薦Linux
- [轉]HP-UX下建立檔案系統UX
- Linux系統中建立檔案常用的方法!Linux
- 【LINUX】磁碟格式化 建立檔案系統Linux
- hp-unix作業系統 日誌作業系統
- HP-UNIX 系統日誌 查詢
- 關於檔案系統在建立目錄檔案和普通檔案時的區別
- AIX 系統建立邏輯卷、新增檔案系統並掛載使用AI
- qt-5.6.0 移植之qt檔案系統的建立QT
- 檔案和檔案系統
- Linux系統篇-檔案系統&虛擬檔案系統Linux
- UNIX根檔案系統和附加檔案系統
- 檔案系統
- 手動建立系統啟動映象檔案:initrd.img
- Linux建立檔案系統並掛載的方法 -----ddLinux
- Linux dd 在當前目錄建立檔案系統Linux
- WIN10怎麼建立bat檔案 win10系統如何建bat檔案Win10BAT
- linux系統程式設計之檔案與IO(三):利用lseek()建立空洞檔案Linux程式設計
- Linux系統檔案系統及檔案基礎篇Linux
- 分散式檔案系統(HDFS)與 linux系統檔案系統 對比分散式Linux
- windows10系統如何更改檔案建立和修改時間Windows
- Linux系統下建立檔案最常見的8種方法!Linux
- 檔案系統--fstab
- tmpfs檔案系統
- 系統配置檔案
- ASM與檔案系統之間copy資料檔案--檔案系統到ASMASM
- hp-unix 殭屍程式導致系統崩潰
- 檔案描述符和檔案系統
- asm拷貝檔案到檔案系統ASM
- Linux LVM檔案系統管理的建立和擴充套件LinuxLVM套件
- 如何在 Linux 終端下建立新的檔案系統/分割槽Linux