Re: [zfs-discuss] Default 'zpool' I want to move it to my new raidz pool 'gpool' how?

2010-05-02 Thread mark.musa...@oracle.com
You can't get rid of rpool. That's the pool you're booting from. Root  
pools can only be single disks or n-way mirrors.


As to your other question, you can view the snapshots by using the  
command "zfs list -t all", or turn on the listsnaps property for the  
pool. See  http://docs.sun.com/app/docs/doc/817-2271/ghbxt?a=view for  
more info.




Regards,
Mark

On 2 May 2010, at 15:58, Giovanni  wrote:


Hi guys

I am new to Opensolaris and ZFS world, I have 6x2TB SATA hdds on my  
system, I picked a single 2TB disk and installed opensolaris  
(therefore zpool was created by the installer)


I went ahead and created a new pool "gpool" with raidz (the kind of  
redundancy I want. Here's the output:


@server:/# zfs list
NAME USED  AVAIL  REFER  MOUNTPOINT
gpool119K  7.13T  30.4K  /gpool
rpool   7.78G  1.78T78K  /rpool
rpool/ROOT  3.30G  1.78T19K  legacy
rpool/ROOT/opensolaris  3.30G  1.78T  3.15G  /
rpool/dump  2.00G  1.78T  2.00G  -
rpool/export 491M  1.78T21K  /export
rpool/export/home491M  1.78T21K  /export/home
rpool/export/home/G   491M  1.78T   491M  /export/home/G
rpool/swap  2.00G  1.78T   101M  -
@server:/#

@server:/# zpool status
 pool: gpool
state: ONLINE
scrub: none requested
config:

   NAMESTATE READ WRITE CKSUM
   gpool   ONLINE   0 0 0
 raidz1ONLINE   0 0 0
   c8t1d0  ONLINE   0 0 0
   c8t2d0  ONLINE   0 0 0
   c8t3d0  ONLINE   0 0 0
   c8t4d0  ONLINE   0 0 0
   c8t5d0  ONLINE   0 0 0

errors: No known data errors

 pool: rpool
state: ONLINE
scrub: none requested
config:

   NAMESTATE READ WRITE CKSUM
   rpool   ONLINE   0 0 0
 c8t0d0s0  ONLINE   0 0 0

errors: No known data errors
@server:/#


Now, I want to get rid of "rpool" in its entirely, I want to migrate  
all settings, boot records, files from that rpool to "gpool" and  
then add the member of rpool c8t0d0s0 to my existing "gpool" so that  
I have a RAIDZ of 6x drives.


Any guidance on how to do it? I tried to do zfs snapshot

# zfs snapshot rp...@move


But I don't see the snapshow anywhere on rpool/.zfs (there is  
no .zfs folder)


Thanks
--
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

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


Re: [zfs-discuss] Default 'zpool' I want to move it to my new raidz pool 'gpool' how?

2010-05-02 Thread Roy Sigurd Karlsbakk
- "Giovanni"  skrev:

> Hi guys
> 
> I am new to Opensolaris and ZFS world, I have 6x2TB SATA hdds on my
> system, I picked a single 2TB disk and installed opensolaris
> (therefore zpool was created by the installer)
> 
> I went ahead and created a new pool "gpool" with raidz (the kind of
> redundancy I want. Here's the output:
>  Now, I want to get rid of "rpool" in its entirely, I want to migrate
> all settings, boot records, files from that rpool to "gpool" and then
> add the member of rpool c8t0d0s0 to my existing "gpool" so that I have
> a RAIDZ of 6x drives. 
> 
> Any guidance on how to do it? I tried to do zfs snapshot

You can't boot off raidz. That's for data only. Get a couple of cheap drives or 
SSDs for the root and use the large drives for data

Vennlige hilsener

roy
--
Roy Sigurd Karlsbakk
(+47) 97542685
r...@karlsbakk.net
http://blogg.karlsbakk.net/
--
I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er 
et elementært imperativ for alle pedagoger å unngå eksessiv anvendelse av 
idiomer med fremmed opprinnelse. I de fleste tilfeller eksisterer adekvate og 
relevante synonymer på norsk.
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Default 'zpool' I want to move it to my new raidz pool 'gpool' how?

2010-05-02 Thread Bob Friesenhahn

On Sun, 2 May 2010, Roy Sigurd Karlsbakk wrote:


Any guidance on how to do it? I tried to do zfs snapshot


You can't boot off raidz. That's for data only.


Unless you use FreeBSD ...

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Default 'zpool' I want to move it to my new raidz pool 'gpool' how?

2010-05-02 Thread Giovanni
Thank you. I was not aware that root pools could not be moved.

But here's the kicker, what if I have a single drive for root pool, and its 
failing... I connect a new HDD to replace the boot drive thats dying, ZFS has 
no way of migrating to a new drive?

Thanks
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Default 'zpool' I want to move it to my new raidz pool 'gpool' how?

2010-05-02 Thread Bob Friesenhahn

On Sun, 2 May 2010, Giovanni wrote:


Thank you. I was not aware that root pools could not be moved.

But here's the kicker, what if I have a single drive for root pool, 
and its failing... I connect a new HDD to replace the boot drive 
thats dying, ZFS has no way of migrating to a new drive?


There is a way.  The way would be to add a drive as a mirror of the 
old one.  The new drive should be in a position where the BIOS is able 
to boot from it.  The new drive would have its contents resilved based 
on the existing drive. However, if the old one is already failing, 
that could be somewhat problematic.  Once the new drive is functional, 
you can detatch the failing one.  Make sure that GRUB will boot from 
the new drive.


Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Default 'zpool' I want to move it to my new raidz pool 'gpool' how?

2010-05-02 Thread Brandon High
On Sun, May 2, 2010 at 1:55 PM, Giovanni  wrote:
> But here's the kicker, what if I have a single drive for root pool, and its 
> failing... I connect a new HDD to replace the boot drive thats dying, ZFS has 
> no way of migrating to a new drive?

You can move root pools, I did it yesterday from a single 160GB drive
to mirrored 120GB drives.

You can't move them to anything other than a single disk or N-way
mirror. No raidz, no striped sets.

If a disk is failing, you can connect a new disk to the system and do
a zpool replace, which will resilver the new drive with the data. Or
you can attach a new drive to the pool to make a mirror.

-B

-- 
Brandon High : bh...@freaks.com
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss