Before proceeding the disk must be evaluated to determine if the existing data is needed or desired. Confirmation that the disk's existing data can be removed is required before proceeding.
If existing data is confirmed as unnecessary then the following can be performed to enable disk initialization:
- Determine OS level path to work against
# vxdisk list
- Use DD to zero out the first 1000 blocks
# dd if=/dev/zero of=/dev/rdsk/
# sync
- Next use format to re-label the device
# format
format> label
Ready to label disk, continue? y
- Initialization will succeed at this point
# /etc/vx/bin/vxdisksetup -i
Example Execution:
- Identify paths to use
# vxdisk list ams_wms0_4 | grep state
c0t50060E80104EF3F1d0s2 state=enabled type=primary
c0t50060E80104EF3F0d0s2 state=enabled type=primary
- Use DD to remove the previous disk label and UFS signature
# dd if=/dev/zero of=/dev/rdsk/c0t50060E80104EF3F1d0s2 bs=512 count=1000
# sync
- Use format to relabel the disk
# format c0t50060E80104EF3F1d0
format> label
Ready to label disk, continue? y
- Complete disk initialization
# /etc/vx/bin/vxdisksetup -i ams_wms0_4
ams_wms0_4 auto:cdsdisk - - online