Define deviceclass

tsmboys

ADSM.ORG Member
Joined
Jan 9, 2009
Messages
109
Reaction score
0
Points
0
Location
India
Hi

I am following error while creating devclass.


tsm: SVR-EBS>define devclass tsm2 devtype=file mountlimit=25 maxcapacity=3000mb directory=/mgr1

ANR2017I Administrator ADMIN issued command: DEFINE DEVCLASS tsm2 devtype=file mountlimit=25 maxcapacity=3000mb directory=/mgr1
ANR8366E DEFINE DEVCLASS: Invalid value for MAXCAPACITY parameter.
ANS8001I Return code 3.
ANR2017I Administrator ADMIN issued command: ROLLBACK

1) Here i have to assign 997GB disk (/mgr1) to TSM for taking oracle backups.can anybody help me to create this devclass?


any help appreciated
 
I think you need to put maxcapacity=3000M and not maxcapacity=3000mb
 
Hi

I have to take 800 GB backup to SAN disk attached to TSM server
so i tried to create 900 GB stgpool by creating devclass as follows


tsm: BGL-SVR-EBS>update devclass MGR1 maxcapacity=65000M
ANR2205I Device class MGR1 updated.

tsm: BGL-SVR-EBS>update devclass MGR1 maxcapacity=67000M
ANR8366E UPDATE DEVCLASS: Invalid value for MAXCAPACITY parameter.
ANS8001I Return code 3.


1)In TSM Admin book it is mentioned that max capacity of devclass
volume is 64GB.


2)How I have to assign 900Gb to one stgpool and take backup of
800Gb oracle database ?




Any help appreciated.
 
Define Devclass

Hi quinstear,

Thanks for reply

I have created 66GB for particular devclass.

Now I have to take 800 GB backup to SAN disk attached to TSM server
so i tried to create 900 GB stgpool by creating devclass as follows


tsm: BGL-SVR-EBS>update devclass MGR1 maxcapacity=65000M
ANR2205I Device class MGR1 updated.

tsm: BGL-SVR-EBS>update devclass MGR1 maxcapacity=67000M
ANR8366E UPDATE DEVCLASS: Invalid value for MAXCAPACITY parameter.
ANS8001I Return code 3.


1)In TSM Admin book it is mentioned that max capacity of devclass
volume is 64GB.


2)How I have to assign 900Gb to one stgpool and take backup of
800Gb oracle database ?



Any help appreciated.
 
There is a MAXCAPACITY value (I believe it is 64GB but not sure since I haven't defined a DEVCLASS FILE of this size) but this does not mean that you can't backup files when you reach the max value.

TSM will continue to write data and create a new FILE with different file attributes (a different file suffix), and the only limitation is the disk space you have allocated for this.
 
Last edited:
Hi Moon

Thanks for response.

In below link i have studied that maxcapacity is 64GB

http://www.urz.uni-heidelberg.de/ADSM/ibmdoc.tsm41/html/aix/reference/anrarf73.htm#HDRDDDCOM

I think you must have studied below posts and you know my requirements

here i am taking 800 gb backup and just now i have started backups by creating below storage pools.

Can you guide me whether it will work or not?

tsm: BGL-SVR-EBS>q stgpool
Session established with server BGL-SVR-EBS: AIX-RS/6000
Server Version 5, Release 3, Level 2.0
Server date/time: 03/10/09 18:30:50 Last access: 03/10/09 18:23:52


Storage Device Estimated Pct Pct High Low Next Stora-
Pool Name Class Name Capacity Util Migr Mig Mig ge Pool
Pct Pct
----------- ---------- ---------- ----- ----- ---- --- --
MGR1
MGR1 6,500 G 0.5 1.0 100 70 MGR2
(Primary stgpool) (nextstorage pool)

MGR10
MGR10 0.0 M 0.0 0.0 10070
MGR11


MGR11
MGR11 0.0 M 0.0 0.0 100 70
MGR12


MGR12
MGR12 0.0 M 0.0 0.0 100 70
MGR13


MGR13
MGR13 0.0 M 0.0 0.0 100 70
MGR14


MGR14
MGR14 0.0 M 0.0 0.0 100 70
MGR15

MGR15
MGR15 0.0 M 0.0 0.0 90 70


MGR2
MGR2 0.0 M 0.0 0.0 90 70 MGR3

MGR3
MGR3 0.0 M 0.0 0.0 90 70 MGR4

MGR4
MGR4 0.0 M 0.0 0.0 90 70 MGR5

MGR5
MGR5 0.0 M 0.0 0.0 90 70 MGR6

MGR6
MGR6 0.0 M 0.0 0.0 90 70 MGR7

MGR7
MGR7 0.0 M 0.0 0.0 90 70 MGR8

MGR8
MGR8 0.0 M 0.0 0.0 90 70 MGR9

MGR9
MGR9 0.0 M 0.0 0.0 90 70 MGR10


Queries

1) I have created primary storage pool MGR1(65GB) and i have assigned next storage pool as MGR2(65GB)
so i think once the primary stgpool is filled the server will automatically transfers data to next stgpool and so on...

I have turned of migration and reclamation find attached file for details.

this will work or not ?


Any help appreciated.
 

Attachments

  • q stgpool command.txt
    3.1 KB · Views: 7
Hi Moon

Can you guide me whether it will work or not?

Queries


1) I have created primary storage pool MGR1(65GB) and i have assigned next storage pool as MGR2(65GB)
so i think once the primary stgpool is filled the server will automatically transfers data to next stgpool and so on...

I have turned of migration and reclamation find attached file for details.

this will work or not ?

Any help appreciated.

The way devclass=FILE works is that you basically don't have to specify individual FILE allocations. TSM will just create the next file if the incoming data will be too big to fit on the current FILE (the maximum limit of the number of files is defined on how big is your allocated space). Here is what TSM does as quoted (from "help define devclass"):

While processing the command, the server expands the specified directory name or names into their fully qualified forms, starting from the root directory. If the server needs to allocate a scratch volume, it creates a new file in one of these directories. (The server can
choose any of the directories in which to create new scratch volumes.) For scratch volumes used to store client data, the file created by the server has a file name extension of .bfs. For scratch volumes used to store export data, a file name extension of .exp is used. For example, if you define a device class with a directory of tsmstor and the server
needs a scratch volume in this device class to store export data, the file that the server creates might be named /tsmstor/00566497.exp.

Note:

You must ensure that storage agents can access newly created FILE volumes. Failure of the storage agent to access a FILE volume can cause operations to be retried on a LAN-only path or to fail. For more information, see the description of the DIRECTORY parameter in DEFINE PATH (Define a Path).

Thus, you really don't have to do all that work. To be honest, I don't know if your procedure will work since I have not done anything like this before.
 
1)In TSM Admin book it is mentioned that max capacity of devclass
volume is 64GB.


2)How I have to assign 900Gb to one stgpool and take backup of
800Gb oracle database ?

