- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
Discussions
Discussions
Forums
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
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