Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: guest22 on December 30, 2007, 10:15:41 PM
-
Hi,
I have an 'old' e-smith HD that I want to mount under my current SME 7.3 servers' HD '/mnt/hd'. Trying to find out what data is on there and yes, it' mine ;-)
The disk is hardwired as hdb and fdisk tells me:
Disk /dev/hdb: 20.4 GB, 20485785600 bytehdb1
255 heads, 63 sectors/track, 2490 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 fd Linux raid autodetect
/dev/hdb2 14 2490 19896502+ fd Linux raid autodetect
So the drive is there, and I can mount /dev/hdb1 with no problems (mount /dev/hdb1 /mnt/hd), but trying to mount /dev/hdb2 I get: 'mount: you must specify the filesystem type'.
Whatever fs (-t filesystemtype) I try, it will never mount complaining an unknow fs type or other default mount error messages. I guess it has something to do with the raid, but I can't figure it out.
The kernel version hosted on this HD is: 2.6.9-11 dated august 2005. with an initrd dated august 20, 2005.
Bottom line, any chance you have some tips for me to get this /dev/hdb2 mounted correctly please?
Help appreciated, TIA
guest
-
http://wiki.contribs.org/Recovering_SME_Server_with_lvm_drives
-
Thanks Byte, very helpfull.
Figuered it out (used /dev/md8 as temp), but get stuck after: cat /proc/mdstat
mdadm -AR /dev/md8 /dev/hdb2
mdadm: /dev/md8 has been started with 1 drive (out of 2).
cat /proc/mdstat
Personalities : [raid1]
md8 : active raid1 hdb2[0]
19896384 blocks [2/1] [U_]
md2 : active raid1 hda2[0]
40041920 blocks [2/1] [U_]
md1 : active raid1 hda1[0]
104320 blocks [2/1] [U_]
unused devices: <none>
Then, pvs shows:
PV VG Fmt Attr PSize PFree
/dev/md2 main lvm2 a- 38.16G 32.00M
So no /dev/md8...
Thanks
guest
-
Can you show the output of:
mdadm -E /dev/hdb2
-
mdadm -E /dev/hdb2
/dev/hdb2:
Magic : a92b4efc
Version : 00.90.00
UUID : 05faa05b:f23d2a04:3ff3edfa:bef7ca7b
Creation Time : Sat Aug 20 17:28:49 2005
Raid Level : raid1
Raid Devices : 2
Total Devices : 1
Preferred Minor : 2
Update Time : Sat Jul 14 10:18:11 2007
State : clean
Active Devices : 1
Working Devices : 1
Failed Devices : 1
Spare Devices : 0
Checksum : 2b31fb72 - correct
Events : 0.646899
Number Major Minor RaidDevice State
this 0 3 2 0 active sync /dev/hda2
0 0 3 2 0 active sync /dev/hda2
1 1 0 0 1 faulty removed
-
Try swapping /dev/hdb2 to /dev/hda2
-
/dev/hda is the boot drive of the machine that also holds the /dev/hdb drive....
To make it easy on myself, I'll boot from the 'old' (/dev/hdb) drive and see if I can scp 'important' files to another machine.
Thanks,
guest
-
Hi,
the issue, I guess, you are encountering is related to the LVM.
your old disk came from a SME7 raid+lvm system , isn't it ? So it have both raid and lvm configuration on it.
Managing the raid device through /dev/md8 is solving the raid part of the problem
But you are stuck with the lvm one : you cannot activate on the same system two VG with the same name
you have to way to solve this :
- the hard one : editing the lvm structure to change the VG name from "main" to "oldmain" for instance. You should find this solution on some of my posts (this solution is working and safe as far as you understand it).
- the easy and safer one : boot on SME 7 install disk and rename the vg from there (you should understand what you are about to do from here too ;) - cross check which disk you are addressing)
both way where discussed there : http://forums.contribs.org/index.php?topic=33553.msg154352#msg154352
G.