//Scan for disks
rescan-scsi-bus.sh
vxdisk scandisks
vxdisk list
//Check and disable the zero file check function.
developer:/>show lun zero_data_enabled lun_id=
developer:/>change lun zero_data_enabled=no lun_id=
//Create and mount a file system.
/// Format the disk.
/opt/VRTS/bin/vxdisksetup -i huawei-xsg10_246
/// Add the physical disk to the VG.
vxdg init test_dg huawei-xsg10_246
/// Delete the disk from the disk group.
vxdg -g test_dg rmdisk huawei-xsg10_246
/// Delete the disk group from the system and release the disks in the disk group for re-initialization.
vxdg destroy test_dg
/// Create a logical volume.
vxassist -g test_dg make test_vol 8g
/// Delete a volume.
vxassist -g test_dg remove volume test_vol
/// Create a file system in the LV.
cd /dev/vx/dsk/test_dg/
/opt/VRTS/bin/mkfs -t vxfs /dev/vx/rdsk/test_dg/test_vol
//Mount the file system.
mount -t vxfs /dev/vx/dsk/test_dg/test_vol /root/Public/zerodetect
///dd writes 0 to the file.
dd if=/dev/zero of=/root/Public/zerodetect/zero.txt bs=2G count=1
/// Delete the 0 file.
rm zero.txt
/// Reclaim
/opt/VRTS/bin/fsadm -R /root/Public/zerodetect
sync
[Conclusion]
Zero files do not occupy storage resources.
