Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Informix [игнор отключен] [закрыт для гостей] / expiration policy and sotrage manager / 17 сообщений из 17, страница 1 из 1
11.05.2004, 22:29
    #32514028
Andron
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Хотелось бы знать, кто как определяет время хранения архивов в storage manager (любых, но больше всего интересует ISM и TSM).
C ISM у меня все просто - relabeling устройств и можно использовать по новой. Можно еще через ism_config установить retention period. А вот в Tivoli SM сложнее (пока разбираюсь). Там вроде надо работать через onsmsync - например выставить либо expiration date, или generation - и посе этого сам TSM уже будет разбираться, какие файлы архива с ленты удалять.
...
Рейтинг: 0 / 0
12.05.2004, 06:42
    #32514105
Выбегалло
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
В TSM это и правда неочевидно, но насколько я успел проверить, onsmsync работает только в одну сторону - он модифицирует sysutils таблицы (и boot record, она же ixbar файл). В обратную сторону, т.е. изменить сроки хранения в самом storage manager-е - только при помощи выставления expiration policy. В архивах IBM есть статья на эту тему, но доступ туда перекрыт.

В таком вот аксепте
...
Рейтинг: 0 / 0
12.05.2004, 09:53
    #32514252
Andron
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Вот попытался сделать onsmsync -g 3
bar_act.log :

2004-05-12 09:40:55 12958 10966 onsmsync -g 3
2004-05-12 09:42:26 12958 10966 Successfully connected to Storage Manager.
2004-05-12 09:45:09 12958 10966 XBSA Error (BSADeleteObject): An unspecified XBSA error has occured: 98
........
2004-05-12 09:45:43 12958 10966 ASSERT: file onsmsync.c line 183 - contact product support
2004-05-12 09:45:43 12958 10966 See also: /work/tmp/core

В чем может быть дело ?
До этого запускал onsmsync без параметров, он отработал нормально.
...
Рейтинг: 0 / 0
13.05.2004, 19:16
    #32517032
Выбегалло
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Выставь дебаггин параметр побольше в onconfig (BAR_DEBUG = 9) и смотри в файл, прописанный в BAR_DEBUG_LOG. Скорее всего, у тебя в $INFORMIXDIR/etc/ixbar файле какие-то старые записи, которые не находятся менеджером. Этот файл можно почистить ручками.

В таком вот аксепте
...
Рейтинг: 0 / 0
14.05.2004, 16:01
    #32518513
Andron
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Действительно, я тоже подозревал что в записях файла ixbar нечисто. После правки ixbar onsmsync с параметром generation отработал на ура.

ВыбегаллоВ обратную сторону, т.е. изменить сроки хранения в самом storage manager-е - только при помощи выставления expiration policy. В архивах IBM есть статья на эту тему, но доступ туда перекрыт.

Что значит перекрыт доступ? Требует авторизации ? Адресок статьи плиз в студию.
...
Рейтинг: 0 / 0
14.05.2004, 16:10
    #32518535
Выбегалло
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Сделай поиск по +onsmsync +tsm

http://www.ibm.com/search?lv=c&o=10&en=utf&v=11&lang=en&cc=us&q=%2Bonsmsync+%2Btsm&x=9&y=12


Ага, я вспомнил свой пароль !
-----------
Problem
Why are the Informix logs saved on the Tivoli Storage Manager (TSM) server not being expired?
Cause
The Data Protection for Informix does not have the capability to control the Informix backups performed by OnBar. It is only a library interface and redirects the data being backed up to the TSM server. Informix (OnBar) is actually doing the backup processing and TSM thus relies upon OnBar functionality for what is backed up and/or deleted.

In the 7.3 version of Informix there was no utility or OnBar command to manage the Informix logs. Since all the Informix log files are uniquely named, they will remain active on the TSM server and will not be removed during any expiration processing.

Solution

Version 9.21 of Informix has a "onsmsync" utility to assist with deletion/management of the Informix logs. The Informix Backup and Restore guide has information in Chapter 5 regarding the "onsmsync" utility and how it is used. This utility does not exist for the 7.3 version of Informix, but is in the 8.3 and 9.2 latest releases.

If the onsmsync utility exists, this can be used to expire/remove the Informix logs from the TSM Server. During the backup, the informix log files should be directed to a specific management class that goes to a different "stgpool" on the TSM Server and has the backup copygroup RetExtra versions parameter set to 0. Then using the onsmsync utility, logical logs can immediately be removed from the TSM-Server because the storage pool will not keep any inactive versions on TSM. This will work even on storage pools using DISK device class.

If the version of Informix that is being used does not have the onsmsync utility, then it is suggested to backup the Informix log files to a specific management class that goes to a different "stgpool" on the TSM Server. The tape volumes in this "stgpool" can be looked at and the volume deleted with "discarddata=yes" for those volumes that have not been updated since "X" number of days and thus are "X" days old.

To specify that the Informix logs go to a specific copy group, add an include statement that directs the backups to the management class that have been setup for the logs. The backup information for the logs shows:

"Node Name: INFCLIENT"
Session established with server TSMSVR: AIX-RS/6000
Server Version 4, Release 2, Level 1.0
Server date/time: 11/20/01 08:54:17 Last access: 11/20/01 08:54:02

Size Backup Date Mgmt Class A/I File
---- ----------- ---------- --- ----
500 B 11/02/01 20:41:59 DEFAULT A /ifmx07301/ifmx07301/10/753
500 B 11/02/01 20:42:00 DEFAULT A /ifmx07301/ifmx07301/10/754

