Can not snapshot zone


 
Thread Tools Search this Thread
Operating Systems Solaris Can not snapshot zone
# 1  
Old 10-17-2010
Can not snapshot zone

For the life of me, I cannot figure out the syntax unless it's my configuration. Zone path is /zpool/zones/oracle11zone2 It is not running.

Code:
-bash-3.00# zfs snapshot zpool/zones/oracle11zone2@prepatch
cannot open 'zpool/zones/oracle11zone2': dataset does not exist
-bash-3.00# zfs snapshot /zpool/zones/oracle11zone2@prepatch
cannot snapshot '/zpool/zones/oracle11zone2@prepatch': leading slash in name

Code:
-bash-3.00# zpool status
  pool: rpool
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          c1t1d0s0  ONLINE       0     0     0

errors: No known data errors

  pool: zpool
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        zpool       ONLINE       0     0     0
          raidz2    ONLINE       0     0     0
            c1t0d0  ONLINE       0     0     0
            c1t2d0  ONLINE       0     0     0
            c1t3d0  ONLINE       0     0     0

errors: No known data errors
-bash-3.00#

What am I missing?
# 2  
Old 10-17-2010
Code:
cannot snapshot '/zpool/zones/oracle11zone2@prepatch': leading slash in name

this is your clue...

try:
Code:
zfs snapshot zpool/zones/oracle11zone2@prepatch

# 3  
Old 10-17-2010
-bash-3.00# zfs snapshot zpool/zones/oracle11zone2@prepatch
cannot open 'zpool/zones/oracle11zone2': dataset does not exist

Already tried that but thanks.
# 4  
Old 10-17-2010
yes, and this time the clue is:
Code:
cannot open 'zpool/zones/oracle11zone2': dataset does not exist

so, what is the name of the dataset you are trying to use? have a look at:
Code:
zfs list

# 5  
Old 10-17-2010
I guess I just don't see it. "zpool" is the one where the zone exists.

Code:
-bash-3.00# zfs list
NAME                           USED  AVAIL  REFER  MOUNTPOINT
rpool                         27.0G  34.6G  6.99G  /rpool
rpool/ROOT                    11.1G  34.6G    18K  legacy
rpool/ROOT/s10s_u7wos_08      11.1G  34.6G  7.76G  /
rpool/ROOT/s10s_u7wos_08/var  3.36G  34.6G  3.36G  /var
rpool/dump                    1.00G  34.6G  1.00G  -
rpool/export                    42K  34.6G    22K  /export
rpool/export/home               20K  34.6G    20K  /export/home
rpool/swap                    7.86G  39.9G  2.52G  -
zpool                         63.1G  3.55G  63.1G  /zpool

Code:
-bash-3.00# zfs snapshot zpool/zones/oracle11zone2@prepatch
cannot open 'zpool/zones/oracle11zone2': dataset does not exist


-bash-3.00# pwd
/
-bash-3.00# ls /zpool/zones/
oracle11zone2        
oracle11zone2clone1  
-bash-3.00#

# 6  
Old 10-17-2010
you can not take a snapshot from a zone. only from a zfs filesystem or zpool. "oracle11zone2" is just a directory inside your filesystem and not a zfs filesystem!
# 7  
Old 10-17-2010
Understood. What am I missing below, then when trying to snapshot the filesystem?

Code:
-bash-3.00# zfs snapshot zpool/zones/@prepatch
cannot snapshot 'zpool/zones/@prepatch': empty component in name



---------- Post updated at 05:57 PM ---------- Previous update was at 05:54 PM ----------

I figured it out, I think?

Code:
-bash-3.00# zfs snapshot zpool@prepatch
-bash-3.00#

Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

3. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

4. Solaris

Zone failes to boot due to mount issue, dir exists in zone.

I have two physical servers, with zones that mount local storage. We were using "raw device" in the zonecfg to point to a metadevice on the global zone (it was not mounted in the global zone at any point). It failed to mount on every boot because the directory existed in the zone. I... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

5. Solaris

how to add a default gateway in a zone of different VLAN of global zone

Hi Greetings... I have an issue in connecting the zone from outside the network and it is because of default gateway. I can ping default gateway from inside the zone and not able to ping from global zone due to different VLAN issue. If i add two different gateways and restart network services,... (2 Replies)
Discussion started by: vvpotugunta
2 Replies

6. Solaris

Bind zone transfer recategorises zone file?

Hi, I have a primary/slave Bind 9 setup running on a Solaris 10 platform. Everything is hunky dorey, except for when I make a zone file change and up the serial the file that is transferred to the slave looses all its comments, and the entries are place in alphabetical order. I administer many... (1 Reply)
Discussion started by: fulhamfcboy
1 Replies
Login or Register to Ask a Question