In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
[root@testdb:/#] character devices used by pvcreate / dev/rdsk/c2t1d4
Physical volume "/ dev/rdsk/c2t1d4" has been successfully created.
[root@testdb:/#] vgcreate vgora / dev/dsk/c2t1d4 # uses block devices
Increased the number of physical extents per physical volume to 50431.
Vgcreate: Volume group "/ dev/vgora" could not be created:
VGRA for the disk is too big for the specified parameters. Increase the
Extent size or decrease max_PVs/max_LVs and try again.
[root@testdb:/#] diskinfo / dev/rdsk/c2t1d4
SCSI describe of / dev/rdsk/c2t1d4:
Vendor: HITACHI
Product id: DF600F
Type: direct access
Size: 206569472 Kbytes
Bytes per sector: 512
The default size of a PE Size is 4m memory so.4Mbike 50431mm 201724M < 201728M (206569472ax 1024), so to increase the size of the PE, set PE Size=32M.
[root@testdb:/#] vgcreate-s 32 vgora / dev/dsk/c2t1d4
Increased the number of physical extents per physical volume to 6303.
Volume group "/ dev/vgora" has been successfully created.
Volume Group configuration for / dev/vgora has been saved in / etc/lvmconf/vgora.conf
[root@testdb:/#] lvcreate-L 40G-n lvoracle vgora # does not recognize G.so..delete
[root@testdb:/#] lvcreate-L 80g-n lvoradata vgora
[root@testdb:/#] lvremove / dev/vgora/lvoracle
[root@testdb:/#] lvremove / dev/vgora/lvoradata
[root@testdb:/#] lvcreate-L 40960M-n lvoracle vgora
[root@testdb:/#] lvcreate-L 81920M-n lvoradata vgora
[root@testdb:/#] vgdisplay-v vgora # re-view the information.
[root@testdb:/#] newfs-F vxfs / dev/vgora/lvoracle # that requires a character device is a letter with r. (for bare devices with r, without being used by file systems)
UX:vxfs newfs: ERROR: VMur3-21623: / dev/vgora/lvoracle is not a character device
[root@testdb:/#] newfs-F vxfs / dev/vgora/rlvoracle
[root@testdb:/#] newfs-F vxfs / dev/vgora/rlvoradata
[root@testdb:/#] mkdir-p / oracle/testdb/oracle
[root@testdb:/#] mkdir-p / oracle/testdb/oradata
[root@testdb:/#] mount / dev/vgora/lvoracle / oracle/testdb/oracle
[root@testdb:/#] mount / dev/vgora/lvoradata / oracle/testdb/oradata
At this time, you can check whether it is mounted through bdf.
If you want the system to mount filesystem, you need to add a record in / etc/fstab.
[root@testdb:/#] vi / etc/fstab # add the following.
/ dev/vgora/lvoracle / oracle/testdb/oracle vxfs delaylog 0 2
/ dev/vgora/lvoradata / oracle/testdb/oradata vxfs delaylog 0 2
[root@testdb:/#] mount-a
[root@testdb:/#] lvextend-L 92160M / dev/vgora/lvoradata # increases lv size
[root@testdb:/#] extendfs-F vxfs / dev/vgora/lvoradata # filesystem cannot be operated online. Umount operation is required
UX:vxfs extendfs: ERROR: Vmur3-20144: / dev/vgora/lvoradata is mounted, cannot extend.
[root@testdb:/#] fsadm-F vxfs-b 92160M / oracle/testdb/oradata # uses fsadm to operate online.
UX:vxfs fsadm: INFO: Vmur3-25942: / dev/vgora/rlvoradata size increased from 83886080 sectors to 94371840 sectors
[root@testdb:/#] umount / oracle/testdb/oradata
[root@testdb:/#] lvreduce-L 81920m / dev/vgora/lvoradata
Root@testdb:/#] mount / dev/vgora/lvoradata / oracle/testdb/oradata
UX:vxfs mount: ERROR: VMur3-24706: / dev/vgora/lvoradata no such device or filesystem on it missing one or more devices
[root@testdb:/#] newfs-F vxfs / dev/vgora/rlvoradata # can only do so. But in this way there is no data in it.
[root@testdb:/#] newfs-o largefiles-F vxfs / dev/vgora/rlvoradata # supports up to 2G without adding-o, and 128G after adding.
[root@testdb:/#] mount-a
[root@testdb:/dev/vgasm#] pvcreate / dev/rdsk/c2t1d3
Pvcreate: Could not perform LVM operation on VxVM disk "/ dev/rdsk/c2t1d3".
[root@testdb:/dev/vgasm#] pvcreate-f / dev/rdsk/c2t1d3 # plus-f parameter to enforce
Physical volume "/ dev/rdsk/c2t1d3" has been successfully created.
[root@testdb:/dev/vgasm#] vgextend vgora / dev/dsk/c2t1d3
[root@testdb:/dev/vgasm#] vgreduce vgora / dev/dsk/c2t1d3
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.