Skip to main content

Posts

Showing posts from March, 2011

DRBD LVM - Lower device is already claimed

Taken from here This is put here for my reference, in case the above link ever breaks . When you use a DRBD device as an underlying block device for lvm as described in the drbd manual you may face the following error after reboot and start DRBD. Lower device is already claimed The reason is the lack of the lvm.conf in the initramfs. To add this file to the initramfs simply follow these steps: edit the file /usr/share/initramfs-tools/hooks/lvm2  and add [ -r /etc/lvm/lvm.conf ] && mkdir $DESTDIR/etc/lvm && cp /etc/lvm/lvm.conf $DESTDIR/etc/lvm  after the lines contains cp -p /etc/udev/rules.d/85-lvm2.rules ${DESTDIR}/etc/udev/rules.d so that it looks like cp -p /etc/udev/rules.d/85-lvm2.rules ${DESTDIR}/etc/udev/rules.d [ -r /etc/lvm/lvm.conf ] && mkdir $DESTDIR/etc/lvm && cp /etc/lvm/lvm.conf $DESTDIR/etc/lvm then you have to rebuild the initramfs using update-initramfs -u and to restart the system in order to modifications can take ef

Best iphone ssh client for Mikrotik

I purchased 'ssh client' for iphone, which was $1.29 - the cheapest paid ssh app for iphone. Pretty rude looking compared to p-term, which I had used previously. ssh-client works ok for linux and cisco, but carriage return is a fail for my mikrotik gear. I found a free ssh client for iphone called zaTelnet, which works ok, although I don't like the keyboard as much as the standard one that p-term uses. Looks like I will be paying the NZD$6.49 for pterm. It also supports colour :)

Rate limiting MPLS / VPLS traffic

VPLS transports Layer2 frames and doesn't care about IP. If you try to queue or mangle traffic over a VPLS tunnel, it doesn't work. You need to use bridge-filters to mangle the traffic and queue-trees rather than simple queues. Queue-trees are more powerful than simple queues, get used to them. Simple scenario: You want to limit traffic from CustA2 to CustA1 at 256k.