Re: [zones-discuss] Moving the zonepath (directory) to another file system
Absolutely. I did just that a few months ago when my primary disk started running a bit slim on free space. :) - format new disk - halt zones - mount new disk on /mnt - cd /zones ; tar -cf - . | (cd /mnt; tar -xvpf - ) - (to be safe) mv /zones /zones.old - mkdir /zones - edit vfstab to add entry for /zones - mount /zones - boot the zones to make sure all is well. :) I generally mount my disk space under /z and then lofs things back to /zones/xxx. that way I can separate my disk space management from my zones management functions. bill. David Smith wrote: I currently have my zonepath set to /zones/zonename on all my zones, however the /zones directory is on the boot drive and it is near to capacity now. Can I shut down all the zones and copy the /zones directory to a new filesystem (different disk) and then remount it as /zones again? Once the new filesystem is remounted back to /zones, this should be transparent to the zones , correct? Is there any other precautions I should take to migrate this directory structure, or recommended method? Thanks, David ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Moving the zonepath (directory) to another file system
Bill, Thank you for the procedure and confirmation that this directory migration should not be a problem. David On Wed, 2008-11-19 at 11:22 -0500, Bill Walker wrote: Absolutely. I did just that a few months ago when my primary disk started running a bit slim on free space. :) - format new disk - halt zones - mount new disk on /mnt - cd /zones ; tar -cf - . | (cd /mnt; tar -xvpf - ) - (to be safe) mv /zones /zones.old - mkdir /zones - edit vfstab to add entry for /zones - mount /zones - boot the zones to make sure all is well. :) I generally mount my disk space under /z and then lofs things back to /zones/xxx. that way I can separate my disk space management from my zones management functions. bill. David Smith wrote: I currently have my zonepath set to /zones/zonename on all my zones, however the /zones directory is on the boot drive and it is near to capacity now. Can I shut down all the zones and copy the /zones directory to a new filesystem (different disk) and then remount it as /zones again? Once the new filesystem is remounted back to /zones, this should be transparent to the zones , correct? Is there any other precautions I should take to migrate this directory structure, or recommended method? Thanks, David ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Moving the zonepath (directory) to another file system
On 11/19/08 07:36, David Smith wrote: I currently have my zonepath set to /zones/zonename on all my zones, however the /zones directory is on the boot drive and it is near to capacity now. Can I shut down all the zones and copy the /zones directory to a new filesystem (different disk) and then remount it as /zones again? Once the new filesystem is remounted back to /zones, this should be transparent to the zones , correct? Is there any other precautions I should take to migrate this directory structure, or recommended method? I would also look at zoneadm -z zone move new-path e.g. zoneadm -z zone /large-filesystempath/zonepath Unless you are particular about '/zones' path, you don't even have to remount it as /zones You can easily script it to do it for all the zones. ( check zoneadm list -pi ) The adv. is it's left to zoneadm. Vs the file transfer mechanism ( tar / cpio/ utility foo ) thanks - Amol Thanks, David ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Moving the zonepath (directory) to another file system
On Wed, Nov 19, 2008 at 2:16 PM, Amol Chiplunkar [EMAIL PROTECTED] wrote: I would also look at zoneadm -z zone move new-path e.g. zoneadm -z zone /large-filesystempath/zonepath Unless you are particular about '/zones' path, you don't even have to remount it as /zones This is a unique problem. Turns out we're not the only one. We had to move the zonepath somewhere else, but the somewhere else needs to have the same mountpoint. It's the underlying devices that we want to change. Obviously, zoneadm move will move /oldzonepath to /newzonepath but how will I remount to /oldzonepath, I can't change zonepath with zonecfg. Eventually I had to manually edit the stuff in /etc/zones, not that I advocate anyone to do this, but it worked for us. CT ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Moving the zonepath (directory) to another file system
It should be possible to: zoneadm -z zone move /zones/tmp/zone push disks around zoneadm -z zone move /original-dir That prevents a need to use zonecfg or doing unsupported things. Yes? On Wed, Nov 19, 2008 at 3:03 PM, Christine Tran [EMAIL PROTECTED] wrote: On Wed, Nov 19, 2008 at 2:16 PM, Amol Chiplunkar [EMAIL PROTECTED] wrote: I would also look at zoneadm -z zone move new-path e.g. zoneadm -z zone /large-filesystempath/zonepath Unless you are particular about '/zones' path, you don't even have to remount it as /zones This is a unique problem. Turns out we're not the only one. We had to move the zonepath somewhere else, but the somewhere else needs to have the same mountpoint. It's the underlying devices that we want to change. Obviously, zoneadm move will move /oldzonepath to /newzonepath but how will I remount to /oldzonepath, I can't change zonepath with zonecfg. Eventually I had to manually edit the stuff in /etc/zones, not that I advocate anyone to do this, but it worked for us. CT ___ zones-discuss mailing list zones-discuss@opensolaris.org -- --JeffV ___ zones-discuss mailing list zones-discuss@opensolaris.org