Hello, is there a way to add a zfs dataset to a zone online? The only info I found is to configure the dataset in the zone via zonecfg then reboot the zone. I would like to be able to add new separated dataset for each new db''s I add in the zone and of course if I need to reboot the zone every time I have to add/remove a db, my users will not be very happy... The only option I found for the moment is to create 1 dataset for all the db''s but I have problems with that : * every db''s are writing on the same LUN''s (or at least, I don''t where are writing the db''s) * adding a LUN is not a problem but removing it is not (yet) possible * we would be able to move a db from 1 zone to another one : both zones need to be rebooted. other solution is to have 1 zone per db but having a zone for a small db (let say less than 5 GB) is not really the best way to do (lots of diskspace lost for the binaries of the zone itself & the db''s). thanks in advance! Christophe This message posted from opensolaris.org
Hello christophe, Thursday, August 16, 2007, 8:53:31 AM, you wrote: c> Hello, c> is there a way to add a zfs dataset to a zone online? c> The only info I found is to configure the dataset in the zone via zonecfg then reboot the zone. c> I would like to be able to add new separated dataset for each new c> db''s I add in the zone and of course if I need to reboot the zone c> every time I have to add/remove a db, my users will not be very c> happy... The only option I found for the moment is to create 1 c> dataset for all the db''s but I have problems with that : c> * every db''s are writing on the same LUN''s (or at least, I don''t where are writing the db''s) c> * adding a LUN is not a problem but removing it is not (yet) possible c> * we would be able to move a db from 1 zone to another one : both zones need to be rebooted. c> other solution is to have 1 zone per db but having a zone for a c> small db (let say less than 5 GB) is not really the best way to do c> (lots of diskspace lost for the binaries of the zone itself & the db''s). I haven''t tried it but - from a global zone try to manually mount it in a local zone patch (like /zones/my_zone/root/mnt/test). If it works check if zoned is on for that dataset - if it''s not set it. And of course add to zone config if you want it to be there after reboot. -- Best regards, Robert Milkowski mailto:rmilkowski at task.gda.pl http://milek.blogspot.com
hello Robert, I already tried this :( When you mount the fs, you need to set the zoned param to off. If you mount the dataset and then set the zoned param to on, the mountpoint disappear :( Kind regards, Christophe This message posted from opensolaris.org
hello all, i have a similar problem - i am trying to add a zfs volume to a non-global zone without rebooting it. it is not practical to shutdown the application just to add one more raw device. is there a way to manually create the device files in /dev/zvol/... in the zone and make it aware of the change ? greetings, Stoyan This message posted from opensolaris.org
> i have a similar problem - i am trying to add a zfs volume to a non-global zone without rebooting it. it is not practical to shutdown the application just to add one more raw device. > is there a way to manually create the device files in /dev/zvol/... in the zone and make it aware of the change ?I haven''t ever tried to do that, but it might work. You might be able to just do the mknod in the global zone, but have it create the device in the non-global zone''s filesystem tree. Use the same numbers as the global zone''s device. -- Darren Dunham ddunham at taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. >