[root@testdb:/#] pvcreate /dev/rdsk/c2t1d4 #使用的字符设备
Physical volume "/dev/rdsk/c2t1d4" has been successfully created.
[root@testdb:/#] vgcreate vgora /dev/dsk/c2t1d4 #使用块设备
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
[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:/#] 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: V-3-24706: /dev/vgora/lvoradata no such device or filesystem on it missing one or more devices
[root@testdb:/#] newfs -F vxfs /dev/vgora/rlvoradata #只能这样了.但是这样里面的数据都没有了.
[root@testdb:/#] newfs -o largefiles -F vxfs /dev/vgora/rlvoradata #不加-o 最大支持2G,加了之后支持128G.
[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 #加上-f参数,强制执行
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