Thus an include statement would be:
include /ifmx07301/ifmx07301/10/* MgmtClassName


Related information
Informix Back/Restore guide

---------------
В таком вот аксепте
...
Рейтинг: 0 / 0
18.05.2004, 17:40
    #32522761
Andron
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Там написано как решить проблему в версии информикса 7.3 (в которой нет onsmsync ). У меня информикс 9.3 и 9.4, я так понимаю использование onsmsync должно дать знак TSM что некоторые наборы данных больше неактуальны и их можно не хранить?
...
Рейтинг: 0 / 0
21.05.2004, 04:25
    #32527259
Выбегалло
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Я это так и не выяснил. Попробуй, нам расскажешь.

В таком вот аксепте
...
Рейтинг: 0 / 0
05.07.2004, 21:16
    #32590270
Andron
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
В общем проблема с неустойчивой работой onsmsync (c опцией generation) остается. Причем проявляется она только на AIX 4 и Informix 9.3, в AIX5L и Informix 9.4 работает нормально (клиент TDP 5 версии).
Что касается времени хранения архивов, они определяются политикой хранения TSM.
...
Рейтинг: 0 / 0
15.07.2004, 11:18
    #32605426
Andron
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Продолжаю эксперименты Informix & TSM. Поставил тестовый Informix 9.30.UC2 в AIX5L - onsmsync -g N работает, но зато не работает с опцией -t "date time". По всякому ставил переменную GL_DATETIME - ругается, пишет:
2004-07-14 16:56:27 913536 766046 onsmsync -t 2004-14-07 14:30:00
2004-07-14 16:56:28 913536 766046 Successfully connected to Storage Manager.
2004-07-14 16:56:28 913536 766046 onsmsync complete, returning -1263 (0xfffffb11)

(Код ошибки в finderr как раз указывает на неверные значения datetime).
Стал искать, кто неправ. Запустил то же самое (onsmsync -t "datetime") на informix 9.40.UC4 - работает на ура.
...
Рейтинг: 0 / 0
15.07.2004, 16:33
    #32606497
Vybegallo
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
AndronПродолжаю эксперименты Informix & TSM. Поставил тестовый Informix 9.30.UC2 в AIX5L - onsmsync -g N работает, но зато не работает с опцией -t "date time". По всякому ставил переменную GL_DATETIME - ругается, пишет:
2004-07-14 16:56:27 913536 766046 onsmsync -t 2004-14-07 14:30:00
2004-07-14 16:56:28 913536 766046 Successfully connected to Storage Manager.
2004-07-14 16:56:28 913536 766046 onsmsync complete, returning -1263 (0xfffffb11)

(Код ошибки в finderr как раз указывает на неверные значения datetime).
Стал искать, кто неправ. Запустил то же самое (onsmsync -t "datetime") на informix 9.40.UC4 - работает на ура.

Try "2004-14-07 14:30:00.0"
...
Рейтинг: 0 / 0
15.07.2004, 17:36
    #32606727
Andron
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Try "2004-14-07 14:30:00.0"

Я в кавычках и указываю date-time, это в логе просто onbar так пишет.


Проверил заодно версию 9.40.UC1 - onsmsync тоже работает.
...
Рейтинг: 0 / 0
15.07.2004, 18:01
    #32606834
Andron
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
To Vybegallo
Sorry, не заметил что ты указал доли секунд, попробовал так сделать - не работает.
...
Рейтинг: 0 / 0
15.07.2004, 19:47
    #32607025
Vybegallo
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Show me the output of
select current from systables .
Try to match the datetime format from that select.
...
Рейтинг: 0 / 0
16.07.2004, 09:00
    #32607283
Andron
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Вот вывод запроса (формат date-time) при установленной GL_DATETIME="%Y-%d-%m %H:%M:%S" :

........
(expression) 2004-16-07 08:55:08

(expression) 2004-16-07 08:55:08

(expression) 2004-16-07 08:55:08
.........

Т.е. значение для команды onsmsync я выбираю правильно. А ошибку получаю ту же самую. А на серверах других версий (9.40) это работает без ошибок.
...
Рейтинг: 0 / 0
16.07.2004, 17:36
    #32608824
Vybegallo
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
Looks like a bug. Try to test the latest 9.30.UC7 release.
--------
I. Performing a Point-in-Time Restore in a Non-English Locale

This information belongs in Chapter 3 where it discusses
point-in-time restore.

You must specify the date and time for a point-in-time restore
according to the conventions of your client locale. If the
GL_DATETIME environment variable is set, you must specify the
date and time according to that variable instead. For details, see
Appendix B of the "Backup and Restore Guide."
-------

43007 ERROR: Unable to convert datetime to string: <date_string>.

The date string could not be interpreted because the format
used did not match the format that ON-Bar expected.

Check for the values of environment variables related to internationalization
or localization (such as CLIENT_LOCALE and GL_DATETIME). If the environment
is set for localization, then make sure the date specified matches the local
format for dates. If no appropriate environment variables are set, then make
sure the date was specified in the standard SQL date format.
---------

Do you have AIX installed as english locale ? Try to unset all variables related to internationalization or localization.
...
Рейтинг: 0 / 0
20.07.2004, 12:08
    #32612171
Andron
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
expiration policy and sotrage manager
locale en_US, но это не влияет
...
Рейтинг: 0 / 0
Форумы / Informix [игнор отключен] [закрыт для гостей] / expiration policy and sotrage manager / 17 сообщений из 17, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]