HP-UNIX如何创建文件系统-创新互联
本篇文章为大家展示了HP-UNIX如何创建文件系统,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。
成都创新互联成立十年来,这条路我们正越走越好,积累了技术与客户资源,形成了良好的口碑。为客户提供成都做网站、网站建设、网站策划、网页设计、域名申请、网络营销、VI设计、网站改版、漏洞修补等服务。网站是否美观、功能强大、用户体验好、性价比高、打开快等等,这些对于网站建设都非常重要,成都创新互联通过对建站技术性的掌握、对创意设计的研究为客户提供一站式互联网解决方案,携手广大客户,共同发展进步。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
附表
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
上述内容就是HP-UNIX如何创建文件系统,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注创新互联-成都网站建设公司行业资讯频道。
本文题目:HP-UNIX如何创建文件系统-创新互联
标题URL:http://ybzwz.com/article/gcodj.html