AIX

AIX

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


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  Closing Logical Volumes

    Posted 06/12/09 01:05 PM

    Originally posted by: SystemAdmin


    Does any one have a good process to close Logical Volumes? I need to remove a LV but I need to change the state from open to closed. I tried to rmlv with smitty but no go. This process does not seem to be well documented.
    #AIX-Forum


  • 2.  Re: Closing Logical Volumes

    Posted 06/12/09 01:11 PM

    Originally posted by: SystemAdmin


    You need to close the application holding the LV open.
    Use the lsof program to find the process holding the LV open.

    Use
    ps -fp <process id> to see what the process is.
    kill <process id>

    Run lsof to see if it still in use - If not rmlv <lv>
    #AIX-Forum


  • 3.  Re: Closing Logical Volumes

    Posted 06/12/09 01:25 PM

    Originally posted by: shargus


    Is the logical volume associated with a filesystem that is mounted? If so, unmounting the filesystem will close the lvol.
    #AIX-Forum


  • 4.  Re: Closing Logical Volumes

    Posted 06/15/09 09:33 AM

    Originally posted by: SystemAdmin


    Hi,

    As shargus perviously mentioned, you must first unmount the filesystem.
    If there is a process (including your ksh session ;) ) you must figure it out first.

    you can try the following:

    fsuser -kuc /mount_point; umount -f /mount_point

    The first command will kill all the process who are using files on the related mount point.
    the second one will force the unmount afterwards, just in case.

    Regards,
    Angel
    #AIX-Forum