dbTalk Databases Forums  

add striping to tempdb volume

comp.databases.sybase comp.databases.sybase


Discuss add striping to tempdb volume in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Frank
 
Posts: n/a

Default add striping to tempdb volume - 06-29-2004 , 10:19 PM






we have sybase cluster 12.5 on hp-ux , we want to re-create with
striping the logical volume and then re-create the tempdb required
devices, alter tempdb on the new devices with the same sizes as
before.

Can you give me some idea how pratical is this idea and what's steps
are involve. I think we need to delete all temp db device except the
master or reduce the size and recreate it in new device ( in strip
volume ), but I am not sure. Any link and script in this regard also
appreciated.

Reply With Quote
  #2  
Old   
Tom McCready
 
Posts: n/a

Default Re: add striping to tempdb volume - 06-30-2004 , 11:22 AM






Frank wrote:

Quote:
we have sybase cluster 12.5 on hp-ux , we want to re-create with
striping the logical volume and then re-create the tempdb required
devices, alter tempdb on the new devices with the same sizes as
before.

Can you give me some idea how pratical is this idea and what's steps
are involve. I think we need to delete all temp db device except the
master or reduce the size and recreate it in new device ( in strip
volume ), but I am not sure. Any link and script in this regard also
appreciated.

Frank,

I don't know about striping, but to reduce the size of tempdb so that it
occupies only the original 2 MB on the master device, try something like
this:

sp_configure allow, 1
go
select * from master..sysusages where dbid=2 and lstart !=0
go
begin tran
delete master..sysusages
where dbid=2 and lstart !=0
go
/* not sure if the following is necessary */
update master..sysusages set segmap = 7 where dbid = 2
go
/* in any case do the following */
select * from master..sysusages where dbid=2
go

/* You should see the following output, if not rollback the transaction: */
dbid segmap lstart size vstart
2 7 0 1024 2564

/*otherwise*/

commit tran
go
sp_configure allow, 0
go
reconfigure with override
go
shutdown
go
recycle the server.
disk init new devices
alter tempdb onto the new devices

Tom




Reply With Quote
  #3  
Old   
Sara Law
 
Posts: n/a

Default Re: add striping to tempdb volume - 06-30-2004 , 01:47 PM



soal6570 (AT) yahoo (DOT) com (Frank) wrote in message news:<42601b2.0406291919.7c937c83 (AT) posting (DOT) google.com>...
Quote:
we have sybase cluster 12.5 on hp-ux , we want to re-create with
striping the logical volume and then re-create the tempdb required
devices, alter tempdb on the new devices with the same sizes as
before.

Can you give me some idea how pratical is this idea and what's steps
are involve. I think we need to delete all temp db device except the
master or reduce the size and recreate it in new device ( in strip
volume ), but I am not sure. Any link and script in this regard also
appreciated.

Hi Frank,

If you are recreating the devices exactly then your best bet is to
mirror the tempdb devices to the striped volume and then break the
mirrors by removing the primary devices (on the old volume). This
moves the tempdb devices without having to bring the system down and
is super easy to do.

Alternatively, there is a good write-up on resizing tempdb in the
"Troubleshooting Guide" under "Encyclopedia of Useful Tasks".

Good Luck!!

Sara ...


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.