New Feature "-r" for vxdisksetup on version 6.x

book

Article ID: 100028880

calendar_today

Updated On:

Description

Error Message

# vxdisksetup -i c0t0d0  format=sliced
VxVM vxdisk ERROR V-5-1-16528  The device is in use. This device may be a boot disk.  Device has a UFS FS on it.
If you still want to initialize this device for VxVM use, ensure that there is no root FS on it.
Then remove the FS signature from each of the slice(s) as follows:
        dd if=/dev/zero of=/dev/vx/rdmp/c0t0d0s[n] oseek=18 bs=512 count=1
n] is the slice number.
Or alternatively you can rerun the same command with -r option

Cause

New feature introduced in version 6.0 to  prevent overwriting root filesystem on a boot disk by mistake

Resolution

From the help page we have

# vxdisksetup -h  (sample)
VxVM vxdisksetup INFO V-5-2-5958
vxdisksetup - setup a disk for use with the volume manager

Usage: vxdisksetup [-iefr] disk-device-address [ attribute ... ]

Options:
    -i  Initialize the private region
    -e  Allocate the private region at the end of the disk
    -f  Force
    -r  Force init if the disk has UFS FS on it

man page we have

# man vxdisksetup (sample)

    -r        Must be specified with the -f option to remove the UFS file system signature from a disk.

solution:

# vxdisksetup -ir c0t0d0 format=sliced  ( test first without -f  first, if it fails repeat with -f )

or

# vxdisksetup -fir c0t0d0 format=sliced 

Applies To

VXVM 6.0 and above

Issue/Introduction

Cannot initialize a new disk