urn:lsid:ibm.com:blogs:entrycomments-1bec6935-dae9-4486-bd68-c0d0ad859a85VIOS Shared Storage Pools - Reusing Disks (Comments)VIOS Shared Storage Pools - Reusing Disks (Comments)03012017-08-17T15:07:25-04:00IBM Connections - Blogsurn:lsid:ibm.com:blogs:comment-712ea4c2-a1a4-4af1-8c4c-4e2ae7ae963fRe: VIOS Shared Storage Pools - Reusing Diskssangeek270001VXC7activefalsesangeek270001VXC7activefalseLikes2012-05-03T02:04:12-04:002012-05-03T02:04:12-04:00I 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..
e.g 1:
$ prepdev -dev hdisk3
WARNING!
The VIOS has detected that this physical volume is
currently in use. Data will be lost and cannot be
undone when destructive actions are taken.
These actions should only be done after confirming
that the current physical volume usage and data are
no longer needed.
The VIOS detected that this device is a cluster disk.
Destructive action: Remove the physical volume from
the cluster by running the following command:
cleandisk -s hdisk#
e.g. 2:
$ prepdev -dev hdisk1
WARNING!
The VIOS has detected that this physical volume is
currently in use. Data will be lost and cannot be
undone when destructive actions are taken.
These actions should only be done after confirming
that the current physical volume usage and data are
no longer needed.
The VIOS could not determine the usage of this device.
Destructive action: Destroy current usage of this device
by zeroing out known sector on the physical volume.
NOTE: This action will write 0s to the entire block located
at sector 7. This command must be run in the oem shell.
dd if=/dev/zero of=/dev/hdiskX seek=7 count=1 bs=blocksize_of_device
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..
e.g 1:
$ prepdev -dev hdisk3
WARNING!
The VIOS has de...falsefalseRE: VIOS Shared Storage Pools - Reusing Disks1urn:lsid:ibm.com:blogs:entry-1bec6935-dae9-4486-bd68-c0d0ad859a85VIOS Shared Storage Pools - Reusing Disks - Comments