System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

what conditions a mount command could hang with the "-o sync"

monu_1
Regular Advisor

what conditions a mount command could hang with the "-o sync"

Hi Gurus,

I am having a script which is mounting a partition with -o sync option. Apreantly, it takes longer than the wrost time (more then 2 min). Sometime it took 40+ min time.

Question: What conditions a mount command could hang with the "-o sync" option?

Thank!

MKS
1 REPLY
Michal Kapalka (mikap)
Honored Contributor

Re: what conditions a mount command could hang with the "-o sync"

hi,

Mounting it 'sync' means the data is written to the STORAGE(almost?) immediately after it's written in userspace. Mounting it async means there is a write buffer. The buffer is completely flushed by sync(8) or umount.

its also depend on the speed of you device ( STORAGE )

mikap