Koozali.org: home of the SME Server

!!!!URGENT!!!! How can recovery mail on imap server

Offline semselim

  • 10
  • +0/-0
!!!!URGENT!!!! How can recovery mail on imap server
« on: November 05, 2010, 12:37:11 PM »
fsck.ext3: Invalid argument while trying to open /dev/md1

please some body help me our sme server crash


Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #1 on: November 05, 2010, 12:38:37 PM »
hi

first of all sit down, drink a glass of water, take a deep breath

then tell us what's going on

Offline semselim

  • 10
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #2 on: November 05, 2010, 12:54:11 PM »
my server does not start after restart

fdisk -l

Device Boot     Start         End             Blocks              Id               System
/dev/hda1  *         1            13            104391            fd               Linux raid autodetect
/dev/hda2           14        30401         244091610        fd               Linux raid autodetect

Disk /dev/md2: 249.9 GB, 249949716480 bytes
2 heads, 4 sectors/track, 61022880 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/dm-0: 247.7 gb, 247765925888 bytes
2 heads, 4 sectors/track, 60489728 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

,
,
,
Disk /dev/dm-1 doesn't contain a valid partition table





Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #3 on: November 05, 2010, 03:06:53 PM »
semselim:

please describe exactly what happened..
what do you see on the screen?
you can attach here a link to an image (you have to upload the image elsewhere)

Offline semselim

  • 10
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #4 on: November 07, 2010, 12:26:50 PM »


Uploaded with ImageShack.us

Offline semselim

  • 10
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #5 on: November 07, 2010, 12:29:37 PM »
I cant up my server i think i need reconfigure raid how can fix it.
or which folder needs reinstall sme server recovery mailbox, because my clients use imap connection for mail box.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #6 on: November 07, 2010, 12:49:04 PM »
give the root password when requested

what's the output of
Code: [Select]
cat /proc/mdstat
?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #7 on: November 07, 2010, 02:52:21 PM »
The screenshot shows a root file system on /dev/root/main checking OK. The itshows an attempt to check /dev/md1, which apparently does not contain a file system.

Describe your hardware, and show /etc/fstab. Tell us some history - how did you set this system up, and what have you changed recently.
« Last Edit: November 08, 2010, 04:16:39 AM by CharlieBrady »

Offline semselim

  • 10
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #8 on: November 08, 2010, 07:04:45 AM »


Uploaded with ImageShack.us


Offline semselim

  • 10
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #9 on: November 08, 2010, 07:10:52 AM »


Offline semselim

  • 10
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #10 on: November 08, 2010, 07:17:38 AM »
I only need old email on server, if i can clean install sme server which file need for old configuration and old all mail data ?

thank you for your interest email data is very important

Offline Igi2003

  • ****
  • 226
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #11 on: November 08, 2010, 09:31:48 AM »
If you can read your md2 partition, you can try to backup all mail data to an tgz archive from all users with this command:
Code: [Select]
tar czvpf mailarchive.tgz /home/e-smith/files/users/*/Maildir/.
This works only if qmail is your default mail server with Horde or Open-Xchange.
If your use Zarafa, then all Mail were in an MySQL Database.

When you install a new server, you must first create all user accounts before restore the mailarchive.tgz

Good Luck

Offline semselim

  • 10
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #12 on: November 08, 2010, 10:20:41 AM »
thank you
 but after tar czvpf mailarchive.tgz /home/e-smith/files/users/*/Maildir/.

interrupt gzip: stdout: No space left on device

is this problem?

Offline Igi2003

  • ****
  • 226
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #13 on: November 08, 2010, 11:03:15 AM »
Yes, your HDD is full.
If you have an USB HDD, then mount this and create the mailarchive on this.
The USB HDD should be formatted with ext3 Filesystem.
Create an Directory with "mkdir /usbhdd" as root.
Connect the Drive to your SME then mount the partition to /usbhdd with this command "mount /dev/sda1 /usbhdd" if your USB Drive is sda.
When the drive is mounted, you can run tar to create your mailarchive with
Code: [Select]
tar czvpf /usbhdd/mailarchive.tgz /home/e-smith/files/users/*/Maildir/.To format the USB hdd and create the ext3 partition, use a Live CD like KNOPPIX for this or any partition tools who can create ext3 partitions.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #14 on: November 08, 2010, 03:48:34 PM »
email data is very important

Since that is the case, it is in your own interest to take the trouble to answer all the questions that are asked of you.

  Describe your hardware (including any extra drives you are trying to use).

 Tell us some history - how did you set this system up, and what have you changed recently.

In particular, we need to learn why your fstab expects there to be a /boot filesystem on /dev/md1, yet your raid system shows only /dev/md2.

Offline semselim

  • 10
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #15 on: November 08, 2010, 05:15:40 PM »
i find old acronis image use to system up but who take this image only one raid partiton this servers so after restart i took screen shots

know how can recovery my mail server?

Offline Igi2003

  • ****
  • 226
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #16 on: November 08, 2010, 07:28:23 PM »
You can copy your data to an external HDD manually and install a fresh server image from CD. Then recreate User Accounts and recover data from external HDD.

How you can do this, look a few posts up!

Offline semselim

  • 10
  • +0/-0
Re: !!!!URGENT!!!! How can recovery mail on imap server
« Reply #17 on: November 08, 2010, 07:57:42 PM »
i can recovery all email data
thank you everyone especially Igi2003