Update Baculi

In: Internet|Job / Praca|NetBSD

14 paź 2009

Dzięki za regularne odwiedziny na moim blogu! Jeśli uważasz, że jest on godny polecenia to śmiało wyślij link do niego lub link do kanału RSS albo subskrypcje przez e-mail znajomym. Dzięki !

Wykonałem update baculi z wersji 2.4.4 do 3.0.2 z pkgsrc. Restart całości spowodował brak mozliwości podłączenia sie do konsoli zarówno na serwerze jak i z klienta. /etc/rc.d/bacula status pokazywała jedynie że file demon i storage demon działają natomiast director nie. Żadnych logów jednak nie ma. Reinstaluję ręcznie, taka sama sytuacja. Odinstalowuję i instaluję jeszcze raz od zera – taka sama sytuacja. Czytam wszystkie komunikaty, między innymi ten:

If you’re upgrading to bacula-3.0.2 from 1.38.x or earlier, you MUST
recreate your catalog database or upgrade your old database using the
/usr/pkg/libexec/bacula/update_bacula_tables script. Later updates will
not require upgrading the database again.

Jak widać nie kwalifikuję się na update tabel. Na wszelki wypadek jednak odpalam ten skrypt po uprzednim lekkim poprawieniu z:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# This routine alters the appropriately configured
#  Bacula tables for PostgreSQL, MySQL, or SQLite.
#
if test xsqlite = xmysql -o xsqlite3 = xmysql ; then
  echo "Altering SQLite tables"
  /usr/pkg/libexec/bacula/update_mysql_tables $*
fi
if test xmysql = xmysql ; then
  echo "Altering MySQL tables"
  /usr/pkg/libexec/bacula/update_mysql_tables $*
fi
if test xpostgresql = xmysql ; then
  echo "Altering PostgreSQL tables"
  /usr/pkg/libexec/bacula/update_postgresql_tables $*
fi

aby nie było:

1
Altering MySQL tables
1
2
This script will update a Bacula MySQL database from version 10 to 11
 which is needed to convert from Bacula version 2.0.x to 3.0.x or higher
1
2
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Update of Bacula MySQL tables failed.

(Jak widać komunikat o konieczności udate’u nadal mnie nie dotyczy)

na

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# This routine alters the appropriately configured
#  Bacula tables for PostgreSQL, MySQL, or SQLite.
#
if test xsqlite = xmysql -o xsqlite3 = xmysql ; then
  echo "Altering SQLite tables"
  /usr/pkg/libexec/bacula/update_mysql_tables $*
fi
if test xmysql = xmysql ; then
  echo "Altering MySQL tables"
  /usr/pkg/libexec/bacula/update_mysql_tables <strong>-uroot -p bacula</strong>$*
fi
if test xpostgresql = xmysql ; then
  echo "Altering PostgreSQL tables"
  /usr/pkg/libexec/bacula/update_postgresql_tables $*
fi

i w końcu po chwili:

1
Altering MySQL tables
1
2
This script will update a Bacula MySQL database from version 10 to 11
 which is needed to convert from Bacula version 2.0.x to 3.0.x or higher
1
Enter password:
1
Update of Bacula MySQL tables succeeded.

Następnie restart baculi i … tadam ! Wszystko ruszyło tak jakby sie nic nie działo!

Wiadomo, że telewizja kłamie, ale żeby dokumentacja?

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Related Posts with Thumbnails

Popularity: 2% [?]

Zainteresowany tematem "Wycinek Bazy 8220Błąd bazy8221 facebook8217a"? Sprawdź ten link!

© odwiedź stronę http://maciejewski.org po więcej fajnych postów!

Dodaj post do:
  • Wykop
  • Gwar
  • OSnews.pl
  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • Blip
  • co-robie
  • email
  • Facebook
  • Flaker
  • Google Bookmarks
  • Google Buzz
  • LinkedIn
  • MySpace
  • PDF
  • Ping.fm
  • RSS
  • StumbleUpon
  • Twitter
  • Śledzik
If you enjoyed this post, make sure you subscribe to my RSS feed!

 Viewed 77 times by 39 viewers

Podobne posty

1 Komentarz to Update Baculi

Avatar

morr POLAND NetBSD Mozilla 1.9.1.3

Październik 14th, 2009 at 12:00 pm

Dlatego admini nie czytaja dokumentacji do programów ;->

VA:F [1.9.3_1094]
Rating: 0.0/5 (0 votes cast)
VA:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Skomentuj

Co znajdziesz na tym blogu

Witaj czytelniku! Nazywam się Bartosz Maciejewski i jestem Administratorem sieci oraz systemów UNIX/Windows. Na moim blogu znajdziesz zatem wpisy dotyczące głównie tej tematyki. Od czasu do czasu pisuję też bardziej prywatnie zwłaszcza o mojej córce Tosi Miłego Czytania! EOF ;)

  • New NetBSD developer « Shinden’s Lair: [...] it’s official and couple of people already had mentioned this, I’ll write on my bl [...]
  • Tomek: Maniak to Ty jednak jesteś ;-) [...]
  • witnes: Noo, dużo lepszy ten theme :) wszystko bardziej przejrzyste. [...]
  • Marcin: 1 ) kable puszcza się w peszlach mrozoodpornych 2 ) mikrotiki się ekranuje puszkami eluminiowymi [...]
  • Krysti: Piękne produkcje! Gear of War... Grałem. Mnie osobiście bardzo się podobała. Aczkolwiek uważam [...]

Reklama

Postaw mi Piwo!


Komentujący:

Najwięcej napisali:
  1. Bartosz Maciejewski (4)
  2. blinkkin (2)
  3. anonymous (1)
  4. Krysti (1)
  5. Marcin (1)
  6. Michał (1)
  7. Prawo jazdy (1)
  8. Tomasz Kowalczyk (1)
  9. Tomek (1)
  10. Turosław (1)
  11. witnes (1)
  12. Zbigniew (1)

Flickr

www.flickr.com
This is a Flickr badge showing public items from bartosz.maciejewski tagged with mobile. Make your own badge here.
  • RSS
  • Blip
  • Twitter
  • Facebook
  • GoldenLine
  • LinkedIn
  • Flickr