From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Cohen, Andy" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: rmvol hangs Date: Thu, 15 Jul 2004 16:13:29 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <9D592DB37A92234AB635C5585D2D08190135D3E0@cobra.pc.cognex.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1089922438 4001 80.91.224.253 (15 Jul 2004 20:13:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2004 20:13:58 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jul 15 22:13:49 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1BlCc0-0000iB-00 for ; Thu, 15 Jul 2004 22:13:48 +0200 Original-Received: (qmail 24536 invoked by uid 5); 15 Jul 2004 20:13:40 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 24521 invoked by uid 49501); 15 Jul 2004 20:13:40 -0000 Original-Received: from Andy.Cohen@cognex.com by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-4.9/5.0):. Processed in 0.862059 secs); 15 Jul 2004 20:13:40 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 15 Jul 2004 20:13:39 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I0W00J40TIQYC@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 15 Jul 2004 16:13:39 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0I0W00L02TIJEY@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 15 Jul 2004 16:13:32 -0400 (EDT) Original-Received: from cognex.cognex.com (cognex-cp.cognex.com [198.232.30.75]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I0W00H8STIIDX@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 15 Jul 2004 16:13:31 -0400 (EDT) Original-Received: from atlantis.pc.cognex.com (atlantis.pc.cognex.com [10.10.160.5]) by cognex.cognex.com (8.12.11/8.12.11) with ESMTP id i6FKDT1K005895 for ; Thu, 15 Jul 2004 16:13:29 -0400 (EDT) Original-Received: from cobra.pc.cognex.com ([10.10.160.30]) by atlantis.pc.cognex.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 15 Jul 2004 16:13:29 -0400 Original-To: "Tru64-Unix-Managers \(E-mail\)" X-MIMEOLE: Produced By Microsoft Exchange V6.0.6334.0 Thread-Topic: rmvol hangs Thread-Index: AcRqlZ7xJ2giNXIYTvaIzidblJXzmw== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 15 Jul 2004 20:13:29.0568 (UTC) FILETIME=[31CB6600:01C46AA8] Xref: main.gmane.org gmane.os.tru64.managers:7297 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7297 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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Hi, I'm trying to remove a volume from an AdvFS domain and having problems. Here is the domain: root@thor=3D=3D> 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 <=3D=3D=3D 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=20 Database Systems Administrator=20 Cognex Corporation=20 1 Vision Drive=20 Natick, MA 01760=20