Reuse old/configured server for new purpose problems.


 
Thread Tools Search this Thread
Operating Systems Solaris Reuse old/configured server for new purpose problems.
# 1  
Old 01-24-2013
Error Reuse old/configured server for new purpose problems.

Greetings.

First of all I consider myself a newbe in Linux, that's why I'm seeking your help so please be patient!

I was given an old server (Solaris) that has Oracle (10.2.0) installed with a few databases. I'm supposed to reuse this server for this new application which will process data and create reports with a web interface (so Ill have to install tomcat,glassfish etc..)

My problems:

1. The server has been previously configured for something else, so I have no password for Oracle.
2. I thought of reinstalling Oracle but I have no idea how because of the way things have been partitioned

Code:
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d10         15G    13G   1.2G    93%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   6.7G   1.7M   6.7G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/SUNW,T5240/lib/libc_psr/libc_psr_hwcap2.so.1
                        15G    13G   1.2G    93%    /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,T5240/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                        15G    13G   1.2G    93%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   6.7G    64K   6.7G     1%    /tmp
swap                   6.7G    72K   6.7G     1%    /var/run
app                    667G    44K   748M     1%    /app
app/backup              40G    45K    40G     1%    /backup
oslocal/export_home     60G    15G    45G    26%    /export/home
app/home_app            12G   3.5G   8.5G    30%    /home/app
app/oradata_smart_ora1
                        13G   1.1G    12G     9%    /oradata/SMART/ora1
app/oradata_smart_ora2
                        18G   7.1G    11G    40%    /oradata/SMART/ora2
app/oradata_smart_ora3
                        36G    20G    16G    56%    /oradata/SMART/ora3
app/oradata_smart_ora4
                       166G   136G    30G    82%    /oradata/SMART/ora4
app/oradata_smart_ora5
                        55G    12G    43G    22%    /oradata/SMART/ora5
app/oradata_smart_ora6
                        75G    47G    28G    63%    /oradata/SMART/ora6
app/oradata_smart_ora7
                       147G   122G    25G    84%    /oradata/SMART/ora7
app/oradata_smart_redo1
                       3.0G   601M   2.4G    20%    /oradata/SMART/redo1
app/oradata_smart_redo2
                       3.0G   601M   2.4G    20%    /oradata/SMART/redo2
app/oradata_smart_redo3
                       3.0G   601M   2.4G    20%    /oradata/SMART/redo3
oslocal                100G    20K    25G     1%    /oslocal
app/smart               95G    45K    95G     1%    /smart

3. I will need to maximize space for the application since I theres q requirement of 400GB+

4. I really really really want to avoid wiping the server and configuring from scratch...


What are your thoughts of this? What approach should I take? If you need more information let me know...

Thanks in advance
# 2  
Old 01-24-2013
You don't need to wipe the server, but you should probably recreate the application ZFS pool in a way that will suit your new application. To list ZFS pools and check their sizes:
Code:
zpool list

To check what filesystems are created there:
Code:
zfs list

Next you should confirm that all of those filesystems are not needed anymore. After that you should unmount all of them (zfs umount). Then you can list disks used by ZFS pools:
Code:
zpool status

And destroy them:
Code:
zpool destroy pool_name

Now you will have some spare disks that can be used by your application. You should choose enough disks from destroyed pools to meet your application's requirements. With the disk list at hand, you can combine them into ZFS pool:
Code:
zpool create new_pool disk1 disk2 ...

If your application needs disk failure protection, then you should use mirroring or RAIDZ, described here: Creating a ZFS Storage Pool (Solaris ZFS Administration Guide)After that you can start creating application specific filesystems, using
Code:
zfs create new_pool/new_fs

To change their mountpoints use:
Code:
zfs set mountpoint=/new_mountpoint new_pool/new_fs

These 3 Users Gave Thanks to bartus11 For This Post:
# 3  
Old 01-24-2013
Okay! In the first two steps I got this:

Code:
# zpool list
NAME      SIZE  ALLOC   FREE    CAP  HEALTH  ALTROOT
app       816G   422G   394G    51%  ONLINE  -
oslocal   102G  15.8G  86.2G    15%  ONLINE  -

Code:
# zfs list
NAME                      USED  AVAIL  REFER  MOUNTPOINT
app                       666G   749M  44.8K  /app
app/backup               44.8K  40.0G  44.8K  /backup
app/home_app             3.54G  8.46G  3.54G  /home/app
app/oradata_smart_ora1   1.09G  11.9G  1.09G  /oradata/SMART/ora1
app/oradata_smart_ora2   7.07G  10.9G  7.07G  /oradata/SMART/ora2
app/oradata_smart_ora3   19.8G  16.2G  19.8G  /oradata/SMART/ora3
app/oradata_smart_ora4    136G  30.1G   136G  /oradata/SMART/ora4
app/oradata_smart_ora5   11.8G  43.2G  11.8G  /oradata/SMART/ora5
app/oradata_smart_ora6   47.0G  28.0G  47.0G  /oradata/SMART/ora6
app/oradata_smart_ora7    122G  24.9G   122G  /oradata/SMART/ora7
app/oradata_smart_redo1   601M  2.41G   601M  /oradata/SMART/redo1
app/oradata_smart_redo2   601M  2.41G   601M  /oradata/SMART/redo2
app/oradata_smart_redo3   601M  2.41G   601M  /oradata/SMART/redo3
app/smart                44.8K  95.0G  44.8K  /smart
oslocal                  75.0G  25.4G    20K  /oslocal
oslocal/export_home      15.4G  44.6G  15.4G  /export/home
oslocal/swap_file          15G  40.1G   354M  -

