Comentários (1)

1 sangeek comentou às Link permanente

I found the "prepdev" command in VIOS quite handy when you want to check/confirm the current usage of a particular disk. It could be used before cleandisk to confirm, you are doing the right thing.. <div>&nbsp;</div> e.g 1: <br /> $ prepdev -dev hdisk3 <br /> WARNING! <div>&nbsp;</div> The VIOS has detected that this physical volume is <br /> currently in use. Data will be lost and cannot be <br /> undone when destructive actions are taken. <br /> These actions should only be done after confirming <br /> that the current physical volume usage and data are <br /> no longer needed. <div>&nbsp;</div> The VIOS detected that this device is a cluster disk. <br /> Destructive action: Remove the physical volume from <br /> the cluster by running the following command: <br /> cleandisk -s hdisk# <div>&nbsp;</div> e.g. 2: <br /> $ prepdev -dev hdisk1 <br /> WARNING! <div>&nbsp;</div> The VIOS has detected that this physical volume is <br /> currently in use. Data will be lost and cannot be <br /> undone when destructive actions are taken. <br /> These actions should only be done after confirming <br /> that the current physical volume usage and data are <br /> no longer needed. <div>&nbsp;</div> The VIOS could not determine the usage of this device. <div>&nbsp;</div> Destructive action: Destroy current usage of this device <br /> by zeroing out known sector on the physical volume. <br /> NOTE: This action will write 0s to the entire block located <br /> at sector 7. This command must be run in the oem shell. <div>&nbsp;</div> dd if=/dev/zero of=/dev/hdiskX seek=7 count=1 bs=blocksize_of_device <div>&nbsp;</div>