Problem with /app


 
Thread Tools Search this Thread
Operating Systems Solaris Problem with /app
# 1  
Old 11-02-2012
Problem with /app

Hi folks,

i have a problem with my /app directory on solaris 10.It is mounted under rpool root and sometimes it increase dimension bringing root out of space.I want to mount /app under different position, maybe under secondary hardisk for which i have created a mount point with zfs pool...How can i mount /app under secondary disk using zpool?is it possible?are there any problems?

thank you in advance,

Matt
# 2  
Old 11-02-2012
If /app is a part of rpool, then mounting it in a different location won't help you. If I understand you right, your rpool is running out if space from time to time.

What you can do, is set a reservation on the root filesystem. For example:
Code:
# zfs set reservation=15g rpool/ROOT/opensolaris

After this, the root Filesystem may grow up to 15G without interference from other datasets in the same pool.

You must find out the dataset name of the root filesystem for this:
Code:
# zfs list /
NAME                     USED  AVAIL  REFER  MOUNTPOINT
rpool/ROOT/opensolaris  6,90G   123G  6,78G  /

# 3  
Old 11-02-2012
You create a zpool using that disk.

Code:
zpool create mypool <disk goes here>

Be sure to check if you need to make a mirror or raid array to protect your data from single disk failure.

After that, you will want to create a zfs filesystem in that zpool with :

Code:
zfs create -o mountpoint=/app mypool/app

And add the quotas, compression or any other zfs property to it.

Hope that helps
Regards
Peasant.
# 4  
Old 11-02-2012
Thank you guys,

i'll try to describe in a better way my situation..
I have my DB and other applications under /app that is mounted under root pool.
I wonder if there exists a way to migrate /app under different pool (maybe under one mounted on a secondary HD, i have already one pool of that kind!), or to stop /app increasing and stealing space from ROOT. Now i have about 1GB left on root!

hergp, the solution you have given to me is the second one, rigth?

Is there another way to add more space only for /app or for root pool by using the secondary disk for example?

thanks
# 5  
Old 11-02-2012
You can add more disks to a pool with the zpool add command without service interruption. But as Peasant pointed out, make sure, all data is redundant.

You can also migrate a complete ZFS filesystem with zfs send and zfs receive. But for that you need some downtime.
# 6  
Old 11-02-2012
Quote:
Originally Posted by hergp
You can add more disks to a pool with the zpool add command without service interruption. But as Peasant pointed out, make sure, all data is redundant.

You can also migrate a complete ZFS filesystem with zfs send and zfs receive. But for that you need some downtime.
Regarding the first solution, what do you mean for data redundant?In my situation i ll add the second disk to the Root pool, so that it can expand using second disk, is it correct?

thanks
# 7  
Old 11-02-2012
How many disks does your rpool use currently? If the pool is defined on a single disk and this disk fails, your server is dead.

If the pool is created on a pair of disks for redundancy and you add a single disk., then one part of your data is redundant and the other is not, which makes the pool vulnerable to a single disk fault.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Programming

Wuhan Coronavirus Status App for China - Rapid Prototype using MQTT and the IoT OnOff IOS App

With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here: ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies

2. Solaris

Problem building app

trying to run IPERF and i've downloaded and installed and screwed around with my path to get compilers and such available... log in as myself, go to /iperf-2.0.4 switch to su run ./configure seems to go fine, couple of no's but based on previous runs it seems to be ok... do make it goes... (3 Replies)
Discussion started by: jrich523
3 Replies

3. Red Hat

userid with nothing to do on the os/app

Hi All, I got this userid apache with the same userid and groupid and /sbin/nologin and the /www/a home folder is empty. Can I just delete this userid? How can I investigate if userid have something to do with the application? Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

4. UNIX for Advanced & Expert Users

Cygwin <--> CMD App Problem (Terminal Type?)

I'm not sure if this is the right place to post this, but here it is. We have a nightly process that runs on an HP-UX box to stop our application and backend database servers, unmount their SAN hosted file systems, and then snapshot the SAN LUNs for backup and refresh of data on "report" and... (1 Reply)
Discussion started by: deckard
1 Replies

5. Programming

Deadlocked App

Hello All - We have a legacy C program running non stop on one of our servers, with several instances often running at once. Fairly regularly, one of the instances while stop outputting to the log file and will just deadlock/hang. They must be then 'kill'ed by myself. When I gdb into one of... (3 Replies)
Discussion started by: markanderson
3 Replies

6. UNIX for Dummies Questions & Answers

mail problem (NOT Mail or Mail.app)

When I try to use the CLI mail, I get the following error. What's wrong? Welcome to Darwin! % mail root Subject: test test . EOT % /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies
Login or Register to Ask a Question