When I am setting up the Disaster recovery plan for the MS SQL Databases in ZFS Volume, I faced permission issue while running ZFS send/receive command from a non-root account
root@vigneshzfs:/home/vignesh# sudo zfs send sql-pool/disk1@aug18 | ssh email@example.com zfs recv aws-pool/sql-pool-aug18 firstname.lastname@example.org's password: cannot receive new filesystem stream: permission denied
So my sender is vignesh and the receiver is ubuntu both are a non-root account
On the sender side, I used these permissions
sudo zfs allow -u vignesh send,snapshot,hold sql-pool
And on the receiver side
sudo zfs allow -u ubuntu compression,mountpoint,create,mount,receive aws-pool
After setting up this permission I can send and receive the snapshots of ZFS successfully
ubuntu@ip-:/dev$ zfs list -t snapshot NAME USED AVAIL REFER MOUNTPOINT aws-pool/sql-pool-aug18@aug18 0B - 30.4M -
Also published on Medium.
Passionate Developer with 7 years of extensive experience working for Data center related products. Contributed and lead the efforts in Solutioning and engineering in Nimesa Technologies for developing Dataprotection and Copy data management product for Private and Public Clouds
This is my personal weblog, opinions expressed here represent my own and not those of my employer.
All content provided on this blog is for informational purposes only and i will not be liable for any errors, losses, or damages from the display or use of this information.