Operating System - HP-UX
1831408 Members
3098 Online
110025 Solutions
New Discussion

file system increasing problem,

 
SOLVED
Go to solution
mukkala
Advisor

file system increasing problem,

i have extended the logical volume size, it is successfully extended,

i am trying to unmount the f.s it's giving the error device busy.

A&C


<> lvdisplay /dev/vg01/devsapdata6
--- Logical volumes ---
LV Name /dev/vg01/devsapdata6
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 10000
Current LE 1250
Allocated PE 1250
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

<>
<> lvextend -L 11000 /dev/vg01/devsapdata6
Logical volume "/dev/vg01/devsapdata6" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
<>
<>
<> umount /oracle/DEV/sapdata6
umount: cannot unmount /oracle/DEV/sapdata6 : Device busy
umount: return error 1.
<> lvdisplay /dev/vg01/devsapdata6
--- Logical volumes ---
LV Name /dev/vg01/devsapdata6
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 11000
Current LE 1375
Allocated PE 1375
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

<>
13 REPLIES 13
James R. Ferguson
Acclaimed Contributor
Solution

Re: file system increasing problem,

Hi:

One common mistake is to have changed driectories ('cd') into the filesystem that you want to unmount. 'cd' to the root directory and unmount.

It is also possible that some process has a file in use within the filesystem you are trying to unmount. Use:

# fuser -cu /oracle/DEV/sapdata6

...to see files that are in use

# fuser -ku /oracle/DEV/sapdata6

...to kill all processes using files

Regards!

...JRF...
mukkala
Advisor

Re: file system increasing problem,

if i use

#fuser -ku /oracle/DEV/sapdata6

it will effect any data
Raj D.
Honored Contributor

Re: file system increasing problem,

Hi Mukkala ,

1. First check if the filesystem is busy.

# fuser -cu /oracle/DEV/sapdata6

2. If orcle is running needs to stop.
Check with :
# ps -ef | egrep '(pmon|ora)'

3. If u used fuser -ku forcefully , oracle related process will be killed.

4. check with pwd , your current working directory. You should not be seating in the /oracle/DEV/sapdata6 directory.

Hope this will help ,

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
James R. Ferguson
Acclaimed Contributor

Re: file system increasing problem,

Hi (again):

Begin with finding what processes (by pid) are using the filesystem:

# fuser -cu /oracle/DEV/sapdata6

(see the manpages for 'fuser(1M) for the interpretation of the output).

If possible, gracefully terminate all processes using the filesystem. This is always preferred to drastic kill actions like :

# fuser -ku /oracle/DEV/sapdata6

Regards!

...JRF...
Raj D.
Honored Contributor

Re: file system increasing problem,

Hi Mukkala ,

Here is your profile :


"I have assigned points to 8 of 60 responses to my questions. "


Try to make it 60 of 60 , by assigning points to all responses , and make your forum profile better and looks good , and get faster response.

Enjoy Foruming,

hth ,
Raj.



" If u think u can , If u think u cannot , - You are always Right . "
mukkala
Advisor

Re: file system increasing problem,

still it is giving error

<> umount /oracle/DEV/sapdata6
umount: cannot unmount /oracle/DEV/sapdata6 : Device busy
umount: return error 1.
<> pwd
/
<> fuser -ku /oracle/DEV/sapdata6
/oracle/DEV/sapdata6:

<> extendfs -F vxfs /dev/vg01/rdevsapdata6
vxfs extendfs: /dev/vg01/rdevsapdata6 is mounted, cannot extend.
<>
mukkala
Advisor

Re: file system increasing problem,

<> fuser -cu /oracle/DEV/sapdata6
/oracle/DEV/sapdata6: 12768o(devadm) 12764o(devadm) 12762o(devadm) 12766o(devadm) 13375o(oradev) 13371o(oradev) 13377o(oradev) 13379o(oradev) 13381o(oradev) 13383o(oradev) 13385o(oradev)

<> fuser -ku /oracle/DEV/sapdata6
/oracle/DEV/sapdata6:

<>
Patrick Wallek
Honored Contributor

Re: file system increasing problem,

That might not have been a very smart thing to do. It appears that the filesystem was in use by an Oracle DB. A better bet would have been to shut down the Oracle DB, rather than indiscriminantly killing processes.

Hopefully your DB will be OK.
Raj D.
Honored Contributor

Re: file system increasing problem,

Hi Mukkala,

Its clear from fuser output that , filesystem is busy and used by , oracle user oradev and devadm.

You need to shutdown oracle. Consult your DBA.

If You want to shutdown oracle:
# /sbin/init.d/oracle stop
(Check for this script)


Hope fully after this you can unmount.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
mukkala
Advisor

Re: file system increasing problem,

after completing f.s increasing can i start oracel same path
mukkala
Advisor

Re: file system increasing problem,

RAJ/JRF

Thank you very much for immediate response.
Raj D.
Honored Contributor

Re: file system increasing problem,

Yes , you can start the same way , in the same path.

# cd /sbin/init.d/
# ./oracle start

cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
mukkala
Advisor

Re: file system increasing problem,

thanks