- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Upgrade of hard disk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 01:18 PM
02-02-2004 01:18 PM
Upgrade of hard disk
i'm working on a hp-ux machine and was told to upgrade hard disk to a bigger size because of space is running out. oracle server used is 7.something.
which is a better way, to create a new database in the new hard disk and migrate data from old to new database? or to add hard disk and move certain files, maybe data files, to new hard disk?
sorry for the vague versions of hp-ux and oracle software used bec i've no access to it at the moment.
thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 03:18 PM
02-02-2004 03:18 PM
Re: Upgrade of hard disk
install the drive.
ioscan -fnC disk
ioscan
insf -e
pvcreate -b /dev/rdsk/c#t#d# #make the numbers real
vgextend /dev/vg01 /dev/dsk/c#t#d#
lvcreate -C y /dev/vg01 #pick a real vg
# the name will be displayed
lvextend -L
newfs -F vxfs -0 largefiles /dev/vg01/rname_that_was_displayed
mount the filestem
shut down the databaes
mv or copy the databse to the new fileystem
unmount both filesystems
change /etc/fstab so the mount of the old filesystem name is pointing to the newly created logical volume
You are done.
Back up with the database down before you start.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 03:59 PM
02-02-2004 03:59 PM
Re: Upgrade of hard disk
shutdown all oracle services
copy all oracle files to the new file system created on the new drive.
umount the old drive file system.
Re-mount the new file system created on the new drive with the old mount point.
THanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 04:00 PM
02-02-2004 04:00 PM
Re: Upgrade of hard disk
One problem is that you may not be able to add this bigger harddisk to an existing volume group (unless you have a disk of same or bigger size).
You can simply create another volume group with filesystems and add|move the datafiles over to them.
ioscan -f
insf
ioscan -fnC disk (identify the disk say c2t5d0
#mkdir /dev/vg02
#mknod /dev/vg02/group c 64 0x0?0000 (replace vg02 with your choice and ? should be a uniq number can be picked up using ll /dev/*/group)
#pvcreate /dev/rdsk/c2t5d0
#vgcreate -s 16 -p 128 -l 255 vg02 /dev/dsk/c2t5d0
#lvcreate -n db201 -L 1000 vg02
#newfs -F vxfs /dev/vg02/rdb201
#mkdir /db201
#mount /dev/vg02/db201 /db201
Update your /etc/fstab to add this filesystem.
Repeat the above process for your choice of filesystems and their sizes.
If you do have a bigger disk in the existing volume group (say vg01), then you can add this disk to it and extend the filesystems.
#pvcreate /dev/rdsk/c0t5d0
#vgextend vg01 /dev/dsk/c0t5d0
#umount /dev/vg01/lvol1 (make sure no processes access this logical volume
#lvextend -L new_size_in_mb /dev/vg01/lvol1
#extendfs /dev/vg01/lvol1
#mount /dev/vg01/lvol1
Now the filesystem that has lvol1 mounted will have more space.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 04:11 PM
02-02-2004 04:11 PM
Re: Upgrade of hard disk
If the volume group can't accomodate the larger disk, you'll have to build a new volume group for the new disk, logical volume and fileystem.
You'll need to be prepared to build a new volume group if you run out of extents in the volume group the database is in.
SYNOPSIS
/usr/sbin/vgcreate [-f] [-A autobackup] [-x extensibility] [-e max_pe]
[-l max_lv] [-p max_pv] [-s pe_size] [-g pvg_name] vg_name
pv_path ...
-p max_pe and -s pe_size bumped up to 16 allows for more disk to be accomodated in a volume group.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 04:18 PM
02-02-2004 04:18 PM
Re: Upgrade of hard disk
thanks to all who have helped.
do u all mean i don't have to create database in the new disk? and moving/copying database means moving of cold backups eg data files etc? and most solutions mean i don't use the old data disk anymore?
thanks in advance, sorry for asking probably qns with obvious ans, i've little knowledge in this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 04:29 PM
02-02-2004 04:29 PM
Re: Upgrade of hard disk
everything will work fine if done this way by mounting the new file system on hte old mount point.
Also make sure about the good point made above.
The max_pe on the VG will be based on the largest disk during the VG creation.
If you are upgrading the disk you can create a new vg which will use the MAX_PE based on teh new disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 12:13 PM
02-03-2004 12:13 PM
Re: Upgrade of hard disk
1 more question, do i have to backup controlfile to trace? or just do an os copy of it?
if i don't have to, does that mean i do not need administrator password to upgrade my hard disk (assuming application can startup and shutdown database).
thanks in advance for any replies!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 02:11 PM
02-03-2004 02:11 PM
Re: Upgrade of hard disk
Any structural changes of the database,you should keep a backup of the controlfile.
There is no need for you now to re-create the controlfile as you are stopping/shutting down all oracle services are moving the files to another disk.
But before you do anything,it would be great to have a full backup of the database.
and also the backup of the current controlfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 03:44 PM
02-03-2004 03:44 PM
Re: Upgrade of hard disk
TG is right.
You can just move around files and unmount/remounting of the file systems can do the trick. No need to reinstall....
Again, make sure you have done a full backup of your system.
are you using raw device?
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 05:18 PM
02-03-2004 05:18 PM
Re: Upgrade of hard disk
i was told to give a plan as to how to go about doing it, don't have the actual new disks yet. proposed plan is to use a new data disk.
hmm, i'm not sure whether i've answered your question, sorry!
thanks for your reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 06:58 PM
02-04-2004 06:58 PM
Re: Upgrade of hard disk
Just to confirm, if i want to keep the old data disk, can i just move all oracle files to the new data disk and mount both data disks without de-installing the database from old disk?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 07:18 PM
02-04-2004 07:18 PM
Re: Upgrade of hard disk
post the output the following sql:
select substr(file_name,1,75) from dba_data_files;
You can modify your mount points according so that you can use both your new and old disks.
the output of the above query will simply your case.
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 02:51 AM
02-05-2004 02:51 AM
Re: Upgrade of hard disk
Use this link for oracle documentation to help you: http://tahiti.oracle.com
If you are going to keep the old disk will you be using it for something else or not? You might not even need to move the datafiles to the new disk. 2nd you'll want to try and evenly space the datafiles across the volumns. I don't know what type of setup you have but simply moving datafiles to another disk could cause poor performance in the future. You might even want to do an export and import to redistribute your data. But that's another topic, as far as moving the datafiles goes:
1. determine which datafiles you want to move by looking at dba_data_files tables. The name column will tell you the path and name of them.
2. either take a full export or an export of the tablespaces where the datafiles reside that you'll be moving.
3. Take the tablespaces offline where the datafiles reside in. ALTER TABLESPACE name OFFLINE NORMAL;
3. Perform an os 'cp old_name new_name' to move the datafiles. Important not to copy these datafiles when the tablespaces are online.
4. Rename datafiles on the oracle lvl.
alter tablespace name
rename datafile 'old_name1','old_name2' to
'new_name1','new_name2';
5. alter tablespace name online
This shouldn't take too long at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:49 PM
03-09-2004 01:49 PM
Re: Upgrade of hard disk
I am actually trying to solve the problem of not enough disk space as the database "crashed" before bec the disk space was not enough for log file.
Therefore i was told to add new disk to the database.
Any better suggestion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 01:28 PM
07-20-2004 01:28 PM
Re: Upgrade of hard disk
Thank you for your help.
Sorry for the late points assignment.