mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
The old "zulip_internal" name was from back when Zulip, Inc. had two distributions of Zulip, the enterprise distribution in puppet/zulip/ and the "internal" SAAS distribution in puppet/zulip_internal. I think the name is a bit confusing in the new fully open-source Zulip work, so we're replacing it with "zulip_ops". I don't think the new name is perfect, but it's better. In the following commits, we'll delete a bunch of pieces of Zulip, Inc.'s infrastructure that don't exist anymore and thus are no longer useful (e.g. the old Trac configuration), with the goal of cleaning the repository of as much unnecessary content as possible.
24 lines
619 B
Bash
Executable File
24 lines
619 B
Bash
Executable File
#!/bin/sh
|
|
umount /mnt
|
|
yes | mdadm --create /dev/md0 --raid-devices=2 --level=1 /dev/xvdb /dev/xvdc
|
|
|
|
blockdev --setra 4096 /dev/xvdb
|
|
blockdev --setra 4096 /dev/xvdc
|
|
blockdev --setra 4096 /dev/md0
|
|
echo deadline > /sys/block/xvdb/queue/scheduler
|
|
echo deadline > /sys/block/xvdc/queue/scheduler
|
|
|
|
mkfs.xfs /dev/md0
|
|
echo "/dev/md0 /srv xfs noatime,barrier 1 1" >> /etc/fstab
|
|
mount /srv
|
|
|
|
pg_ctlcluster 9.1 main stop
|
|
mv /var/lib/postgresql /srv
|
|
ln -s /srv/postgresql/ /var/lib
|
|
|
|
mv /tmp /srv
|
|
mkdir /tmp
|
|
mount --bind /srv/tmp /tmp
|
|
echo "/srv/tmp /tmp bind defaults,bind 0 0" >> /etc/fstab
|
|
pg_ctlcluster 9.1 main start
|