I ran out of space in my /usr slice so I copied everything to a bigger hard drive using RAID.
I then followed several tutorials trying to expand /usr with
I tried to create a symlink, but of course that failed since jails can't see outside of themselves. I also tried copying everything from one of the jails to the new mount location.
I also did the above for the basejail, flavours, and new_jail directories originally located in /usr/jails/. I then edited the /usr/local/etc/ezjail/jail_1 configuration file to point towards the new directory that I copied everything to. I then tried starting the jail, but got the following error:
I know that I could delete the newly created partition (240GB), split it up into smaller partitions, and then mount those inside of the jails, but I don't really want to do that. Any other ideas on how I can use my new space for my jails?
I then followed several tutorials trying to expand /usr with
# growfs
but always got an error. So I decided to instead create a new partition with the empty space and move data there. The only problem is that all of the data I need to move there are inside of jails. What is the best way of tackling this problem?I tried to create a symlink, but of course that failed since jails can't see outside of themselves. I also tried copying everything from one of the jails to the new mount location.
# cp -pRv /usr/jails/jail_1 /mnt/new/jails/
I also did the above for the basejail, flavours, and new_jail directories originally located in /usr/jails/. I then edited the /usr/local/etc/ezjail/jail_1 configuration file to point towards the new directory that I copied everything to. I then tried starting the jail, but got the following error:
Code:
[cmd="#"]ezjail-admin onestart jail_1[/cmd]
Configuring jails:.
Starting jails: cannot start jail "jail_1":
jail: execv: /bin/sh: No such file or directory
I know that I could delete the newly created partition (240GB), split it up into smaller partitions, and then mount those inside of the jails, but I don't really want to do that. Any other ideas on how I can use my new space for my jails?