Re: [zfs-discuss] ZFS with Memory Sticks

2007-12-11 Thread Constantin Gonzalez
Hi Paul,

 # fdisk -E /dev/rdsk/c7t0d0s2

then

 # zpool create -f Radical-Vol /dev/dsk/c7t0d0

should work. The warnings you see are just there to double-check you don't
overwrite any previously used pool which you may regret. -f overrules that.

Hope this helps,
Constantin

-- 
Constantin GonzalezSun Microsystems GmbH, Germany
Platform Technology Group, Global Systems Engineering  http://www.sun.de/
Tel.: +49 89/4 60 08-25 91   http://blogs.sun.com/constantin/

Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS with Memory Sticks

2007-12-10 Thread Paul Gress
I did some work over the weekend.  Still is having some trouble.


# fdisk -E /dev/rdsk/c7t0d0s2
# zpool create Radical-Vol /dev/dsk/c7t0d0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c7t0d0s0 is part of exported or potentially active ZFS pool 
Radical-Vol. Please see zpool(1M).
/dev/dsk/c7t0d0s2 is part of exported or potentially active ZFS pool 
Radical-Vol. Please see zpool(1M).
# dd if=/dev/zero of=/dev/dsk/c7t0d0s2 bs=1
write: No such device or address
8200604161+0 records in
8200604161+0 records out
# fdisk -E /dev/rdsk/c7t0d0s2
# zpool create Radical-Vol /dev/dsk/c7t0d0
cannot label 'c7t0d0': failed to write EFI label
use fdisk(1M) to partition the disk, and provide a specific slice
#


Basically after doing an fdisk -E, I couldn't create pool Radical-Vol.  
So I decided to zero the whole device and start from scratch.  Now I 
have a different error, zpool couldn't write the EFI label.  It wants an 
fdisk partition, but as far as I know, once I do this it will be 
specific for Sparc and X86.  Any other suggestions?

Thanks,

Paul
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS with Memory Sticks

2007-12-07 Thread Robert Milkowski
Hello Paul,

Wednesday, December 5, 2007, 10:34:47 PM, you wrote:

PG Constantin Gonzalez wrote:
 Hi Paul,

 yes, ZFS is platform agnostic and I know it works in SANs.

 For the USB stick case, you may have run into labeling issues. Maybe
 Solaris SPARC did not recognize the x64 type label on the disk (which
 is strange, because it should...).

 Did you try making sure that ZFS creates an EFI label on the disk?
 You can check this by running zpool status and then the devices should
 look like c6t0d0 without the s0 part.

 If you want to force this, you can create an EFI label on the USB disk
 from hand by saying fdisk -E /dev/rdsk/cxtxdx.

 Hope this helps,
Constantin


PG OK, tried some things you said.

PG This is the Volume formated on the PC (W2100z), the Volume is named 
PG Radical-Vol

PG # /usr/sbin/zpool import -f Radical-Vol
PG cannot import 'Radical-Vol': one or more devices is currently unavailable

PG # /usr/sbin/zpool import
PG   pool: Radical-Vol
PG id: 3051993120652382125
PG  state: FAULTED
PG status: One or more devices contains corrupted data.
PG action: The pool cannot be imported due to damaged devices or data.
PGsee: http://www.sun.com/msg/ZFS-8000-5E
PG config:

PG Radical-Vol  UNAVAIL   insufficient replicas
PG   c7t0d0s0  UNAVAIL   corrupted data



PG Here's the device:

PG $ rmformat
PG Looking for devices...
PG  1. Logical Node: /dev/rdsk/c1t2d0s2
PG Physical Node: /[EMAIL PROTECTED],60/[EMAIL PROTECTED]/[EMAIL 
PROTECTED],0
PG Connected Device: SONY DVD RW DRU-720A  JY02
PG Device Type: Unknown
PG  2. Logical Node: /dev/rdsk/c7t0d0s2
PG Physical Node:
PG /[EMAIL PROTECTED],70/[EMAIL PROTECTED],2/[EMAIL PROTECTED]/[EMAIL 
PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED],0
PG Connected Device: USB 2.0  Flash Disk   1.00
PG Device Type: Removable

