AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Remove logical volume and file system in a mirrored volume group

    Posted Mon January 05, 2009 12:23 PM

    Originally posted by: motif


    Hi gurus,
    How to remove logical volume and its file system in a mirrored volume group?
    Volume group: datavg
    Logical volume in volume group datavg: datalv01,datalv02
    Mount point for logical volume datalv01: /db/data1
    Will following steps work?
    1. umount /db/data1
    2. rmfs /db/data1
    3. rmlv datalv01

    If reduce file system size of /db/data1 to zero, can another logical volume datalv02 utilize released space from volume group datalv01?
    Can I do this?
    chfs -a size = 0 /db/data1

    Thanks.
    #AIX-Forum


  • 2.  Re: Remove logical volume and file system in a mirrored volume group

    Posted Thu January 08, 2009 11:10 AM

    Originally posted by: hdkutz


    Hi motif,
    yes the first part will work.

    To your second point.
    Will not work, if /db/data1 has data. I think the max reduction size is the size of the filesystem.
    Look into
    1. lsfs -q /db/data1
    as root.
    It will tell you, how much size your FS has and how much size your LV has.

    Cheers,
    ku
    #AIX-Forum


  • 3.  Re: Remove logical volume and file system in a mirrored volume group

    Posted Thu January 08, 2009 11:32 AM

    Originally posted by: motif


    Hi Ku,
    Thank you so much for answering my question (almost give up my hope). For my second question, if I remove all data under FS /db/data1, could I use chfs to reduce FS size to zero or close to zero?

    motif
    #AIX-Forum


  • 4.  Re: Remove logical volume and file system in a mirrored volume group

    Posted Thu January 08, 2009 12:00 PM

    Originally posted by: motif


    Hi Ku,
    I reduced FS size, but can't reduce it to zero. Here is result if I try to reduce it zero:
    chfs: Cannot shrink JFS2 file system smaller than 32768 (512 byte blocks).
    Thank you for your helps.
    Motif
    #AIX-Forum


  • 5.  Re: Remove logical volume and file system in a mirrored volume group

    Posted Mon January 12, 2009 06:37 PM

    Originally posted by: esv


    Why don't you delete it then?
    #AIX-Forum