Hi, It seems I can''t import a single external HDD. pool: HD id: 8012429942861870778 state: UNAVAIL status: One or more devices are missing from the system. action: The pool cannot be imported. Attach the missing devices and try again. see: http://www.sun.com/msg/ZFS-8000-6X config: HD UNAVAIL missing device c16t0d0 ONLINE Additional devices are known to be part of this pool, though their exact configuration cannot be determined. But when I run : zdb -l /dev/rdsk/c16t0d0s0, it shows me another deviced is expected in the "path" : root at opensolaris:/export/home/yariv# zdb -l /dev/rdsk/c16t0d0s0 -------------------------------------------- LABEL 0 -------------------------------------------- version=14 name=''HD'' state=1 txg=102018 pool_guid=8012429942861870778 hostid=127766 hostname=''opensolaris'' top_guid=7629285924370768707 guid=7629285924370768707 vdev_tree type=''disk'' id=0 guid=7629285924370768707 path=''/dev/dsk/c11t0d0s0'' devid=''id1,sd at TST31500341AS____________________________2GER66Y7/a'' phys_path=''/pci at 0,0/pci8086,244e at 1e/pci1458,1000 at 6/unit at 00203702003490ab/disk at 0,0:a'' whole_disk=1 metaslab_array=23 metaslab_shift=33 ashift=9 asize=1500288647168 is_log=0 Can this problem be solved? Thanks in advance, Yariv -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100227/7ab8c187/attachment.html>
Giovanni Tirloni
2010-Feb-28 09:55 UTC
[zfs-discuss] device mixed-up while tying to import.
On Sat, Feb 27, 2010 at 6:21 PM, Yariv Graf <yariv at walla.net.il> wrote:> > Hi, > It seems I can''t import a single external HDD. > > pool: HD > id: 8012429942861870778 > state: UNAVAIL > status: One or more devices are missing from the system. > action: The pool cannot be imported. Attach the missing > devices and try again. > see: http://www.sun.com/msg/ZFS-8000-6X > config: > > HD UNAVAIL missing device > c16t0d0 ONLINE >You''re probably missing the device that was used as a slog in this pool. Try to restablish that device and import the pool again. Right now ZFS cannot import a pool in that state but it''s being worked on, according to Eric Schrock on Feb 6th. -- Giovanni Tirloni sysdroid.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100228/14444779/attachment.html>
Hi, Thanks for the reply. I can arrange the lost SSD buy I already formatted it. Second, even the external HDD is for instance /dev/rdsk/c16t0d0, when I try to debug using zdb It shows me another ?path?: path=''/dev/dsk/c11t0d0s0'' devid=''id1,sd at TST31500341AS____________________________2GER66Y7/a'' phys_path=''/pci at 0,0/pci8086,244e at 1e/pci1458,1000 at 6/unit at 00203702003490ab/disk at 0 ,0:a'' Is there away to fix it? Regards -- This message posted from opensolaris.org
On Sun, Feb 28, 2010 at 2:06 PM, Yariv Graf <yariv at walla.net.il> wrote:> Hi, > Thanks for the reply. > I can arrange the lost SSD buy I already formatted it. > Second, even the external HDD is for instance /dev/rdsk/c16t0d0, when I try to debug using zdb > It shows me another ?path?: > path=''/dev/dsk/c11t0d0s0'' > ? ? ? ?devid=''id1,sd at TST31500341AS____________________________2GER66Y7/a'' > ? ? ? ?phys_path=''/pci at 0,0/pci8086,244e at 1e/pci1458,1000 at 6/unit at 00203702003490ab/disk at 0 ,0:a'' > > Is there away to fix it?Yariv, In short you need not. That ''another'' path won''t fool ZFS, since it ultimately trusts the device GUIDs. You can reshuffle disks in your pool and put it back in random order and ZFS will find its way. On successful import all the recorded paths will be updated. So, back to square 1 - you need import your pool first. -- Regards, Cyril
Hi Cyril, Thanks for the response. In simple words this is what been done. 1- zpool import HD (external HDD[single drive]) 2- zpool add HD log c0t4d0 (SSD drive) 3- play with it a bit. 4 zpool export HD 5- reinstall opensolaris on SSD drive (ex slog above). Is there any chance to recover the HD zpool? I can use the SSD drive as slog for recovery if needed. Many thanks Yariv -- This message posted from opensolaris.org
Hi all, An update. After a while I emailed Jeb Campbel who created logfix. Because I''m running snv_134 he suggested to try zpool import -F. I tried it but with no luck. Next, I tried zpool import -FX still with no luck. It seemed the OS was stucked. I assumed maybe because the HD is 1.5TB it might take long so I ran again with -FX. After ~24hr I got this msg: root at opensolaris:~# Pool HD returned to its state as of February 27, 2010 12:08:34 PM IST. Discarded approximately 18 minutes of transactions. I was so happy. To brief: My HD pool was zfs ver 14 Snv_134 runs with ver 22. Zpool import -FX HD Solved the problems Yariv On 3/1/10 7:57 AM, "Yariv Graf" <yariv at walla.net.il> wrote:> Hi Cyril, > Thanks for the response. > In simple words this is what been done. > 1- zpool import HD (external HDD[single drive]) > 2- zpool add HD log c0t4d0 (SSD drive) > 3- play with it a bit. > 4 zpool export HD > 5- reinstall opensolaris on SSD drive (ex slog above). > > Is there any chance to recover the HD zpool? > I can use the SSD drive as slog for recovery if needed. > > Many thanks > > YarivYariv Graf IT Manager Walla! Ltd. http://www.walla.co.il Phone: +97236010752 Mobile: +972504368342