PG Following your command:

PG $ /opt/sfw/bin/sudo /usr/sbin/zpool status
PG   pool: Rad_Disk_1
PG  state: ONLINE
PG status: The pool is formatted using an older on-disk format.  The pool can
PG still be used, but some features are unavailable.
PG action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
PG pool will no longer be accessible on older software versions.
PG  scrub: none requested
PG config:

PG NAMESTATE READ WRITE CKSUM
PG Rad_Disk_1  ONLINE   0 0 0
PG   c0t1d0ONLINE   0 0 0

PG errors: No known data errors




PG It obviously doesn't show, not mounted.



PG And last the fdisk command:


PG # fdisk -E /dev/rdsk/c7t0d0
PG fdisk: Cannot stat device /dev/rdsk/c7t0d0




Looks like you have SMI label not EFI.
Can you re-create a pool again with command:

zpool create Radival-Vol c7t0d0

then put some data, do zpool export Radical-Vol and try to import it
on another box. Should work.


-- 
Best regards,
 Robert Milkowski   mailto:[EMAIL PROTECTED]
   http://milek.blogspot.com

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS with Memory Sticks

2007-12-06 Thread Constantin Gonzalez
Hi,

 # /usr/sbin/zpool import
   pool: Radical-Vol
 id: 3051993120652382125
  state: FAULTED
 status: One or more devices contains corrupted data.
 action: The pool cannot be imported due to damaged devices or data.
see: http://www.sun.com/msg/ZFS-8000-5E
 config:
 
 Radical-Vol  UNAVAIL   insufficient replicas
   c7t0d0s0  UNAVAIL   corrupted data

ok, ZFS did recognize the disk, but the pool is corrupted. Did you remove
it without exporting the pool first?

 Following your command:
 
 $ /opt/sfw/bin/sudo /usr/sbin/zpool status
   pool: Rad_Disk_1
  state: ONLINE
 status: The pool is formatted using an older on-disk format.  The pool can
 still be used, but some features are unavailable.
 action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
 pool will no longer be accessible on older software versions.
  scrub: none requested
 config:
 
 NAMESTATE READ WRITE CKSUM
 Rad_Disk_1  ONLINE   0 0 0
   c0t1d0ONLINE   0 0 0
 
 errors: No known data errors

But this pool should be accessible, since you can zpool status it. Have
you check zfs get all Rad_Disk_1? Does it show mount points and whether
it should be mounted?

 But this device works currently on my Solaris PC's, the W2100z and a 
 laptop of mine.

Strange. Maybe it's a USB issue. Have you checked:

   http://www.sun.com/io_technologies/usb/USB-Faq.html#Storage

Especially #19?

Best regards,
Constantin

-- 
Constantin GonzalezSun Microsystems GmbH, Germany
Platform Technology Group, Global Systems Engineering  http://www.sun.de/
Tel.: +49 89/4 60 08-25 91   http://blogs.sun.com/constantin/

Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS with Memory Sticks

2007-12-05 Thread Paul Gress
Constantin Gonzalez wrote:
 Hi Paul,

 yes, ZFS is platform agnostic and I know it works in SANs.

 For the USB stick case, you may have run into labeling issues. Maybe
 Solaris SPARC did not recognize the x64 type label on the disk (which
 is strange, because it should...).

 Did you try making sure that ZFS creates an EFI label on the disk?
 You can check this by running zpool status and then the devices should
 look like c6t0d0 without the s0 part.

 If you want to force this, you can create an EFI label on the USB disk
 from hand by saying fdisk -E /dev/rdsk/cxtxdx.

 Hope this helps,
Constantin


OK, tried some things you said.

This is the Volume formated on the PC (W2100z), the Volume is named 
Radical-Vol

# /usr/sbin/zpool import -f Radical-Vol
cannot import 'Radical-Vol': one or more devices is currently unavailable

# /usr/sbin/zpool import
  pool: Radical-Vol
id: 3051993120652382125
 state: FAULTED
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
   see: http://www.sun.com/msg/ZFS-8000-5E
config:

Radical-Vol  UNAVAIL   insufficient replicas
  c7t0d0s0  UNAVAIL   corrupted data



Here's the device:

$ rmformat
Looking for devices...
 1. Logical Node: /dev/rdsk/c1t2d0s2
Physical Node: /[EMAIL PROTECTED],60/[EMAIL PROTECTED]/[EMAIL 
PROTECTED],0
Connected Device: SONY DVD RW DRU-720A  JY02
Device Type: Unknown
 2. Logical Node: /dev/rdsk/c7t0d0s2
Physical Node: /[EMAIL PROTECTED],70/[EMAIL PROTECTED],2/[EMAIL 
PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED],0
Connected Device: USB 2.0  Flash Disk   1.00
Device Type: Removable

Following your command:

$ /opt/sfw/bin/sudo /usr/sbin/zpool status
  pool: Rad_Disk_1
 state: ONLINE
status: The pool is formatted using an older on-disk format.  The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
pool will no longer be accessible on older software versions.
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
Rad_Disk_1  ONLINE   0 0 0
  c0t1d0ONLINE   0 0 0

errors: No known data errors




It obviously doesn't show, not mounted.



And last the fdisk command:


# fdisk -E /dev/rdsk/c7t0d0
fdisk: Cannot stat device /dev/rdsk/c7t0d0



But this device works currently on my Solaris PC's, the W2100z and a 
laptop of mine.
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS with Memory Sticks

2007-12-05 Thread Constantin Gonzalez
Hi Paul,

yes, ZFS is platform agnostic and I know it works in SANs.

For the USB stick case, you may have run into labeling issues. Maybe
Solaris SPARC did not recognize the x64 type label on the disk (which
is strange, because it should...).

Did you try making sure that ZFS creates an EFI label on the disk?
You can check this by running zpool status and then the devices should
look like c6t0d0 without the s0 part.

If you want to force this, you can create an EFI label on the USB disk
from hand by saying fdisk -E /dev/rdsk/cxtxdx.

Hope this helps,
Constantin


Paul Gress wrote:
 OK, I've been putting off this question for a while now, but it eating 
 at me, so  I can't hold off any more.  I have a nice 8 gig memory stick 
 I've formated with the ZFS file system.  Works great on all my Solaris 
 PC's, but refuses to work on my Sparc processor.  So I've formated it on 
 my Sparc machine (Blade 2500), works great there now, but not on my 
 PC's.  Re-Formatted it on my PC, doesn't work on Sparc, and so on and so on.
 
 I thought it was a file system to go back and forth both architectures.  
 So when will this compatibility be here, or if it's possible now, what 
 is the secret?
 
 Paul
 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

-- 
Constantin GonzalezSun Microsystems GmbH, Germany
Platform Technology Group, Global Systems Engineering  http://www.sun.de/
Tel.: +49 89/4 60 08-25 91   http://blogs.sun.com/constantin/

Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] ZFS with Memory Sticks

2007-12-04 Thread Paul Gress
OK, I've been putting off this question for a while now, but it eating 
at me, so  I can't hold off any more.  I have a nice 8 gig memory stick 
I've formated with the ZFS file system.  Works great on all my Solaris 
PC's, but refuses to work on my Sparc processor.  So I've formated it on 
my Sparc machine (Blade 2500), works great there now, but not on my 
PC's.  Re-Formatted it on my PC, doesn't work on Sparc, and so on and so on.

I thought it was a file system to go back and forth both architectures.  
So when will this compatibility be here, or if it's possible now, what 
is the secret?

Paul
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss