Re: removing logical volume and file system
From: N. Leenders (nadine_at_UALBERTA.CA)
Date: 07/21/04
- Previous message: JOSEPH KREMBLAS: "Re: mksysb recovery problems"
- In reply to: N. Leenders: "removing logical volume and file system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 21 Jul 2004 13:24:45 -0600 To: aix-l@Princeton.EDU
I finally did get rid of this lv and fs, by first getting rid of the file
system I made the snapshot of.
- Nadine
On Wed, 21 Jul 2004, N. Leenders wrote:
>
> I was playing with snapshot in an attempt to figure out how it works.
> Instead of figuring out how it works, I've created a logical volume and
> file system I can't get rid of. Various commands I've done and their
> results are below. Can anyone tell me whats happened and how to get rid
> of the logical volume and file system?
>
>
>
> # snapshot -o snapfrom=/testFileSys -o size=3M
> Snapshot for file system /testFileSys created on /dev/fslv02
>
> # mount -v jfs2 -o snapshot /dev/fslv02 /testSnap
> mount: /dev/fslv02 on /testSnap: Unformatted or incompatible media
>
> #
> # snapshot -q /testFileSys
> Snapshots for /testFileSys
> Current Location 512-blocks Free Time
> * /dev/fslv02 262144 261376 Tue Jul 20 15:58:51 2004
>
> # snapshot -d /dev/fslv02
> snapshot: 0507-561 /dev/fslv02 is not a snapshot.
>
> # snapshot -d /testSnap
> snapshot: 0507-561 /testSnap is not a snapshot.
>
>
> # mount /dev/fslv02 /testSnap
> mount: /dev/fslv02 on /testSnap: Device busy
>
> # umount /testSnap
> umount: Could not find anything to unmount
> #
> # umount /dev/fslv02
> umount: Could not find anything to unmount
>
>
> # rmfs /testSnap
> 0516-1008 rmlv: Logical volume fslv02 must be closed. If the logical
> volume
> contains a filesystem, the umount command will close the LV
> device.
>
> #
> # rmlv /dev/fslv02
> Warning, all data contained on logical volume /dev/fslv02 will be
> destroyed.
> rmlv: Do you wish to continue? y(es) n(o)?
> y
> 0516-306 getlvodm: Unable to find /dev/fslv02 in the Device
> Configuration Database.
> 0516-912 rmlv: Unable to remove logical volume /dev/fslv02.
> #
>
> # lsfs
> Name Nodename Mount Pt VFS Size Options
> Auto Accounting
> /dev/hd4 -- / jfs2 524288 --
> yes no
> /dev/hd2 -- /usr jfs2 6291456 --
> yes no
> /dev/hd9var -- /var jfs2 524288 --
> yes no
> /dev/hd3 -- /tmp jfs2 1310720 --
> yes no
> /proc -- /proc procfs -- --
> yes no
> /dev/hd10opt -- /opt jfs2 524288 --
> yes no
> /scratch_shared rage.ucs.ualberta.ca /scratch_shared nfs --
> bg,soft,intr yes no
> /local_shared rage.ucs.ualberta.ca /local_shared nfs --
> bg,soft,intr yes no
> /dev/lv00 -- /usr/vice jfs 262144 rw
> yes no
> /dev/cd0 -- /CDROM cdrfs -- ro
> no no
> /dev/fslv00 -- /forBluejay jfs2 41943040 rw
> yes no
> /dev/fslv01 -- /testFileSys jfs2 524288 rw
> yes no
> /dev/fslv02 -- /testSnap jfs2 262144 rw
> no no
> #
>
>
>
>
>
- Previous message: JOSEPH KREMBLAS: "Re: mksysb recovery problems"
- In reply to: N. Leenders: "removing logical volume and file system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]