uniterruplible sleep mode for an rm process
hello everyone,
I haven't done this before and it seems my reasoning fails me somewhere. The problem is that I am trying to remove some snapshots on the LVM disk of a backup server. At the moment I'm doing some snapshot testing with rsnapshot. now I want to delete all the test snapshots and set my cron jobs to take snapshots automatically. Problem is rm -rf /mnt/hd/snaps runs indefinitely. looking closer: Quote:
Now there is a number of things that could have gone wrong here but none that I can think of. so here are the facts: -this backup server is running slack64 13.37 , slightly modified generic kernel. -I have a few disks in it. The LVM disks where I keep my snapshots, is made up of 2x2TB (raid 1 attached to 3ware raid card), 2x1.5TB (soft raid1) and 2x750GB (again soft raid 1). Altogether I have (and NEED to have) 2+1.5+0.75=4.25TB of backup space in order to get backups from another server. (note as you can see this lvm disk is somewhat not standard - could there be a problem here?) - I have written a little script (see below) to create and mount some necessary nfs directories in order to mount whatever I want to backup from the file server. - I call the script from rsnapshot.conf. On exit I umount all these shares, just for the shake of cleanness. The lvm disk info is: Code:
/dev/lvm_disk/lvm_node /mnt/hd xfs defaults 1 2 ANY pointers and guidance will be greatly appreciated :) Thank you in advance Nass EDIT: I managed to narrow down the problematic folder. These are the mountpoint directories. Let me explain: I create the necessary mountpoints in the backup server under /mnt/nfs_asty/. once rsnapshot commenced the backup operation, it copies the full path of these locations under each snapshot dir. So a snapshot will be located under /mnt/hd/snaps/<snapshot number>/<data host>/mnt/nfs_asty/ it looks like: Code:
root@samothraki:/mnt/hd/snaps/4hrly.1/astypalaia/mnt/nfs_asty# ls -l I can empty the contents of each of these folders though without a problem. Any clue as to what could be the problem? Now, if I try to delete any of the folders, rm goes to D state. but i CAN empty the contents of these folder without a problem. Any clue as to what could be the problem? |
OK please disregard completely this thread.
The problem was not with rm going into D uninterruptible state. I managed to complete the removal of the rnsapshot directory. Manually in the beginning, i realised the deletions (unlinks) would go forth, in the end I left it alone (rm -rf /mnt/hd/snaps/) and the process managed to delete 1.7TB of data in approx 8hours.... looking around I found out that xfs is (can be?) terrible at unlinking directories especially whene there are many and with deep file structures. see here http://www.t2-project.org/zine/1/ In the end I reformatted to jfs, seems quite alright now. Only big drawback is its inability to shrink. But that's not important for an exclusive backup disk. I'm going to mark the thread as solved even though that won't be a solution to the initial problem A word of advice if I may , DON'T use xfs with deep folder structures. This is especially true with rsnapshot :P |
Thanks for the follow-up. I was going to query xfs, but as I don't use it I didn't want to go pointing fingers ... ;)
|
|
All times are GMT -5. The time now is 02:57 PM. |