- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rm command take too long to complete
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2011 02:36 AM
тАО02-10-2011 02:36 AM
rm command take too long to complete
rx7640.
11.31 with lvm environment.
It takes too long to delete a file 1G in size.
It took 10-20seconds but creating a file time is acceptable.
#time dd if=/dev/zero of=/dd.img bs=1024k count=1024
real 1.0
#time rm /dd.img
real 10.0
but the deleting for 100MB is acceptable( <1seconds).
I tested another way using prealloc and no symptoms like that.
#time prealloc /dd.img 1G
real 5.0
#time rm /dd.img
real 0.2 <=accepted
This symptom happened both internal disks(local disks) and shared disks.
I tested it in our lab but no encountered that problem.
#fstyp -v /dev/vg00/lvol3
vxfs
version: 6
f_bsize: 8192
f_frsize: 8192
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2011 02:41 AM
тАО02-10-2011 02:41 AM
Re: rm command take too long to complete
Most time comsumed in unlink.
18:57:37 [21545] access(0x2000000040011240, W_OK) ............. [entry]
18:57:37 [21545] access("dd.img", W_OK) ....................... = 0
18:57:47 [21545] unlink(0x2000000040011240) ................... [running]
18:57:47 [21545] unlink("dd.img") ............................. = 0
18:57:47 [21545] exit(0) ...................................... [entry]
18:57:47 [21545] exit(0) ...................................... WIFEXITED(0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2011 03:18 AM
тАО02-10-2011 03:18 AM
Re: rm command take too long to complete
Out of interest, if you force a sync after the dd, does the rm still take a long time? i.e.
# time dd if=/dev/zero of=/dd.img bs=1024k count=1024
# sync
# time rm /dd.img
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2011 03:21 AM
тАО02-10-2011 03:21 AM
Re: rm command take too long to complete
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2011 05:13 PM
тАО02-13-2011 05:13 PM
Re: rm command take too long to complete
mount option:
# mount -l
/ on /dev/vg00/lvol3 ioerror=nodisable,log,dev=40000003 on Thu Jul 29 15:52:21 2010
/stand on /dev/vg00/lvol1 ioerror=mwdisable,log,nodatainlog,tranflush,dev=40000001 on Thu Jul 29 15:52:26 2010
/var on /dev/vg00/lvol8 ioerror=mwdisable,delaylog,nodatainlog,dev=40000008 on Thu Jul 29 15:52:50 2010
/var/adm/crash on /dev/vg00/lvol5 ioerror=mwdisable,delaylog,nodatainlog,dev=40000005 on Thu Jul 29 15:52:50 2010
/usr on /dev/vg00/lvol7 ioerror=mwdisable,delaylog,nodatainlog,dev=40000007 on Thu Jul 29 15:52:50 2010
/tmp on /dev/vg00/lvol4 ioerror=mwdisable,delaylog,nodatainlog,dev=40000004 on Thu Jul 29 15:52:50 2010
/oracle on /dev/vg00/lvol9 ioerror=mwdisable,delaylog,nodatainlog,dev=40000009 on Thu Jul 29 15:52:50 2010
/opt on /dev/vg00/lvol6 ioerror=mwdisable,delaylog,nodatainlog,dev=40000006 on Thu Jul 29 15:52:50 2010
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 05:45 AM
тАО02-14-2011 05:45 AM
Re: rm command take too long to complete
That might be it. To remove a file you have to invalidate the filecache, fiddle with the directory entry and then clean up all of the extents.
prealloc wouldn't have the filecache. Or waiting until the next day to do the rm.
When I have long times with rm, it's because I have lots of small files.