Re: [zones-discuss] a little scripting problem with zonecfg

2009-02-13 Thread Casper . Dik
>On Fri, Feb 13, 2009 at 8:16 PM, Jordan Vaughan wrote: >> Hi Cristine, >> >> I tried both methods on OpenSolaris 2008.11 and they worked for me. My >> guess is that there's something wrong with your script. Perhaps you forgot >> to close a control construct (e.g., end an if block with fi). > >

Re: [zones-discuss] a little scripting problem with zonecfg

2009-02-13 Thread David Powell
Christine Tran wrote: This should work, but I get a syntax error at line 78: `end of file' unexpected, (script is only 77 lines long, btw.) I also tried cat > /tmp/foo << EOF ... EOF zonecfg -z $myzone -f /tmp/foo but same problem. How can I solve this? I prefer not to keep a batch file arou

Re: [zones-discuss] a little scripting problem with zonecfg

2009-02-13 Thread Christine Tran
On Fri, Feb 13, 2009 at 8:16 PM, Jordan Vaughan wrote: > Hi Cristine, > > I tried both methods on OpenSolaris 2008.11 and they worked for me. My > guess is that there's something wrong with your script. Perhaps you forgot > to close a control construct (e.g., end an if block with fi). Errmm, we

Re: [zones-discuss] a little scripting problem with zonecfg

2009-02-13 Thread Jordan Vaughan
Hi Cristine, I tried both methods on OpenSolaris 2008.11 and they worked for me. My guess is that there's something wrong with your script. Perhaps you forgot to close a control construct (e.g., end an if block with fi). If it's not the script, then what version of Solaris/OpenSolaris are y

[zones-discuss] a little scripting problem with zonecfg

2009-02-13 Thread Christine Tran
I'm writing a script that adds an LOFS to a zone, using a pre-made batch file it works but I rather generate this on the fly. It looks something like this: if [ something ]; then zonecfg -z $myzone << EOF add fs set dir=/tmp/foo set special=/tmp/foo set type=lofs add options

Re: [zones-discuss] Add a zpool to a Zone w/o reboot

2009-02-13 Thread Ben Rockwood
Maidak Alexander J wrote: > I added a zpool to a nonglobal zone using the following method: > > # *zpool list slabzone1-zp01* > NAME SIZE USED AVAILCAP HEALTH ALTROOT > slabzone1-zp01 4.19G 112K 4.19G 0% ONLINE - > # *zonecfg -z slabzone1* > zonecfg:slabzone1> *add

[zones-discuss] Add a zpool to a Zone w/o reboot

2009-02-13 Thread Maidak Alexander J
I added a zpool to a nonglobal zone using the following method: # zpool list slabzone1-zp01 NAME SIZE USED AVAILCAP HEALTH ALTROOT slabzone1-zp01 4.19G 112K 4.19G 0% ONLINE - # zonecfg -z slabzone1 zonecfg:slabzone1> add dataset zonecfg:slabzone1:dataset> set name=sl