Hello all, I am using Opensolaris 2009.06 snv_129 I have a quick question. I have created a zpool on a sparse file, for instance: zpool create stage c10d0s0 mount it to /media/stage mkfile -n 500GB /media/stage/disks/disk.img zpool create zfsStage /media/stage/disks/disk.img I want to be able to take this file and back it up to tape. However, that is fine but if I reboot I see: pool: zfsStage state: UNAVAIL status: One or more devices could not be opened. There are insufficient replicas for the pool to continue functioning. action: Attach the missing device and online it using ''zpool online''. see: http://www.sun.com/msg/ZFS-8000-3C scrub: none requested config: NAME STATE READ WRITE CKSUM zfsStage UNAVAIL 0 0 0 insufficient replicas /media/zfsStage/disks/disk1.img UNAVAIL 0 0 0 cannot open I then tried: $zpool online zfsStage /media/zfsStage/disks cannot open ''zfsStage'': pool is unavailable $ zpool online zfsStage /media/zfsStage/disks/disk1.img cannot open ''zfsStage'': pool is unavailable Am I doing something wrong? When I restore from tape how would I mount this if this sort of thing is coming up? Hopefully someone can help me out. Thanks, Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100305/db86dab7/attachment.html>
Hi Greg, You are running into this bug: http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6929751 Currently, building a pool from files is not fully supported. Thanks, Cindy On 03/05/10 16:15, Gregory Durham wrote:> Hello all, > I am using Opensolaris 2009.06 snv_129 > I have a quick question. I have created a zpool on a sparse file, for > instance: > > zpool create stage c10d0s0 > mount it to /media/stage > mkfile -n 500GB /media/stage/disks/disk.img > zpool create zfsStage /media/stage/disks/disk.img > I want to be able to take this file and back it up to tape. However, > that is fine but if I reboot I see: > > pool: zfsStage > state: UNAVAIL > status: One or more devices could not be opened. There are insufficient > replicas for the pool to continue functioning. > action: Attach the missing device and online it using ''zpool online''. > see: http://www.sun.com/msg/ZFS-8000-3C > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > zfsStage UNAVAIL 0 0 0 > insufficient replicas > /media/zfsStage/disks/disk1.img UNAVAIL 0 0 0 > cannot open > > I then tried: > $zpool online zfsStage /media/zfsStage/disks > cannot open ''zfsStage'': pool is unavailable > $ zpool online zfsStage /media/zfsStage/disks/disk1.img > cannot open ''zfsStage'': pool is unavailable > > Am I doing something wrong? When I restore from tape how would I mount > this if this sort of thing is coming up? Hopefully someone can help me out. > > Thanks, > Greg > > > > > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Great...will using lofiadm still cause this issue? either by using mkfile or by using dd makeing a sparse file? Thanks for the heads up! On Fri, Mar 5, 2010 at 3:48 PM, Cindy Swearingen <Cindy.Swearingen at sun.com>wrote:> Hi Greg, > > You are running into this bug: > > http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6929751 > > Currently, building a pool from files is not fully supported. > > Thanks, > > Cindy > > On 03/05/10 16:15, Gregory Durham wrote: > >> Hello all, >> I am using Opensolaris 2009.06 snv_129 >> I have a quick question. I have created a zpool on a sparse file, for >> instance: >> >> zpool create stage c10d0s0 >> mount it to /media/stage >> mkfile -n 500GB /media/stage/disks/disk.img >> zpool create zfsStage /media/stage/disks/disk.img >> I want to be able to take this file and back it up to tape. However, that >> is fine but if I reboot I see: >> >> pool: zfsStage >> state: UNAVAIL >> status: One or more devices could not be opened. There are insufficient >> replicas for the pool to continue functioning. >> action: Attach the missing device and online it using ''zpool online''. >> see: http://www.sun.com/msg/ZFS-8000-3C >> scrub: none requested >> config: >> >> NAME STATE READ WRITE CKSUM >> zfsStage UNAVAIL 0 0 0 >> insufficient replicas >> /media/zfsStage/disks/disk1.img UNAVAIL 0 0 0 >> cannot open >> >> I then tried: >> $zpool online zfsStage /media/zfsStage/disks >> cannot open ''zfsStage'': pool is unavailable >> $ zpool online zfsStage /media/zfsStage/disks/disk1.img >> cannot open ''zfsStage'': pool is unavailable >> >> Am I doing something wrong? When I restore from tape how would I mount >> this if this sort of thing is coming up? Hopefully someone can help me out. >> >> Thanks, >> Greg >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> zfs-discuss mailing list >> zfs-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100305/b60154ed/attachment.html>
> You are running into this bug: > http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6929751 > Currently, building a pool from files is not fully supported.I think Cindy and I interpreted the question differently. If you want the zpool inside a file to stay mounted while the system is running, and come up again after reboot, then I think she''s right. You''re running into that bug. If you want to dismount your zpool, for the sake of backing it up to tape or something like that ... and then you''re seeing this error on reboot, I think you need to export your filesystem before you do your backups or reboot. Then when you want to mount it again, you just import it.
Greg, Sure lofiadm should work, but another underlying issue is that, currently, building pools on top of other pools can cause the system to deadlock or panic. This kind of configuration is just not supported or recommended at this time. Thanks, Cindy On 03/05/10 17:38, Gregory Durham wrote:> Great...will using lofiadm still cause this issue? either by using > mkfile or by using dd makeing a sparse file? Thanks for the heads up! > > On Fri, Mar 5, 2010 at 3:48 PM, Cindy Swearingen > <Cindy.Swearingen at sun.com <mailto:Cindy.Swearingen at sun.com>> wrote: > > Hi Greg, > > You are running into this bug: > > http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6929751 > > Currently, building a pool from files is not fully supported. > > Thanks, > > Cindy > > On 03/05/10 16:15, Gregory Durham wrote: > > Hello all, > I am using Opensolaris 2009.06 snv_129 > I have a quick question. I have created a zpool on a sparse > file, for instance: > > zpool create stage c10d0s0 > mount it to /media/stage > mkfile -n 500GB /media/stage/disks/disk.img > zpool create zfsStage /media/stage/disks/disk.img > I want to be able to take this file and back it up to tape. > However, that is fine but if I reboot I see: > > pool: zfsStage > state: UNAVAIL > status: One or more devices could not be opened. There are > insufficient > replicas for the pool to continue functioning. > action: Attach the missing device and online it using ''zpool > online''. > see: http://www.sun.com/msg/ZFS-8000-3C > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > zfsStage UNAVAIL 0 0 > 0 insufficient replicas > /media/zfsStage/disks/disk1.img UNAVAIL 0 0 > 0 cannot open > > I then tried: > $zpool online zfsStage /media/zfsStage/disks > cannot open ''zfsStage'': pool is unavailable > $ zpool online zfsStage /media/zfsStage/disks/disk1.img > cannot open ''zfsStage'': pool is unavailable > > Am I doing something wrong? When I restore from tape how would I > mount this if this sort of thing is coming up? Hopefully someone > can help me out. > > Thanks, > Greg > > > > > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org <mailto:zfs-discuss at opensolaris.org> > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > >
Cindy, Thank you very much for your input, what would you recommend as a way to backup zpools to tape? Thanks, Greg On Mon, Mar 8, 2010 at 8:58 AM, Cindy Swearingen <Cindy.Swearingen at sun.com> wrote:> Greg, > > Sure lofiadm should work, but another underlying issue is that, currently, > building pools on top of other pools can cause the > system to deadlock or panic. > > This kind of configuration is just not supported or recommended > at this time. > > Thanks, > > Cindy > > > > > On 03/05/10 17:38, Gregory Durham wrote: >> >> Great...will using lofiadm still cause this issue? either by using mkfile >> or by using dd makeing a sparse file? Thanks for the heads up! >> >> On Fri, Mar 5, 2010 at 3:48 PM, Cindy Swearingen <Cindy.Swearingen at sun.com >> <mailto:Cindy.Swearingen at sun.com>> wrote: >> >> ? ?Hi Greg, >> >> ? ?You are running into this bug: >> >> ? ?http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6929751 >> >> ? ?Currently, building a pool from files is not fully supported. >> >> ? ?Thanks, >> >> ? ?Cindy >> >> ? ?On 03/05/10 16:15, Gregory Durham wrote: >> >> ? ? ? ?Hello all, >> ? ? ? ?I am using Opensolaris 2009.06 snv_129 >> ? ? ? ?I have a quick question. I have created a zpool on a sparse >> ? ? ? ?file, for instance: >> >> ? ? ? ?zpool create stage c10d0s0 >> ? ? ? ?mount it to /media/stage >> ? ? ? ?mkfile -n 500GB /media/stage/disks/disk.img >> ? ? ? ?zpool create zfsStage /media/stage/disks/disk.img >> ? ? ? ?I want to be able to take this file and back it up to tape. >> ? ? ? ?However, that is fine but if I reboot I see: >> >> ? ? ? ?pool: zfsStage >> ? ? ? ? state: UNAVAIL >> ? ? ? ?status: One or more devices could not be opened. ?There are >> ? ? ? ?insufficient >> ? ? ? ? ? ? ? replicas for the pool to continue functioning. >> ? ? ? ?action: Attach the missing device and online it using ''zpool >> ? ? ? ?online''. >> ? ? ? ? ?see: http://www.sun.com/msg/ZFS-8000-3C >> ? ? ? ? scrub: none requested >> ? ? ? ?config: >> >> ? ? ? ? ? ? ? NAME ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? STATE ? ? READ WRITE >> CKSUM >> ? ? ? ? ? ? ? zfsStage ? ? ? ? ? ? ? ? ? ? ? ? ? UNAVAIL ? ? ?0 ? ? 0 >> ? ? ? ?0 ?insufficient replicas >> ? ? ? ? ? ? ? ? /media/zfsStage/disks/disk1.img ?UNAVAIL ? ? ?0 ? ? 0 >> ? ? ? ?0 ?cannot open >> >> ? ? ? ?I then tried: >> ? ? ? ?$zpool online zfsStage /media/zfsStage/disks >> ? ? ? ? ? ?cannot open ''zfsStage'': pool is unavailable >> ? ? ? ?$ zpool online zfsStage /media/zfsStage/disks/disk1.img >> ? ? ? ? ? ?cannot open ''zfsStage'': pool is unavailable >> >> ? ? ? ?Am I doing something wrong? When I restore from tape how would I >> ? ? ? ?mount this if this sort of thing is coming up? Hopefully someone >> ? ? ? ?can help me out. >> >> ? ? ? ?Thanks, >> ? ? ? ?Greg >> >> >> >> >> >> >> >> >> >> >> >> >> ?------------------------------------------------------------------------ >> >> ? ? ? ?_______________________________________________ >> ? ? ? ?zfs-discuss mailing list >> ? ? ? ?zfs-discuss at opensolaris.org <mailto:zfs-discuss at opensolaris.org> >> ? ? ? ?http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >> >> >