Hi Mastan,

On Dec 4, 2006, at 11:13 PM, dudekula mastan wrote:

Hi All,

I am new to solaris. Please clarify me on the following questions.

1) On Linux to know the presence of ext2/ext3 file systems on a device we use tune2fs command. Similar to tune2fs command is there any command to know the presence of ZFS file system on a device ?

"zpool import" will list any zpools even when they're not currently visible in a "zpool list"

"zfs get -r all zpool-name" will list all zfs filesystems


2) When a device is shared between two machines , What our project does is,

-> Create ext2 file system on device
a) Mount the device on machine 1
 b) Write data on the device
c) unmount the device from machine 1
d)mount the device on machine 2
e) read the data on the device
f) compare the current read data with previous write data and report the result
g) unmount the device from machine 2
h) Goto step a.

Like this , Can We share zfs file system between two machines. If so please explain it.

It's always going from machine 1 to machine 2?

zfs send [EMAIL PROTECTED] | ssh [EMAIL PROTECTED] | zfs recv filesystem-one-machine2

will stream a snapshot from the first machine to a filesystem/device/ snapshot on machine2


3) Can we create ZFS pools (or ZFS file system ) on VxVm volumes ? if so, how ?

It's been so long since I've cared about VxVm volumes, I don't know.

4) Can we share ZFS pools ( ZFS file ststem ) between two machines ?

Yes but what are the requirements here?

5) Like fsck command on Linux, is there any command to check the consistency of the ZFS file system ?

ZFS is a transactional, copy-on-write filesystem. It's always consistent.

There is an output for zpool status that includes this information, for example

[strongspace12(zone):/] root# zpool status
  pool: thumper12
state: ONLINE
scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        thumper     ONLINE       0     0     0
          raidz2    ONLINE       0     0     0
            c5t4d0  ONLINE       0     0     0
            c4t4d0  ONLINE       0     0     0
            c7t4d0  ONLINE       0     0     0
            c6t4d0  ONLINE       0     0     0
            c1t4d0  ONLINE       0     0     0
            c0t4d0  ONLINE       0     0     0
            c4t0d0  ONLINE       0     0     0
            c7t0d0  ONLINE       0     0     0
            c6t0d0  ONLINE       0     0     0
            c1t0d0  ONLINE       0     0     0
            c0t0d0  ONLINE       0     0     0
          raidz2    ONLINE       0     0     0
            c5t5d0  ONLINE       0     0     0
            c4t5d0  ONLINE       0     0     0
            c7t5d0  ONLINE       0     0     0
            c6t5d0  ONLINE       0     0     0
            c1t5d0  ONLINE       0     0     0
            c0t5d0  ONLINE       0     0     0
            c4t1d0  ONLINE       0     0     0
            c7t1d0  ONLINE       0     0     0
            c6t1d0  ONLINE       0     0     0
            c1t1d0  ONLINE       0     0     0
            c0t1d0  ONLINE       0     0     0
          raidz2    ONLINE       0     0     0
            c5t6d0  ONLINE       0     0     0
            c4t6d0  ONLINE       0     0     0
            c7t6d0  ONLINE       0     0     0
            c6t6d0  ONLINE       0     0     0
            c1t6d0  ONLINE       0     0     0
            c0t6d0  ONLINE       0     0     0
            c4t2d0  ONLINE       0     0     0
            c7t2d0  ONLINE       0     0     0
            c6t2d0  ONLINE       0     0     0
            c1t2d0  ONLINE       0     0     0
            c0t2d0  ONLINE       0     0     0
          raidz2    ONLINE       0     0     0
            c5t7d0  ONLINE       0     0     0
            c4t7d0  ONLINE       0     0     0
            c7t7d0  ONLINE       0     0     0
            c6t7d0  ONLINE       0     0     0
            c1t7d0  ONLINE       0     0     0
            c0t7d0  ONLINE       0     0     0
            c4t3d0  ONLINE       0     0     0
            c7t3d0  ONLINE       0     0     0
            c6t3d0  ONLINE       0     0     0
            c1t3d0  ONLINE       0     0     0
            c0t3d0  ONLINE       0     0     0
        spares
          c5t1d0    AVAIL
          c5t2d0    AVAIL
          c5t3d0    AVAIL

errors: No known data errors


Regards, Jason

••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Jason A. Hoffman, PhD | Founder, CTO, Joyent Inc.
Applications => http://joyent.com/
Hosting      => http://textdrive.com/
Backups      => http://strongspace.com/
Weblog       => http://joyeur.com/
Email        => [EMAIL PROTECTED] or [EMAIL PROTECTED]
Mobile       => (858)342-2179
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••



_______________________________________________
zfs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to