Line 1: |
Line 1: |
| + | ==Recovering SME Server with lvm drives== |
| + | |
| + | ==Method A== |
| Let’s try starting the raid and see what we get: | | Let’s try starting the raid and see what we get: |
| | | |
Line 95: |
Line 98: |
| [..] | | [..] |
| user@user-desktop:~$ | | user@user-desktop:~$ |
| + | |
| + | ==Method B== |
| + | based on http://www.linuxjournal.com/article/8874?page=0,0 |
| + | |
| + | on ubuntu (non lvm), install mdadm and lvm2, attach server drive, |
| + | |
| + | find UUID's |
| + | |
| + | $ sudo mdadm --examine --scan /dev/sdb1 /dev/sdb2 |
| + | ARRAY /dev/md2 level=raid1 num-devices=2 UUID=895293be:9cfa7672:f1761508:386417bc |
| + | ARRAY /dev/md1 level=raid1 num-devices=2 UUID=10573599:841f46aa:4c068816:67364324 |
| + | |
| + | |
| + | add ARRAY lines to mdadm.conf |
| + | |
| + | $ cat /etc/mdadm/mdadm.conf |
| + | # mdadm.conf |
| + | # |
| + | # Please refer to mdadm.conf(5) for information about this file. |
| + | # |
| + | |
| + | # by default, scan all partitions (/proc/partitions) for MD superblocks. |
| + | # alternatively, specify devices to scan, using wildcards if desired. |
| + | DEVICE partitions |
| + | ARRAY /dev/md2 level=raid1 num-devices=2 UUID=895293be:9cfa7672:f1761508:386417bc |
| + | ARRAY /dev/md1 level=raid1 num-devices=2 UUID=10573599:841f46aa:4c068816:67364324 |
| + | |
| + | |
| + | checking |
| + | |
| + | $ sudo pvscan |
| + | PV /dev/md2 VG main lvm2 [148.94 GB / 64.00 MB free] |
| + | Total: 1 [148.94 GB] / in use: 1 [148.94 GB] / in no VG: 0 [0 ] |
| + | |
| + | checking |
| + | |
| + | $ sudo lvscan |
| + | ACTIVE '/dev/main/root' [146.94 GB] inherit |
| + | ACTIVE '/dev/main/swap' [1.94 GB] inherit |
| + | |
| + | mount, check and copy to safe location ... |
| + | |
| + | $ sudo mkdir /mnt/ga |
| + | $ sudo mount /dev/main/root /mnt/ga |
| + | $ sudo ls -la /mnt/ga/var/log/messages |
| + | lrwxrwxrwx 1 root root 32 2010-03-24 18:00 /mnt/ga/var/log/messages -> /var/log/messages.20* |
| | | |
| <noinclude>[[Category:Howto]]</noinclude> | | <noinclude>[[Category:Howto]]</noinclude> |