Forum Discussion

Kevin_Sheridan's avatar
10 years ago

Can't initialize Volume after disk replacement

I need to initialize one of my volumes but it tells me that I can't becuase it says:

# vxvol -g ccs-data -f init zero pdfformsvol
VxVM vxvol ERROR V-5-1-1212 Volume pdfformsvol has plexes that are not EMPTY

v  pdfformsvol  -            DISABLED CLEAN    734003200 SELECT   -        fsgen
pl pdfformsvol-01 pdfformsvol DISABLED STALE   734003200 CONCAT   -        RW
sd ccs-data09-01 pdfformsvol-01 ccsdr8 0       209641216 0        disk_3   ENA
sd ccsdr11-01   pdfformsvol-01 ccsdr11 0       209641216 209641216 disk_4  ENA
sd ccsdr18-01   pdfformsvol-01 ccsdr18 0       231182080 419282432 disk_15 ENA
sd ccsdr7-03    pdfformsvol-01 ccsdr7 796998400 59966464 650464512 disk_19 ENA
sd ccsdr12-03   pdfformsvol-01 ccsdr12 157814272 23572224 710430976 disk_5 ENA

What is the best way to get this volume cleaned out so I can start restoring the files from tape?  disk_19 is the one that was replaced and (long story) it was a raid 0 lun...

Thanks

 

  • Just run:

    mkfs -F vxfs /dev/vx/rdsk/ccs-data/pdfformsvol

     

    To create a new filesystem

     

    Mike

  • Force start volume:

    vxvol -g ccs-data -f start pdfformsvol

     

    then you can make filesystem on volume and then restore files from tape.

    Mike

  • Mike,

    Thanks for the response.  The command worked with no errors but when I run an fsck, I still get this:

    # fsck -F vxfs /dev/vx/rdsk/ccs-data/pdfformsvol
    UX:vxfs fsck: WARNING: V-3-20836: file system had I/O error(s) on meta-data.
    log replay in progress
    log replay failed to clean file system
    file system is not clean, full fsck required
    full file system check required, exiting ...

    If I just try to mount it I get this:

    UX:vxfs mount: ERROR: V-3-21268: /dev/vx/dsk/ccs-data/pdfformsvol is corrupted. needs checking

    I ran the full file system check for the last few weeks.  It is relinking inodes at a rate of one every 17 seconds and based on the current inode number, it won't be done until Dec 4, 2015 so I just need to clear the data somehow and restore.

    Kevin

  • Just run:

    mkfs -F vxfs /dev/vx/rdsk/ccs-data/pdfformsvol

     

    To create a new filesystem

     

    Mike

  • Yes!  That is what I needed to do.  Probably the most ovbious thing in hindsight but I haven't worked with "fixing" problems with the volumes.

    Thanks for your help on this!

    Kevin