ZFS


 
Thread Tools Search this Thread
Operating Systems Solaris ZFS
# 1  
Old 10-20-2011
Changing ZFS mountpoints and Destroying Zpools

Hi,

I need some advice please. I have this server with a couple of zpools, lets call them

pay_serv
ukb_pool

There are two zones attached to these pools. When I do a zfs list I see this

Code:
pay_serv 8.41G 265G 8.41G /pay_serv
ukb_pool 79.8G 194G 23K /ukb_pool
ukb_pool/temp_ps 9.11G 194G 8.83G /pay_serv/ps
ukb_pool/ukb 70.6G 194G 70.6G /ukb_pool/ukb

Now the pay_serv zone is mounted on /pay_serv/ps and the ukb zone on /ukb_pool/ukb. I see these are technically stored in the ukb_pool disks so what I want to do is destroy the pay_serv zpool and free that up for something else.

If I stop the pay_serv zone and then do a "zfs umount /pay_serv" and then a "zfs destroy pay_serv" will that mess up the /pay_serv/ps directory. I am presuming yes and I am scared in doing this as it contains live data and is most definitely not a test server.

Please help!

Thanks....

Last edited by DukeNuke2; 10-20-2011 at 01:16 PM..
# 2  
Old 10-20-2011
i think you will use your pay_serv zone in the future, so why not clone or move your zone to a new pool??
# 3  
Old 10-20-2011
It will not allow you to unmount /pay_serv since ukb_pool/temp_ps is mounted on /pay_serv/ps.

The data resides in ukb_pool but it is mounted under pay_serv.

You can change the mount point and then unmount and destroy pay_serv.

You may take below steps.

- Shutdown the zone pay_serv

- Change the mountpoint for ukb_pool/temp_ps from /pay_serv/ps to /ukb_pool/ps

- Change the zone configuration to take the new mount point when booting through zonecfg since the old mount point is not there

- Boot the zone and check the data in ukb_pool/temp_ps is accessible

- Once you are sure and no errors encountered you can unmount and dstroy pay_serv otherwise you have an option to revert back to old configuration

If possible you can create the scenario in a test server and test it.

Regards,
Vishal
# 4  
Old 10-20-2011
Thanks Vishal,

If I change the zfs mountpoint from /pay_serv/ps to /ukb_pool/ps I am assuming all the data will be preserved etc?
# 5  
Old 10-20-2011
The data resides in ukb_pool , we are only changing the mountpoint.

Regards,
Vishal
This User Gave Thanks to vishalaswani For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Several questions about ZFS

Hi guys! I am student from poland and I am preparing my assignment about Solaris 11 cloud computing capabilities. :p I am writing about ZFS now, and as I am quite new to this stuff I have several question (I prefere to have deep understanding of what I am doing, instead of just rewriting the... (1 Reply)
Discussion started by: mlody94
1 Replies

2. Emergency UNIX and Linux Support

Getting data from ZFS.

Hi all, A customer has a very active ZFS partitionon their production system, I need to get a copy of the data under one directory at a specific point in time. Is it possible to do this with the ZFS snapshot/clone tools, (and what commands should be used to capture the info I require for... (6 Replies)
Discussion started by: Skrynesaver
6 Replies

3. Solaris

ZFS and jumpstart

I am building a new server on sol10_X86. I am new to ZFS, this will be one of the first systems to use it. I would like to have /opt /usr and a /u01 as separate file systems from the main ZFS pool. I know that this goes against the basic idea of ZFS, but this is so I can restrict the size/usage... (1 Reply)
Discussion started by: robsonde
1 Replies

4. Solaris

zfs - get the name of the last snapshot

I have installed Solaris 11 Express on my server and want to set up automatic backuping using zfs snapshots. In the backup script I need to find out the name of the last snapshot of the given filesystem (in order to refer to it as the startpoint of an incremental backup). What is the best way to do... (4 Replies)
Discussion started by: RychnD
4 Replies

5. Solaris

ZFS

what are all the advantages of ZFS comparing to UFS SVM what is the use of creating file system in a file system in ZFS (15 Replies)
Discussion started by: dinu
15 Replies

6. Solaris

ZFS Issues

Hi, I am nowusing ZFS since some weeks and now I have 2 questions: 1) in zpool I saw some disk added with the *s2 at the end, I have in mind that should not be ? is this right and if so can I get the *s2 disk out of the zpool ? 2) Zpool has still 2 spare disk but when I try to create a new... (6 Replies)
Discussion started by: manni2
6 Replies

7. Solaris

Are you using ZFS ?

With Solaris 11 coming out with a requirement of ZFS on the root disk, I was curious to know who is using the Zeta File System now? I have been using ZFS for the past year and don't plan to go back to UFS since ZFS is much more reliable and easier to maintain. (13 Replies)
Discussion started by: bluescreen
13 Replies

8. Solaris

zfs-acronym

zfs-zeta bye filesystem or zope filesystem which is correct (2 Replies)
Discussion started by: kishanreddy
2 Replies

9. Solaris

ZFS question.

I have a oracle instance running in NGZ which is on zfs dataset. Is there any possibility if i can take a zfs snapshot without shutting down the zone and then restore the zfs on other server and start oracle .. will the data be fine or not ? (2 Replies)
Discussion started by: fugitive
2 Replies

10. Solaris

ZFS and VxVM

Hi community, I've a hard question for you. 1)What are the differences between ZFS and Veritas Volume Manager on Solaris10? 2) what is the difference to manage the internal disks (Mirror)? 3) what is the difference to manage the external disks? 4) What is the difference to manage... (5 Replies)
Discussion started by: Sunb3
5 Replies
Login or Register to Ask a Question