Got it

Method to check whether zeros occupies storage space on Dorado V6

Latest reply: Oct 12, 2021 08:18:56 188 1 1 0 0

//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.


Useful post. Thanks!
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.