Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

! Exception: [Errno 7] Argument list too long: '/bin/sh' #285

Open
esromneb opened this issue Jan 18, 2025 · 2 comments
Open

! Exception: [Errno 7] Argument list too long: '/bin/sh' #285

esromneb opened this issue Jan 18, 2025 · 2 comments

Comments

@esromneb
Copy link

esromneb commented Jan 18, 2025

Command

zfs-autobackup -v --ssh-target servername backupname1 tank/backups --verbose

Results (truncated)

  [Source] rpool/ROOT/ubuntu_fyzx9a/var/lib/a23456789hettoobl8yytd2n: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/lib/a234567890os47ypa2zfko8w: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/lib/a23456789ny91hnlds96gqdb: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/lib/a23456789as24gh4wtw821mt: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/lib/a23456789s41jye97aoox7tx: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/lib/a234567890os47ypa2zfko8w: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/lib/a23456789ny91hnlds96gqdb: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/lib/a23456789as24gh4wtw821mt: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/lib/a23456789s41jye97aoox7tx: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/log: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/mail: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/snap: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/spool: Selected
  [Source] rpool/ROOT/ubuntu_fyzx9a/var/www: Selected
  [Source] rpool/USERDATA: Selected
  [Source] rpool/USERDATA/root_abce61: Selected

  #### Snapshotting
  [Source] Creating snapshots backupname1-20250117002901 in pool bpool
  [Source] Creating snapshots backupname1-20250117002901 in pool rpool
! Exception: [Errno 7] Argument list too long: '/bin/sh'

Explanation

I have a huge number of datasets, almost 1450 in number. My source machine is Ubuntu 20.04 focal. This version of linux added autozsys which was under cooked at the time of release. It just keeps adding snapshots and they are never actually deleted. I was trying to backup all of rpool at once and I ran into this issue. I'm able to reduce the scope of my backup, and avoid this, but I just thought I would bring this up.

@psy0rz
Copy link
Owner

psy0rz commented Jan 20, 2025

Can you do this:

$ getconf ARG_MAX
2097152

(This is ubuntu 22)

I think ubuntu 20 only has 128Kb or something like that.

@esromneb
Copy link
Author

esromneb commented Feb 1, 2025

On my Ubuntu 20.04 I get the same as you:

# getconf ARG_MAX
2097152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants