Vanishing data partition
Nice one sandy. Don't forget to readd it to fstab.
sandygws
21-08-2010, 07:37
After playing around for a few hours, it seems that the data is back!
In case anyone has this problem, here's what fixed it:
umount /dev/md3
reboot
xfs_repair -L /dev/md3
reboot
mount -t xfs /dev/md3 /data
sandygws
20-08-2010, 22:21
Yes .. it looks messy!
olliegooch
20-08-2010, 22:05
Originally Posted by
sandygws
A friend of mine originally setup the server and I seem to remember he was of the opinion that xfs offered performance benefits of some sort ...
repair returns this:
Think your on your own past this point, apologies
sandygws
20-08-2010, 22:02
A friend of mine originally setup the server and I seem to remember he was of the opinion that xfs offered performance benefits of some sort ...
repair returns this:
olliegooch
20-08-2010, 21:56
Originally Posted by
sandygws
Well, after attempting to mount, I receive the following:
mount: Structure needs cleaning
!!!
Ok, IGNORE my post above.
Just to say: Past this point im going on research.
Seems you need to repair your XFS filesystem.
Run this (In screen)
xfs_repair /dev/md3
then
xfs_check /dev/md3
Then report results. (Those commands might take a while)
Can I ask why your using XFS over EXT3?
sandygws
20-08-2010, 21:50
Well, after attempting to mount, I receive the following:
mount: Structure needs cleaning
!!!
olliegooch
20-08-2010, 21:46
Cool, if that mounts up as I would hope it would keep then (This is with the machine booted after you did the stuff I suggested)
Code:
1. umount /newfolder
2. add the following to the bottom of /etc/fstab:
/dev/md3 /newfolder xfs defaults 0 0
3. Reboot
4. ?????
5. Profit! (Or cd /newfolder;ls -l)
sandygws
20-08-2010, 21:41
I'm going in ... wish me luck!
olliegooch
20-08-2010, 21:37
Code:
1. #/dev/md3 line in fstab
2. Reboot
3. mkdir /newfolder
4. chmod 777 /newfolder
5. mount -t xfs /dev/md3 /newfolder
6. cd /newfolder;ls -l
sandygws
20-08-2010, 21:36
To confirm 100% ... as root:
1. #/dev/md3 line in fstab
2. Reboot
3. mkdir newfolder
4. chmod 777 newfolder
5. mount -t xfs /dev/md3 /newfolder
6. cd /newfolder;ls -l
olliegooch
20-08-2010, 21:32
Originally Posted by
sandygws
Before I attempt this, can I clarify: -could- it result in the loss of data on the volume?
No, the volumes still there and untouched, your just unmounting it (Im not even sure its mounted at the mo, hence the issue your having) and then remounting it
sandygws
20-08-2010, 21:30
Before I attempt this, can I clarify: -could- it result in the loss of data on the volume?
olliegooch
20-08-2010, 21:27
Bah.
Put a hash infront of the /dev/md3 line in fstab, reboot.
then make a new dir in /, chmod 777 it, then
mount -t xfs /dev/md3 /foldernamehere
cd /foldernamehere;ls -l
sandygws
20-08-2010, 21:23
It's a kind offer Ollie, but I'd like to take a shot if you can suggest the best way forward!
olliegooch
20-08-2010, 21:20
Originally Posted by
sandygws
How do I remove the entry, then manually remount?
Would you rather you gave me SSH and I fix?
Donations exepted
sandygws
20-08-2010, 21:11
How do I remove the entry, then manually remount?
olliegooch
20-08-2010, 20:56
Originally Posted by
sandygws
Thanks for replying. Here's another cap:
what happens if you cd to /data?
Try removing the fstab entry, reboot, manually mount it.
sandygws
20-08-2010, 20:54
Thanks for replying. Here's another cap:
olliegooch
20-08-2010, 20:50
pastebin of /etc/fstab please
sandygws
20-08-2010, 20:45
Thanks for the reply. I know very little about managing partitions .. and not an awful lot more about Debian!
Parted screenshot above was taken from Debian.
Here's the output of fdisk -l:
Any ideas?
fdisk output?
parted under debian or rescue?
dmesg hints?
attempts to mount it under debian?
sandygws
20-08-2010, 19:48
After rebooting my server earlier today, the 3TB data partition had vanished. I ran a hardware check and all was reported to be fine. Still no sign of the partition though, although parted can see it:
Does anyone know how I can get Debian 5 to see it?