> Get the content of c0d1s1 to c0d0s7 ?
> c0d1s1 is pool home and active; c0d0s7 is not
> active.
>

I have not tried this particular use case, but I think this is a case for "zfs 
send" and "zfs receive".   You'd create a new pool containing only c0d0s7 and 
do something like this, assuming your original pool was called u01 and you'd 
put c0d0s7 in u02:

[EMAIL PROTECTED]:/u01/home# zfs snapshot u01/[EMAIL PROTECTED]                 
                                                               
[EMAIL PROTECTED]:/u01/home# zpool list                                         
                                                         
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
u01                     354G    116K    354G     0%  ONLINE     -
u02                     354G    111K    354G     0%  ONLINE     -
[EMAIL PROTECTED]:/u01/home# zfs send u01/[EMAIL PROTECTED] | zfs receive 
u02/home                                                             
[EMAIL PROTECTED]:/u01/home# zfs list                                           
                                                         
NAME              USED  AVAIL  REFER  MOUNTPOINT
u01               113K   348G  27.5K  /u01
u01/home         28.5K   348G  28.5K  /u01/home
u01/[EMAIL PROTECTED]      0      -  28.5K  -
u02               146K   348G  26.5K  /u02
u02/home         28.5K   348G  28.5K  /u02/home
u02/[EMAIL PROTECTED]      0      -  28.5K  -

One caveat here is that I could not find a way to back up the base of the zpool 
"u01" into the base of zpool "u02".  i.e.

zfs snapshot [EMAIL PROTECTED]
zfs send [EMAIL PROTECTED] | zfs receive u02

Does not work because "u02" already exists - the receive must be done into a 
brand new zfs.  (It will create the zfs)  I suppose you could get around this 
by creating a new zfs and "mv * ../." from there.

PS I think the "zfs backup" functionality was replaced with the "zfs send" - 
zfs send just writes to stdout so you can pipe it to ssh to send it to another 
machine, redirect it to a file, etc.

> Another question: When I boot to single user, the
> 'home' is not mounted; and then I have no idea how to
> do that; since the mount command does not accept the
> slices.

I can't get to the console of a system to take it to single user, but you might 
try
"svcadm enable -tr filesystem/local" or "zfs mount -a".

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

Reply via email to