LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-20-2011, 08:31 PM   #1
scott12087
LQ Newbie
 
Registered: Mar 2011
Location: Ottawa, Canada
Distribution: Linux Mint, Debian
Posts: 12

Rep: Reputation: 0
Failing to remove corrupted files after RAID resize


I am running a RAID 6 setup on Debian with 4 drives. I recently shrunk the size of the RAID partitions by failing one drive in the array, shrinking the partition, then adding it back to the array and allowing it to rebuild. Did this for each of the partitions and then used mdadm grow to resize the array to the max size of the new partitions. I found this in a guide somewhere but I'm unable to find where I read about it now. I will post it later if I find.

Anyway, this corrupted some files and directories on the disk. They're not critical, just some media files. I'm trying to remove the corrupted files and keep getting the message:

Code:
rm: cannot remove filename: Operation not permitted
It does this even if I use sudo or -f. I've obviously corrupted something on the drive, but I don't know where to go from here. I've been digging through old forums but I haven't been able to find much. If anybody out there could point me in the right direction for solving this problem that would be great! Thanks!
 
Old 03-21-2011, 07:52 AM   #2
tva
Member
 
Registered: Jul 2010
Location: Finland
Distribution: Open SUSE 13.1
Posts: 83

Rep: Reputation: 8
Not sure if it does any good but have you tried fsck?
 
Old 03-23-2011, 07:12 PM   #3
scott12087
LQ Newbie
 
Registered: Mar 2011
Location: Ottawa, Canada
Distribution: Linux Mint, Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Not much to see from fsck. Maybe I'm not doing it right?

Code:
fsck /dev/md0
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
fsck.ext3: No such file or directory while trying to open /dev/md0

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
Code:
sudo fsck /dev/sda
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
fsck.ext2: Device or resource busy while trying to open /dev/sda
Filesystem mounted or opened exclusively by another program?
The device or resource busy message shows up for each of the individual drives (sda-sdd). Not sure why.
 
Old 03-24-2011, 03:16 AM   #4
tva
Member
 
Registered: Jul 2010
Location: Finland
Distribution: Open SUSE 13.1
Posts: 83

Rep: Reputation: 8
Did you try fsck with filesystem mounted or unmounted? IIRC it should be unmounted. Anyways, I'm not sure at all if it helps with your problem, not very experienced myself with disk problems..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Resize RAID Partitions (Shrink & Grow) (Software RAID) LXer Syndicated Linux News 1 05-01-2009 01:02 PM
Resize RAID Partitions gsoft Linux - General 2 09-11-2008 05:23 AM
Best way to Resize Linux partition ? + kernel remove question -=Graz=- Slackware 19 05-25-2008 07:08 PM
raid corrupted files copy quikphysik Linux - General 4 01-11-2007 02:55 PM
Files corrupted during partition resize (quite worried) michapma Linux - Hardware 4 07-13-2006 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration