SUMMARY: rmvol hangs

From: Cohen, Andy (Andy.Cohen_at_cognex.com)
Date: 07/15/04

  • Next message: Mary Hunt: "ksh93 on tru64"
    Date: Thu, 15 Jul 2004 16:13:29 -0400
    To: "Tru64-Unix-Managers (E-mail)" <tru64-unix-managers@ornl.gov>
    
    

    It was fairly simple. The best suggestion for me was:

    CTRL C out of the rmvol and then rmvol -v
    This will show the files it is probably looping on.
    You should probably delete these files and restore them if possible,

    I did that and saw what was looping, moved those, and removed the volume.

    However, now the domain has panicked -- I'll send out a separate email on that.

    Other good advice was:

     Are you sure you gave it enough time? rmvol takes a long time moving
    data around. It does this transparent to users on the system. (I once
    removed a volume from a running/active oracle database without
    incident.) This process can take a quite a while. I know that 17GB disk
    took over and hour, but the database was running, and fairly active.

    Try using lsof to see if anything has a file open. I know in our case we
    can't remove the volume where our Oracle executables reside until Oracle
    has been stopped.

    Thanks to Jeff Hummel, Paul Thompson, and Jim Fitzmaurice.

    Andy

    ORIGINAL QUESTION:
    ==================

    Hi,

    I'm trying to remove a volume from an AdvFS domain and having problems.

    Here is the domain:

    root@thor==> showfdmn -k home_domain

                  Id Date Created LogPgs Version Domain Name
    3d0e2d5a.0007c3dd Mon Jun 17 14:41:30 2002 512 4 home_domain

     Vol 1K-Blks Free % Used Cmode Rblks Wblks Vol Name
      1L 835760 710560 15% on 256 256 /dev/disk/dsk12a
      2 839472 735432 12% on 256 256 /dev/disk/dsk12b
      3 839472 722672 14% on 256 256 /dev/disk/dsk12d
      4 839472 724952 14% on 256 256 /dev/disk/dsk12e
      5 835840 721952 14% on 256 256 /dev/disk/dsk12f
      6 3548920 3142696 11% on 256 256 /dev/disk/dsk13b
      7 7125776 7109096 0% on 256 256 /dev/disk/dsk15b <===
      8 3567800 3239152 9% on 256 256 /dev/disk/dsk13a
      9 3548920 3216272 9% on 256 256 /dev/disk/dsk13d
     10 3548920 3202840 10% on 256 256 /dev/disk/dsk13e
     11 3567968 3146144 12% on 256 256 /dev/disk/dsk13f
         ---------- ---------- ------
           29098320 26671768 8%

    I want to remove /dev/disk/dsk15b. When I issue

            rmvol /dev/disk/dsk15b home_domain

    it just hangs. top shows rmvol getting about 10% of the cpu for a couple of minutes then it jumps up to 99% of the cpu until I interrupt it with ctrl-c (there is nothing else currently running on this box). I've tried balancing and defragmenting the domain as well as rebooting the box all to no avail.

    We're running 5.1A PK2 (I think it's PK2) on a 4100.

    Searching the archives has only turned up methods for removing this volume from the domain manually by removing the appropriate links in /etc/fdmns. However, I'm reluctant to do that because there may still be unmoved data stored there -- looks like about 16 mb.

    Thank you!

    Andy Cohen
    Database Systems Administrator
    Cognex Corporation
    1 Vision Drive
    Natick, MA 01760


  • Next message: Mary Hunt: "ksh93 on tru64"