Set the max cap to 64 GB (that's 65536M by the way).

Then change your stgpool's maxscratch value (upd stgpool...) to be at least 900/64 volumes. As you will want to store multiple copies for previous days it will prob need to be multiple times higher than that.
 
Define devclass

Hi Moon/BBB


So your asking me to create only one devcie class(MGR1) in /mgr1
directory like below and assign the storage pool maxsize to 900GB
correct ?


>define devclass mgr1 devtype=file mountlimit=25 maxcapacity=64000M
directory=/mgr1

>define stgpool mgr1 mgr1 pooltype=primary maxsize=900000m
access=readwrite collocate=no maxscratch=100




Any help appreciated
 
>define stgpool mgr1 mgr1 pooltype=primary maxsize=900000m
access=readwrite collocate=no maxscratch=100

Don't set maxsize=9000000m you are misunderstanding what that setting is for. Setting maxscratch=100 will give you 100*64000MB of space in that pool assuming you have enough disk space.
 
Define devclass

Hi BBB

Thanks for response.

So if i give below command,i can able to assign 900Gb to one stgpool (mgr1) and take backup of 800Gb oracle database ? correct ?


>define stgpool mgr1 mgr1 pooltype=primary maxsize=67000m
access=readwrite collocate=no maxscratch=100

For your information i have below storage space in filesystem

bash-2.05b$ df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/mgr_ebslv 998.00 997.85 1% 5 1% /mgr1
bash-2.05b$



Any help appreciated..





Information to forum members

As mentioned in the below post we have created 15 storage pools
and assigned the storage pools with primary storage pools and next storage pools like mentioned in below posts.

This method is completely failure and we are unable to take 800GB
backup even after 15 hours and it is skipping the files as shown below
so please don't use this method in any production scenario.


bash-2.05b$ du -sg *

47.50 000043db.bfs
63.48 000043dc.bfs
63.48 000043e0.bfs
63.48 000043e4.bfs
63.48 000043e5.bfs
0.68 000043e6.bfs
63.48 000043e7.bfs
0.69 000043e8.bfs
38.89 000043e9.bfs
0.69 000043ea.bfs
0.02 000043eb.bfs
0.00 000043ec.bfs
0.20 000043ed.bfs
0.25 000043f1.bfs
0.27 000043f2.bfs
0.00 lost+found
bash-2.05b$
bash-2.05b$
 
nope... maxsize=670000m is wrong.. maxsize is another issue (maximum size limit of a file that storing in this storage pool). do not use maxsize parameter in your command. maxscr is your key and calculate it with your volumes (if in your device class definition it's 67000M just 900000/67000=your maxscr) but give more than this like 100 ;)
 
Define device class

Hi Nezih,

Thanks for your response and sorry instead of 64000M i gave it as 670000m

as per below link it is mentioned that the maxsize of disk volume is
64GB

http://www.urz.uni-heidelberg.de/ADS....htm#HDRDDDCOM

so here i am planning to create one stgpool with name MGR1 and 64GB size
as per BBB's suggestion.


As i have set maxscratch=100 and i have 997GB space in /mgr1 filesystem
once the 64GB is reached i hope it will expand that volume up to 997GB
correct ? is it true ?

Any help appreciated.
 
hurrah! you make me confused!
is it a simple thing... and your link is about tsm v4.1, did you really use tsm 4.1???

2 things...
1) devclass maxcap
2) stgpool maxscr

1 x 2 must be least 900000 for you...

I hope you have a calculator or just simple start > run > calc :D
 
Ohh nezih

Again sorry
icon6.gif
, instead of device class i wrote it as stgpool.

now can you please give me some tips.


Any help appreciated.
 
Hi Nezih,

Thanks for your response and sorry instead of 64000M i gave it as 670000m

as per below link it is mentioned that the maxsize of disk volume is
64GB

http://www.urz.uni-heidelberg.de/ADS....htm#HDRDDDCOM

so here i am planning to create one stgpool with name MGR1 and 64GB size
as per BBB's suggestion.


As i have set maxscratch=100 and i have 997GB space in /mgr1 filesystem
once the 64GB is reached i hope it will expand that volume up to 997GB
correct ? is it true ?

Any help appreciated.

Part of me thinks this is all too hard for you - have you even tried to read the help??? Try "help def devclass" or any other command you want to run. It tells you pretty much everything, you shouldn't need to ask this stuff.

Let me do all your work for you:

>define devclass mgr1 devtype=file mountlimit=25 maxcapacity=64000M
directory=/mgr1

>define stgpool mgr1 mgr1 pooltype=primary access=readwrite collocate=no maxscratch=100

see - I removed maxsize. That's all you had to do. So now you have 64000*100 (maxcapacity*maxscratch) in size. Which is more than your filesystem but that doesn't matter, it will ensure you can use all your filesystem.

You obviously have some tuning issues to resolve, you should be able to backup 900GB in a lot less than 15 hours - 9 hours, tops.
 
Define device class

Hi nezih,

I think you are not ready to help..anyway no problem.

Thanks for your extreme help and time.
 
Define device class

Thanks BBB,

As we are new to TSM,still we have confusions in lot of things and this first time i am configuring tsm with disks.

Anyway thanks a lot and don't mistake.
icon7.gif
 
Back
Top