Koozali.org: home of the SME Server

HA HighAvailability (clustering) on Smeserver7

jazbokes

HA HighAvailability (clustering) on Smeserver7
« on: December 22, 2006, 04:43:20 PM »
Has anyone be able to successfully install High-Availability on Smeserver7..
I have installed HA on centos/trixbox successfully but I am unable to install on smeserver7 due to limited smeserver7 skill..

http://linux-ha.org/

Trixbox/Linux-HA Howto

http://asteriskprojects.com/?page_id=4

Thanks
John..

guest22


jazbokes

HA HighAvailability (clustering) on Smeserver7
« Reply #2 on: December 25, 2006, 08:27:07 AM »
When I attempt to add a partion by running the following command , I get an error;

[root@voizedge ~]# e2fsck -f /dev/hda2
e2fsck 1.35 (28-Feb-2004)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/hda2

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>


Listed below is what my partition shows;


[root@voizedge ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/main-root
                      9.2G  2.0G  6.8G  23% /
/dev/md1               99M   19M   75M  21% /boot
none                  125M     0  125M   0% /dev/shm


[root@voizedge ~]# fdisk -l

Disk /dev/hda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

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

Disk /dev/md1: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

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

Disk /dev/md2: 10.6 GB, 10626990080 bytes
2 heads, 4 sectors/track, 2594480 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table
[root@voizedge ~]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/md2
  VG Name               main
  PV Size               9.88 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              316
  Free PE               1
  Allocated PE          315
  PV UUID               beCKMV-1h0r-rtPq-9f8P-lKR2-646o-ICvC1Z

[root@voizedge ~]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/main/root
  VG Name                main
  LV UUID                ejGOCz-EKwn-m0wm-20OM-UqCw-KFKV-8CNPLc
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                9.34 GB
  Current LE             299
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/main/swap
  VG Name                main
  LV UUID                jTY63d-6hvS-11Bl-ujwe-rYyU-706f-wzL1sx
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                512.00 MB
  Current LE             16
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:1

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
HA HighAvailability (clustering) on Smeserver7
« Reply #3 on: December 26, 2006, 07:01:13 PM »
Quote from: "jazbokes"
When I attempt to add a partion by running the following command , I get an error;

[root@voizedge ~]# e2fsck -f /dev/hda2
e2fsck 1.35 (28-Feb-2004)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/hda2


e2fsck is used to check an existing file system on a partition, not to create one.

Offline Gaston94

  • ****
  • 184
  • +0/-0
HA HighAvailability (clustering) on Smeserver7
« Reply #4 on: December 26, 2006, 09:15:51 PM »
Hi,
in addition to Charlie information, keep in mind that SME7 is built on a LVM partition which rely on a software raid.
This mean that, in your words, you should not consider /dev/hda2 but /dev/md2 when you are talking about partition,
you should not look at "physical" part like /dev/hda2.
Whenever, from initial install, the LV is using the full available space on the VG, you might need to shrink the initial
LV to be able to add a new LV on the VG.

G.