Mount /app on a new DISK


 
Thread Tools Search this Thread
Operating Systems Solaris Mount /app on a new DISK
# 1  
Old 11-26-2012
Mount /app on a new DISK

Hi folks,

because of disk space problem my root is almost full..The root is mounted on rpool and i want to move /app on a new disk, is that possible without compromising any link?How can i do that?
I use solaris 10

Thank you in advance,

Matt

---------- Post updated at 04:36 PM ---------- Previous update was at 04:35 PM ----------

Quote:
Originally Posted by mattpunk
Hi folks,

because of disk space problem my root is almost full..The root is mounted on rpool and i want to move /app on a new disk, is that possible without compromising any link?How can i do that?
I use solaris 10

Thank you in advance,

Matt
Can i do it online or by rebooting with cdrom?
# 2  
Old 11-26-2012
Method 1: Check if there is any big files(more than 10M) in / and then clean up
Code:
# find / -exec -type f -size +10000000c -exec ls -al {} \;

Method 2 : Add a new disk to rpool

Hope it helps.
Cheers,

Last edited by Scott; 11-28-2012 at 12:56 AM.. Reason: Code tags
# 3  
Old 11-27-2012
Quote:
Originally Posted by Joseph_TKLee
Method 2 : Add a new disk to rpool
this won't work because all disks in rpool are mirrored disks...
# 4  
Old 11-27-2012
how can i mount only app under different disk?
# 5  
Old 11-27-2012
- create a new pool (mount it anywhere) with the new disk (2 disks if you want to mirror the /app directory)
- stop all processes which access /app
- dump the content of /app to the new pool
- rename /app to e.g. /app_old
- mount new pool on /app

if everything works, delete /app_old...
# 6  
Old 11-28-2012
Quote:
Originally Posted by DukeNuke2
- create a new pool (mount it anywhere) with the new disk (2 disks if you want to mirror the /app directory)
- stop all processes which access /app
- dump the content of /app to the new pool
- rename /app to e.g. /app_old
- mount new pool on /app

if everything works, delete /app_old...

Thank you Duke, i have some questions for you :

1) How can i dump the content of /app to new pool (let's call it pool2), with zfs send/receive?Or what else?
2)If i have created a new pool (let's say pool2), i have to mount it with zfs set mount point, correct?

I got the overall meaning but i'm not sure about the rigth command to perform, can u give me more details about it with an example and command?Thank you, your hel is much appreciate,

Matt
# 7  
Old 11-28-2012
1) How can i dump the content of /app to new pool (let's call it pool2), with zfs send/receive?Or what else?

2)If i have created a new pool (let's say pool2), i have to mount it with zfs set mount point, correct?

---------- Post updated at 10:34 AM ---------- Previous update was at 10:22 AM ----------

Sorry accidently clicked when I was trying to hit TAB keys. Smilie
Anyway, if /app is on own ZFS, you can do zfs send/receive as below.
Code:
 
# zpool create app_pool new_disk
# zfs snapshot rpool/app@backup
# zfs send rpool/app@backup | zfs recv app_pool/app
# zfs set mountpoint=/app_old rpool/app
# zfs set mountpoint=/app app_pool/app
# zfs destroy  rpool/app@backup
# zfs destroy  app_pool/app@backup
# zfs list

If /app is not in own ZFS, you need to create a new pool and zfs and copy using cp command.

Cheers,
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Please help me.how to mount another disk

So. My system have 2 solaris10 machine but system disk of machine 1 data crash.I bring the system disk of machine 1 install on machine2 for get data from disk machine1 but I can't mount disk. because msg is bash-3.00# mount /dev/dsk/c1t3d0s0 /mnt mount: /dev/dsk/c1t3d0s0 is not this fstype... (3 Replies)
Discussion started by: infjustice
3 Replies

2. AIX

Discovery/Mount new disk

Hi all, i must add a new disk on a LPAR. I've done all the HMC and VIOS Procedure to create a virtual host with disk and assign it to lpar. I don't remember how i must do on the lpar to see this disk. (i use lvm not veritas). Thanks in advance and sorry for my english. Bye Mario (2 Replies)
Discussion started by: Zio Bill
2 Replies

3. Solaris

Mount point expansion /app

Hi Guy's I have mount point called /app with size 10 GB from EMC SAN /dev/dsk/emcpower2g 9.6G 9.8M 9.5G 1% /app I have expanded the size from SAN level to be 20 GB But the mount point still is showing 10 GB Can anyone advice us how to can I expand the new space on /app... (4 Replies)
Discussion started by: roooooot
4 Replies

4. Ubuntu

Unable to mount disk

I am running Ubuntu Server, I recently added a new hard drive to the machine When I run fdisk -l I see both drives. The recently added drive is present but it's listed as extended. when I try to mount the drive it says you must specify the file system type. I can't mount this drive, I was... (2 Replies)
Discussion started by: NelsonC
2 Replies

5. Shell Programming and Scripting

if (disk is mounted) unmount if (disk is unmounted) mount

Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting. basically having worked out how to mount and unmount disks using: disktool -m *device* & disktool -e *device* - and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies

6. OS X (Apple)

Mount a disk elsewhere /Volumes

When a new disk is connected to a Mac/OSX, it automatically mounts on /Volumes. Is it possible to manually mount it elsewhere? For example, on "/raid"? - m66 - (5 Replies)
Discussion started by: makrell66
5 Replies

7. Linux

I want to mount my disk forever

Hi guys! I've just mounted my drive in fstab: /dev/sdb /myfolder ext3 defaults 0 0 and rebooted linux. I've got severel failers during booting process and also I can't login as root first time: login: root password:root incorrect login login:user password: user ... (1 Reply)
Discussion started by: Junior Admin
1 Replies

8. UNIX for Dummies Questions & Answers

Mount Second Disk

Anyone, I am trying to mount a second hard drive on a sunfire V120 w/solaris 5.8. I took this hard drive from another system because I deleted some files off that system and I want to mount it to another system so I can copy the file back onto the system. I really have no other means of... (2 Replies)
Discussion started by: dummy101
2 Replies

9. UNIX for Dummies Questions & Answers

Vfstab on spare disk - HOW ? Mount ?

Hi, guys ! Could someone clarify one thing for me: I start machine from disk0, and want to check the /etc/vfstab on disk1. How do i do it ? Tried to write: cd / mount /dev/dsk/c0t1d0s0 /mnt But if I do cd /mnt, it is empty. I expected to see disk1 there ? Or am I wrong ? How do I... (3 Replies)
Discussion started by: DGoubine
3 Replies

10. UNIX for Advanced & Expert Users

mount disk on other machine

I have two Unix machines on the network and now one of them are running out of disk but i have alot on the other so i like to mount the disk (or a folder) from the one that has disk and mount it on the other that does not. How do i do that? Is it possible i read the "man mount" but didn't really... (5 Replies)
Discussion started by: sajjan2
5 Replies
Login or Register to Ask a Question