On 5/15/07, eric kustarz <[EMAIL PROTECTED]> wrote:
On May 12, 2007, at 2:12 AM, Matthew Flanagan wrote: >> >> On May 10, 2007, at 10:04 PM, Matthew Flanagan wrote: >> >>> Hi, >>> >>> I have a test server that I use for testing my >> different jumpstart >>> installations. This system is continuously >> installed and >>> reinstalled with different system builds. >>> For some builds I have a finish script that creates >> a zpool using >>> the utility found in the Solaris 10 update 3 >> miniroot. >>> >>> I have found an issue where the zpool command fails >> to create a new >>> zpool if the system previously had a UFS filesystem >> on the same slice. >>> >>> The command and error is: >>> >>> zpool create -f -R /a -m /srv srv c1t0d0s6 >>> cannot create 'srv': one or more vdevs refer to the >> same device >>> >> >> Works fine for me: >> # df -kh >> Filesystem size used avail capacity >> Mounted on >> dev/dsk/c1t1d0s0 17G 4.1G 13G 24% / >> ... >> /dev/dsk/c1t1d0s6 24G 24M 24G 1% >> /zfs0 >> mount /zfs0 >> # zpool create -f -R /a -m /srv srv c1t1d0s6 >> # zpool status >> pool: srv >> te: ONLINE >> scrub: none requested >> config: >> >> NAME STATE READ WRITE CKSUM >> srv ONLINE 0 0 0 >> c1t1d0s6 ONLINE 0 0 0 >> known data errors >> >> >> eric >> >> > > That works for me too. Perhaps you should actually follow my steps > to reproduce the issue? Perhaps if you asked more nicely then i would. If you didn't unmount the UFS filesystem "srv" before the 'zpool create', then try that. If you did and it still fails, then ask the install/jumpstart people. eric
Eric, The UFS filesystem is being unmounted each time because the system is being *reinstalled* each time from bare metal. The first time it is being installed with a UFS file system on slice 6. The second time the system is *reinstalled* with slice 6 left unnamed and a finish script failing to create a zpool from the jumpstart miniroot. I can reliably reproduce this in my lab on a number of different sparc hardware platforms (V120 and V210's with both 1 and 2 disks). regards matthew ps. I had already opened a support case with Sun before posting to the list and the engineer's response was to email me back the "correct" command syntax and a copy of the zpool man page which he had obviously not read himself because his "correct" syntax was blatantly wrong. Please make an effort to read my whole email. If you need any clarifications on how to reproduce the problem then I'll be glad to help. pps. resending this because I was not subscribed to the list. -- matthew http://wadofstuff.blogspot.com _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss