User Tools

Site Tools


Grow filesystem and moving mail system data

gpart add -t freebsd-ufs -s 14G vtbd0s1
gpart add -t freebsd-swap vtbd0s1
glabel label z64swap2 vtbd0s1e
swapon /dev/label/z64swap2
swapoff /dev/label/z64swap
gpart delete -i2 vtbd0s1
gpart delete -i4 vtbd0s1
gpart resize -i1 vtbd0s1
growfs -y /
 
mkdir -p /var/spool/exim.bak
rsync -a --delete /data/exim/ /var/spool/exim.bak/
service exim stop
rsync -a --delete /data/exim/ /var/spool/exim.bak/
rm /var/spool/exim
mv /var/spool/exim.bak /var/spool/exim
service exim start
 
mkdir -p /var/db/pgsql.bak
rsync -a --delete /data/pgsql/ /var/db/pgsql.bak/
service pgsql stop
rsync -a --delete /data/pgsql/ /var/db/pgsql.bak/
rm /var/db/pgsql
mv /var/db/pgsql.bak /var/db/pgsql
service pgsql start

First PagePrevious PageBack to overviewNext PageLast Page