ZFS send issues


 
Thread Tools Search this Thread
Operating Systems Solaris ZFS send issues
# 1  
Old 08-01-2013
ZFS send issues

I have two servers, we'll call them sv1 and sv2.
both are Solaris 11.1 LDOMS running on a T4-4 with RBAC enabled.

my user has zfs allow send, receive on both servers and has ssh keys shared.

on sv2 (the destination) I have a zpool called zones that has no zfs fs built
on sv1 (the source) I have a zpool called zones that has several zones in it.

I would like to zfs send from sv1 to sv2.

the command I am using is

Code:
zfs send zones/zone1@snapshot |ssh sv2 zfs recv zones/zone1

I get the error

Code:
bash: zfs: command not found

Any ideas?
# 2  
Old 08-01-2013
Try:
Code:
/sbin/zfs send zones/zone1@snapshot |ssh sv2 /sbin/zfs recv zones/zone1

# 3  
Old 08-01-2013
That helped, a little

Code:
cannot hold 'zones/zone1/rpool@move': permission denied
cannot receive "share.smb" property on zones: permission denied
cannot receive "share.nfs" property on zones: permission denied

# 4  
Old 08-01-2013
This should be fixed with granting the share and hold permissions:
Code:
zfs allow ... share,hold

# 5  
Old 08-02-2013
I've added the permissions, I'll test it and get back to you...

---------- Post updated 08-02-13 at 09:28 AM ---------- Previous update was 08-01-13 at 05:12 PM ----------

so this is a permissions/acl issue.

per This Oracle ZFS Doc

you have to grant add_subdirectory permissions to the users on both sides in order to do this delegated. However I am still getting errors:
Code:
cannot hold:'/zones/zones1/rpool@move': permission denied

I suspect this is also permissions/acl related but I don't know what permission to grant to correct it.
# 6  
Old 08-03-2013
Also, you need to add the arguments "-e none" to your ssh command to disable escape character processing as the binary data stream could contain an SSH escape character sequence:
Code:
zfs send zones/zone1@snapshot |ssh -e none sv2 zfs recv zones/zone1

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Zfs send & receive with encryption - how to retrieve data?

Good morning everyone, I'm looking for some help to retrieve data in a scenario where I might have made a big mistake. I'm hoping to understand what I did wrong. My system is made of two Solaris 11 Express servers (old free version for evaluation). The first if for data and the second is... (7 Replies)
Discussion started by: rnd
7 Replies

2. Solaris

Help with ZFS send permissions

I'm trying to send an incremental ZFS file system from one system to another (Solaris 11.2). When I run this: zfs send -RI 20150429 gpool/zones/zone-name@20150501 | \ ssh dest-host "/usr/sbin/zfs recv -o canmount=off -dFuv bpool" I get Unable to estimate the size of... (1 Reply)
Discussion started by: kmcgrego
1 Replies

3. Solaris

Zfs send to compressed pool?

I have a newly created zpool, and I have set compression on, for the whole pool: # zfs set compression=on newPool Now I have zfs send | zfs receive lot of snapshots to my newPool, but the compression is gone. I was hoping that I would be able to send snapshots to the new pool (which is... (0 Replies)
Discussion started by: kebabbert
0 Replies

4. Solaris

Solaris11: Permission issues with auto-scrub ZFS pool

Short version: pfexec zpool scrub rpool fails saying I do not have permission to perform that action. Apparently scrub is not one of the pfexec allowed actions. Any idea on how to get around it? Long version: I got tired of manually running scrubs and am trying to set it to happen... (4 Replies)
Discussion started by: taltamir
4 Replies

5. Solaris

zfs send receive performance issues

I 'm trying to clone a zfs file system pool/u01 to a new file system called newpool/u01 using following commands zfs list zfs snapshot pool/u01@new zfs send pool/u01@new | zfs -F receive newpool/u01 Its a 100G file system snapshot and copied to same server on different pool and... (9 Replies)
Discussion started by: fugitive
9 Replies

6. Solaris

ZFS

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 pay_serv 8.41G 265G 8.41G /pay_serv ukb_pool 79.8G 194G 23K /ukb_pool ukb_pool/temp_ps 9.11G... (4 Replies)
Discussion started by: giles.cardew
4 Replies

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

8. Solaris

Help with beginner issues setting up ZFS??

Hi, I'm new to Solaris 11. The goal is to set up a ZFS raid-Z2 NAS. These are the instructions I've been trying to follow, with no luck: "Setting Up an OpenSolaris NAS Box: Father-Son Bonding" (not allowed to post URL) Issues: 1) Root access is evidently required but I don't... (8 Replies)
Discussion started by: lakedude
8 Replies

9. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

10. UNIX for Advanced & Expert Users

send attachments using send mail in Solaris

Hi All, I have a requirement to send and email of body html with an attachment. concatinating uuencode output to the mail body with mailx command works, but as my Email body is of HTML type i use sendmail. my command to send HTML body is as below: export MAILTO="recipient@domain.com"... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies
Login or Register to Ask a Question