ZFS: /system/zones "respawning" on rpool


 
Thread Tools Search this Thread
Operating Systems Solaris ZFS: /system/zones "respawning" on rpool
# 1  
Old 10-24-2016
ZFS: /system/zones "respawning" on rpool

Hi,

I have this fresh installation of Solaris 11.3 sparc.
I have two zfs pools both using two disks in mirroring mode, both are online.

I want to move /system/zones, currently rpool/VARSHARE/zones, from rpool to the other zfs pool so my zones don't consume space on the disks allocated to rpool. Since it's a fresh install, /system/zones is currently empty, no zones have been created yet.

I boot the system in signle user mode
Then destroy rpool/VARSHARE/zones:
Code:
zfs destroy rpool/VARSHARE/zones

create the new volume and set mount point:
Code:
zfs create -o mountpoint=/system/zones storage/zones

After rebooting the system, rpool/VARSHARE/zones is automatically recreated and I have this error message:
Code:
cannot mount 'zpool/zones' on '/system/zones': mountpoint or dataset is busy
... transitioned to maintenance

If instead of destroying rpool/VARSHARE/zones I change it's mountpoint to none, everything seems to work as wanted.

So here's the question, what am I doing wrong? why is rpool/VARSHARE/zones respawning when destroyed?

Thanks and sory for the long post.



Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 10-24-2016 at 03:02 PM.. Reason: Added CODE tags.
# 2  
Old 10-24-2016
so here's the way we do this:

we have two different zpools:
rpool which is a simple mirror of disk id 0 and disk id 1

then we have another pool called zones which is a mirror of disk id 3 and disk id 4
then we just have zfs fs underneath that for each zone.

we are using Fibre Channel luns exported the host and then building zpools from the luns.

our setup is slightly more complicated than that because we are also using LDOMs. but I don't want to confuse the message. To migrate the zfs filesystems do a zfs send and receive:

Sending and Receiving ZFS Data - Oracle Solaris ZFS Administration Guide

Last edited by os2mac; 10-24-2016 at 04:46 PM.. Reason: more info
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

What does "force devmap reload" as in "multipath -r" means for my system and stability of my system?

Cannot present unpresented disks back again. On a test server tried this as a solution "multipath -r" and it worked. Too worried to try it in production before I know all the information. Any info would be appreciated! Also some links to the documentation on this specific issue could help a... (1 Reply)
Discussion started by: jsteppe
1 Replies

2. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

3. Shell Programming and Scripting

awk "date" and "system" command

Hello experts! I need your help please I have a file.txt of which I want to extract 3rd and 4th columns with date with the form e.g.: 2016-11-25 03:14:50and pass them to "date" command, but also append the 9th column in a file as well. So I want to execute date -d '2016-11-25 03:14:50' ... (2 Replies)
Discussion started by: phaethon
2 Replies

4. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

5. Red Hat

INIT: Id "x" respawning too fast

Hi, OS: Oracle Enterprise Linux 4 My system was working normal then when i reboot the machine the system started but it is halting the boot sequence with this message "INIT: Id "x" respawning too fast: disabled for 5 minutes" Q: any solution to this reply is highly appreciated . (5 Replies)
Discussion started by: maooah
5 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. Solaris

"flar create" produces a tiny flar image of rpool

Hi, can someone help with the following? I got 1x146GB disk which is span by just one zfs rpool. When issue for example: as you can see in above output the flar is very small, just around 10KB rpool with all data sets has several GB so this can't be good image. This is on the Solaris 10... (3 Replies)
Discussion started by: TomSu
3 Replies

8. Solaris

solaris zones Error : "Not in ufs"

Hi All, I have a doubt in solaris zoness where I have some of my local zones in "running state" when i try to install my patch on the global zone which will be automatically applied to all local zones , It says the local zones are not in ufs. So i tried to halt all local zones , it says... (7 Replies)
Discussion started by: jegaraman
7 Replies

9. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
Login or Register to Ask a Question