Hi All, Just by using the ZFS pool name, can we say which all devices are there under that pool ? If so how ? What I am asking exactly is : I have a ZFS pool, name is mypool (created by using zpool command: $ zpool create mypool c0t0d1s2). Just by using the name of zpool (i.e. mypool) is there a way to say that the device c0t0d1s2 belongs to mypool ? If so how ? Your help is appreciated. Thanks & Regards Masthan --------------------------------- Everyone is raving about the all-new Yahoo! Mail beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20061210/830a03d0/attachment.html>
dudekula mastan wrote:> > I have a ZFS pool, name is mypool > (created by using zpool command: $ zpool create mypool c0t0d1s2). > > Just by using the name of zpool (i.e. mypool) is there a way to say > that the device c0t0d1s2 belongs to mypool ? If so how ?Have a look at the zpool status subcommand. In your case, you can run, for instance: "zpool status mypool". Good luck, - Matt -- Matt Ingenthron - Web Infrastructure Solutions Architect Sun Microsystems, Inc. - Client Solutions, Systems Practice http://blogs.sun.com/mingenthron/ email: matt.ingenthron at sun.com Phone: 310-242-6439
dudekula mastan wrote:> Just by using the ZFS pool name, can we say which all devices are there > under that pool ? If so how ? > > > What I am asking exactly is : > > I have a ZFS pool, name is mypool > (created by using zpool command: $ zpool create mypool c0t0d1s2). > > Just by using the name of zpool (i.e. mypool) is there a way to say that > the device c0t0d1s2 belongs to mypool ? If so how ?zpool status -v (poolname) eg: $ zpool status -v sink pool: sink state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM sink ONLINE 0 0 0 mirror ONLINE 0 0 0 c1d0s3 ONLINE 0 0 0 c2d0s3 ONLINE 0 0 0 errors: No known data errors $ libdiskmgmt protects you (mostly) from using slices or partitions which are already in use James C. McPherson -- Solaris kernel software engineer Sun Microsystems