Koozali.org: home of the SME Server

How to mount and copy data from a broken SME installation

m2mobi

How to mount and copy data from a broken SME installation
« on: April 22, 2006, 05:53:50 PM »
Hi there,

I'm a newbie to SME server and love it. I just install and copy data on the new server, but I wonder if for some reasons the SME installation was broken down so how I can boot the server by SystemRescueCD, Slax ..., mount the lvm and copy data from it to other place on the network or  third harddrive. Could you tell me how to or what to read to get that done.

Tks

PS: My installation is a 7.0 rc1 default installation with two harddisk

Offline psoren

  • *
  • 371
  • +0/-0
Re: How to mount and copy data from a broken SME installatio
« Reply #1 on: April 22, 2006, 09:05:33 PM »
Quote from: "m2mobi"
Hi there,

I'm a newbie to SME server and love it. I just install and copy data on the new server, but I wonder if for some reasons the SME installation was broken down so how I can boot the server by SystemRescueCD, Slax ..., mount the lvm and copy data from it to other place on the network or  third harddrive. Could you tell me how to or what to read to get that done.

Tks

PS: My installation is a 7.0 rc1 default installation with two harddisk


You should have a backup routine to cover that.

I have a RAID1 install. I use a USB harddrive and copy the data with a script in a cron job once a day from the server. For the real important stuff i burn it on a DVD now and then.
Paranoid...? No, but you just never know.......

Per

m2mobi

How to mount and copy data from a broken SME installation
« Reply #2 on: April 23, 2006, 07:19:36 AM »
Totally agree with you that I must have a backup routine to cover the risk, but what's if the server goes down just before the backup routine's executed. Is there any way to mount and just copy some urgent data, just in case :-)

Offline psoren

  • *
  • 371
  • +0/-0
Re: How to mount and copy data from a broken SME installatio
« Reply #3 on: April 23, 2006, 08:43:46 PM »
Quote from: "m2mobi"
Totally agree with you that I must have a backup routine to cover the risk, but what's if the server goes down just before the backup routine's executed. Is there any way to mount and just copy some urgent data, just in case :-)


OK, you first have to give it a mount point :
mkdir /mnt/olddisk (or whatever you want to)

Then you can try and mount it like this:
mount -t auto /dev/hdX2 /mnt/olddisk (where X is a,b,c or d, depends on where on the IDE bus it is. If you have SCSI it's sdX. The partition number is most likely number 2 for SME7.

You should find an old harddrive and see if you can get it to work so you don't have to experiment when you really just need to get it to work....

Per

m2mobi

How to mount and copy data from a broken SME installation
« Reply #4 on: April 24, 2006, 05:19:47 AM »
Tks Psoren, followed your instrution but it return error "wrong magic number" and "cannot find ext3". I think the cause for these errors is the volume group contains both swap logical volume and ext3 logical volume.

I have found that I can easily mount and copy data from SME disk by connect it to a CentOS system.

Offline psoren

  • *
  • 371
  • +0/-0
Re: How to mount and copy data from a broken SME installatio
« Reply #5 on: April 24, 2006, 10:38:56 AM »
Quote from: "m2mobi"
Tks Psoren, followed your instrution but it return error "wrong magic number" and "cannot find ext3". I think the cause for these errors is the volume group contains both swap logical volume and ext3 logical volume.

I have found that I can easily mount and copy data from SME disk by connect it to a CentOS system.


Which SME version have you tested it on? SME7 is a Centos 4.2  SME6 is ResHat 7.3

Per

m2mobi

How to mount and copy data from a broken SME installation
« Reply #6 on: April 24, 2006, 01:17:09 PM »
My SME installation is SME 7 rc1, I tried to boot and mount logical volume in SME by systemrescuecd-x86-0.2.16; INSERT-1.3.6_en; slax-5.0.7 with no luck. I installed CentOS 4.2, run Logical Volume Manager then I could mount and copy data from SME disk. All these tests are in VMWare.

Still trying to find better way :-)

Offline psoren

  • *
  • 371
  • +0/-0
Re: How to mount and copy data from a broken SME installatio
« Reply #7 on: April 24, 2006, 05:42:57 PM »
Quote from: "m2mobi"
My SME installation is SME 7 rc1, I tried to boot and mount logical volume in SME by systemrescuecd-x86-0.2.16; INSERT-1.3.6_en; slax-5.0.7 with no luck. I installed CentOS 4.2, run Logical Volume Manager then I could mount and copy data from SME disk. All these tests are in VMWare.

Still trying to find better way :-)


Ok, my knowledge is limited on these things, so i can only advise on what i have tried myself. So i don't think i can give you more... Sorry, good luck on trying.

Per