In the second step, how I determine whats the "pool_name"
# 4  
Old 01-24-2013
app as it holds the oracle filesystems.
# 5  
Old 01-24-2013
Excellent. I'm awaiting for a response to continue with this process in the next hours. Please stay in touch cause I will need your support!
And thanks a lot sir!!!!!
# 6  
Old 02-06-2013
HI!

I desisted on wiping everything because I'm pretty sure I wasn't going to be able to get the Oracle license easily. Instead I found the password for Oracle so I'm not going to wipe it, instead I'm trying to make some clean up.

I have a few questions:

Code:
 /platform/SUNW,T5240/lib/libc_psr/libc_psr_hwcap2.so.1
                        15G    13G   1.2G    93%    /platform/sun4v/lib/libc_psr.so.1

That's about to get full, I realize that if I install or uninstall stuff from /opt it decreases/increases accordingly. What other places I should look into to make some space ? (if possible)

Can you explain me this? I thought these were separate databases but not. There's only one database in there. Verified with (select * from v$databaseSmilie

Code:
 app/oradata_smart_ora1   1.09G  11.9G  1.09G  /oradata/SMART/ora1
app/oradata_smart_ora2   7.07G  10.9G  7.07G  /oradata/SMART/ora2
app/oradata_smart_ora3   19.8G  16.2G  19.8G  /oradata/SMART/ora3
app/oradata_smart_ora4    136G  30.1G   136G  /oradata/SMART/ora4
app/oradata_smart_ora5   11.8G  43.2G  11.8G  /oradata/SMART/ora5
app/oradata_smart_ora6   47.0G  28.0G  47.0G  /oradata/SMART/ora6
app/oradata_smart_ora7    122G  24.9G   122G  /oradata/SMART/ora7
app/oradata_smart_redo1   601M  2.41G   601M  /oradata/SMART/redo1
app/oradata_smart_redo2   601M  2.41G   601M  /oradata/SMART/redo2
app/oradata_smart_redo3   601M  2.41G   601M  /oradata/SMART/redo3

# 7  
Old 02-13-2013
Bartus: Halp!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Reuse format strings

I have a collection of format strings for sscanf, such as "%02d%*1s%02d%*1s%02d" to read in certain formatted strings, such as dates, times, etc. I wonder if there is a way to use them in printf without some changes? The example above would not work - at least I can't think of any ways to... (4 Replies)
Discussion started by: migurus
4 Replies

2. Solaris

Unable to boot from mirror disk on x86 server configured under VxVM

Hi, Can you help me on booting x86 server configured under VxVM. Server boots fine normally from both the disks but if I try to boot server from mirror disk without starting veritas, then it does not boot. vxplex -g rootdg dis var-02 vxplex -g rootdg dis swapvol-02 vxplex -g rootdg dis... (2 Replies)
Discussion started by: milindphanse604
2 Replies

3. Emergency UNIX and Linux Support

Reuse a LUN

I have a LUN (From HP-Storage VA7110) that is claimed on 2 servers, but is in used in one of the VG on Server-1 . Now I want to shut Server-1 and re-use that LUN on server-2 . Server-1 Path-1 : /dev/rdsk/c4t0d1 Path-2: /dev/rdsk/c6t0d1 Server-2 Path-1: /dev/rdsk/c5t0d1 Path-2:... (8 Replies)
Discussion started by: Shirishlnx
8 Replies

4. Shell Programming and Scripting

A bad configured logrotate can cause a problems with memory leak ?

I am newbe to unix. I have a very serious problem on my server. I have a java application running, and all day on Monday morning, the process that is associated with this java is locked. Usually I doing a shutdown by the shutdown java command , you have to kill the process with the kill-kill... (1 Reply)
Discussion started by: jjoottaa
1 Replies

5. AIX

restoring mksysb backup of a clustered server configured in HACMP

Hi, I have done NIM restoration via nim_bosinst a lot of times but I have some doubts on restoring a server which is clustered specifically HACMP. Previously, I don't know the trend but after doing a nim_bosinst, I can see the client's hostname is back to "localhost" rather than its original... (0 Replies)
Discussion started by: depam
0 Replies

6. Shell Programming and Scripting

Reuse Variable..

Hi. I have these two variables: My objective here is to reuse that $file_name variable again and again by resetting the $cv value. for example, if i reissue the cv="$(print 'CV01')" command, thus $file_name is now should be "CP99978_CV01.TXT", not "CP99978_CV01.TXT" anymore. How I'm... (7 Replies)
Discussion started by: aimy
7 Replies

7. AIX

What's the purpose of rj45-like connector on front panel of p5 55A server ?

Hi, What is the purpose of this connector ? I attached picture of it. In docs it is called "Ethernet connector". thanks Vilius (1 Reply)
Discussion started by: vilius
1 Replies

8. HP-UX

Reuse disk from other HP-UX

Hello, I have 2 hp-ux both running 11.23, I have move one of a harddisk from "UNIX A" to "UNIX B", so how can I read back the data in "UNIX B"? Thanks (5 Replies)
Discussion started by: zetadhell
5 Replies

9. UNIX for Dummies Questions & Answers

How to reuse same major number

Hi, I am working on device drivers.Once If register a device i'll get one major no. If i unregister and register again i'll get a different major no.What i have to do to get same major no. each time :( (0 Replies)
Discussion started by: Agnello
0 Replies

10. Linux

httpd server problems!

Hello, My apache was working before, but not anymore. When I try to run this service this way: service httpd start I get the following error: Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: Permission denied Anyone... (2 Replies)
Discussion started by: HSN
2 Replies
Login or Register to Ask a Question