Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How HP-UNIX creates a file system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how HP-UNIX creates a file system, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the details of this article.

HP-UNIX creates a file system

1. System environment

# uname-a

HP-UX callcdb2 B.11.31 U ia64

two。 View VG groups

# ll / dev/vg*/group

Crw-r- 1 root sys 64 0x000000 Jun 9 12:13 / dev/vg00/group

3. Create a physical volume

# pvcreate / dev/rdisk/disk162

Physical volume "/ dev/rdisk/disk162" has been successfully created.

4. Create VG

4-1. Create VG group name

# mkdir / dev/vg_cdc

# ll / dev/vg*/group

Crw-r- 1 root sys 64 0x000000 Jun 9 12:13 / dev/vg00/group

4-2. Give a unique 0x010000 to the VG group

# 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. Create a VG group and write to the configuration file

# 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. Create a LV and specify the LV size

# 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. Formatting

# 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. Create a mount point

# mkdir / cdc

8. Mounting

# mount / dev/vg_cdc/lv_cdc / cdc

Schedule

1.vgexport vg_cdc-deletes a VG volume group

2.pvcreate-f / dev/rdisk/disk162-if you add the F parameter when recreating the VG volume group

3.vgchange-an (y) vg_cdc-- stops or activates the logical volume group.

This problem occurs after changing the SAS card and rebooting. Just reactivate the logical volume group.

Vgdisplay: Volume group not activated.

Vgdisplay: Cannot display volume group "/ dev/vg_cdc".

Solution: vgchange-a y / dev/vg_cdc

The above is how HP-UNIX creates a file system. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report