mick703
ADSM.ORG Member
- Joined
- Nov 18, 2008
- Messages
- 38
- Reaction score
- 0
- Points
- 0
Hi all,
I try to do a stgpool recovery after I successfully restore the database back to a point of time. I am using tsm 5.5 with IBM ts3100 single drive tape library. I have got the offsite data tape with a full db backup tape. What I did is as follows
1. set up the tsm server
2. config the device such as library, drive, path and devclass so the server can talk to the library. That works.
3. put the db backup tape into the i/o station and check it into the library. That works.
4. ./dsmserv restore db volumenames=000003L3 devclass=LTO_CLASS_1 commit=yes
That works and db restored.
5. with the retored db I have to update the device settings. So I update the library, drive path and keep the devclass unchanged.
6. So far there is only one db backup tape in the library which is 000003L3 but it has been dismounted from the library after db recovery.
7. I do a audit library. >audit library TS3100 checklabel=barcode. And it found the only lib volume 000003L3 and deleted the other inventory records.
8. I want to restore the backuppool wich is the primary stgpool in the disk with the offsite data tape 000023L3
9. I check the volumes using .
>q volume and I found this
000023L3 OFFSITE LTO_CLASS_1 0.0 0.0 Empty
000021L3 OFFSITE LTO_CLASS_1 762,938.0 15.5 Filling
It seems that this volume has been expired and can not be used for restored. Is that right? And I do
>q drmdia and I got this
Volume Name State Last Update Automated
Date/Time LibName
---------------- ----------------- ------------------- ----------------
000021L3 Mountable 10/29/2008 09:05:29
000023L3 Vault retrieve 10/23/2008 19:16:49
000003L3 Mountable 10/30/2008 08:00:29 TS3100
000017L3 Mountable 10/23/2008 09:00:32
So is it expired by the tsm and can not be used any more?
10. I understand that offsite tape is a little bit old and I try another offsite tape 000021L3 which has not been expired by tsm.
11. I check in the tape 000021L3 to the library TS3100 and do
>q libv
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------------- ---------- --------- ------- ------
TS3100 000003L3 Private DbBackup 4,096 LTO
TS3100 000021L3 Private 4,097 LTO
>q drmedia
Volume Name State Last Update Automated
Date/Time LibName
---------------- ----------------- ------------------- ----------------
000021L3 Mountable 10/29/2008 09:05:29 TS3100
Does that mean tsm has already take it back into the library and it is ready for use?
12. Then I do
>q content 000021L3 and it shows up the content in this volume and it seems fine.
13. I try to do
>restore stgpool backuppool preview=yes
And I got this
ANR1239I Restore preview of primary storage pool BACKUPPOOL has ended. Files
Restored: 0, Bytes Restored: 0.
These are my stgpool
BACKUPPOOL DISK 162 G 27.2 1.3 80 70 TAPEPOOL
OFFSITE LTO_CLASS- 7,629 G 1.6
_1
>q volume
Volume Name Storage Device Estimated Pct Volume
Pool Name Class Name Capacity Util Status
------------------------ ----------- ---------- --------- ----- --------
/srv/tsm/data01.dsm BACKUPPOOL DISK 0.0 0.0 Off-Line
/srv/tsm/data02.dsm BACKUPPOOL DISK 0.0 0.0 Off-Line
/srv/tsm/data03.dsm BACKUPPOOL DISK 0.0 0.0 Off-Line
The old backuppool volumes are all offline at the moment as they do not physically exist in the recovery server.
My questions are:
1. How can I restore stgpool with the offsite tapes as I always got success with nothing restored?
2. Do I have to create a new volume on the disk under backuppool since the old volumes are no longer available in the new server?
3. Do I have to mark the old volumes as destroyed before I run restore stgpool command? What is the right way to restore the primary stgpool as I always got nothing restored?
4. If I can check the offsite tapes back into the library and updated library recognize them, client nodes should be able to get files back directly from the copy stgpool volumes. Right? But I really want to get the data from tapes back to the disk first and then clients can access data from disk instead of slow tapes.
I am not using DRM, so I do all the tasks manually. Can anyone give me some idea on how to do that? I stucked after db restored and couldn't get it. Thanks in advance.
mick
I try to do a stgpool recovery after I successfully restore the database back to a point of time. I am using tsm 5.5 with IBM ts3100 single drive tape library. I have got the offsite data tape with a full db backup tape. What I did is as follows
1. set up the tsm server
2. config the device such as library, drive, path and devclass so the server can talk to the library. That works.
3. put the db backup tape into the i/o station and check it into the library. That works.
4. ./dsmserv restore db volumenames=000003L3 devclass=LTO_CLASS_1 commit=yes
That works and db restored.
5. with the retored db I have to update the device settings. So I update the library, drive path and keep the devclass unchanged.
6. So far there is only one db backup tape in the library which is 000003L3 but it has been dismounted from the library after db recovery.
7. I do a audit library. >audit library TS3100 checklabel=barcode. And it found the only lib volume 000003L3 and deleted the other inventory records.
8. I want to restore the backuppool wich is the primary stgpool in the disk with the offsite data tape 000023L3
9. I check the volumes using .
>q volume and I found this
000023L3 OFFSITE LTO_CLASS_1 0.0 0.0 Empty
000021L3 OFFSITE LTO_CLASS_1 762,938.0 15.5 Filling
It seems that this volume has been expired and can not be used for restored. Is that right? And I do
>q drmdia and I got this
Volume Name State Last Update Automated
Date/Time LibName
---------------- ----------------- ------------------- ----------------
000021L3 Mountable 10/29/2008 09:05:29
000023L3 Vault retrieve 10/23/2008 19:16:49
000003L3 Mountable 10/30/2008 08:00:29 TS3100
000017L3 Mountable 10/23/2008 09:00:32
So is it expired by the tsm and can not be used any more?
10. I understand that offsite tape is a little bit old and I try another offsite tape 000021L3 which has not been expired by tsm.
11. I check in the tape 000021L3 to the library TS3100 and do
>q libv
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------------- ---------- --------- ------- ------
TS3100 000003L3 Private DbBackup 4,096 LTO
TS3100 000021L3 Private 4,097 LTO
>q drmedia
Volume Name State Last Update Automated
Date/Time LibName
---------------- ----------------- ------------------- ----------------
000021L3 Mountable 10/29/2008 09:05:29 TS3100
Does that mean tsm has already take it back into the library and it is ready for use?
12. Then I do
>q content 000021L3 and it shows up the content in this volume and it seems fine.
13. I try to do
>restore stgpool backuppool preview=yes
And I got this
ANR1239I Restore preview of primary storage pool BACKUPPOOL has ended. Files
Restored: 0, Bytes Restored: 0.
These are my stgpool
BACKUPPOOL DISK 162 G 27.2 1.3 80 70 TAPEPOOL
OFFSITE LTO_CLASS- 7,629 G 1.6
_1
>q volume
Volume Name Storage Device Estimated Pct Volume
Pool Name Class Name Capacity Util Status
------------------------ ----------- ---------- --------- ----- --------
/srv/tsm/data01.dsm BACKUPPOOL DISK 0.0 0.0 Off-Line
/srv/tsm/data02.dsm BACKUPPOOL DISK 0.0 0.0 Off-Line
/srv/tsm/data03.dsm BACKUPPOOL DISK 0.0 0.0 Off-Line
The old backuppool volumes are all offline at the moment as they do not physically exist in the recovery server.
My questions are:
1. How can I restore stgpool with the offsite tapes as I always got success with nothing restored?
2. Do I have to create a new volume on the disk under backuppool since the old volumes are no longer available in the new server?
3. Do I have to mark the old volumes as destroyed before I run restore stgpool command? What is the right way to restore the primary stgpool as I always got nothing restored?
4. If I can check the offsite tapes back into the library and updated library recognize them, client nodes should be able to get files back directly from the copy stgpool volumes. Right? But I really want to get the data from tapes back to the disk first and then clients can access data from disk instead of slow tapes.
I am not using DRM, so I do all the tasks manually. Can anyone give me some idea on how to do that? I stucked after db restored and couldn't get it. Thanks in advance.
mick