>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).
>
>
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
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
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
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
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
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