Re: [indiana-discuss] Cannot Mirror RPOOL, Can't Label Disk to SMI

2009-02-04 Thread Cao
Mine is to add a disk to a pool existed and I got the same error and tried the 
same procedures, but didn't work.
it's working fine with mirroring.
-- 
This message posted from opensolaris.org
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Re: [indiana-discuss] Cannot Mirror RPOOL, Can't Label Disk to SMI

2009-02-04 Thread Handojo
Dear Candy,

This is the log of zpool status, along with partition of c3d0 and c4d0

1. It appears to me that once I destroy the partition of c4d0 and recreate it 
again, I get different slices in c4d0. I forgot which fdisk partition I 
chose, it is either Solaris, Solaris2, or Unix System, and it gives the default 
location like that

I think I must manually create slice, but If I look at c3d0, which slice should 
I mirror ? root ? backup ?

2. And, for mirror to works, does it have to reside in the same cylinder in the 
other disk ?

3. For mirroring an IDE device ( since this SATA drive is translated into IDE, 
which is visible if we see in format ), Is it correct that it have to be 
slice that is being mirrored, and can't be the whole disk like what I did in 
Fedora 10, using software raid at the installation time ?

Thank you for everyone's guidance

===
hando...@opensolaris:~# zpool status
  pool: rpool
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
rpool   ONLINE   0 0 0
  c3d0s0ONLINE   0 0 0

errors: No known data errors
hando...@opensolaris:~# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
   0. c3d0 DEFAULT cyl 60797 alt 2 hd 255 sec 63
  /p...@0,0/pci-...@1f,2/i...@0/c...@0,0
   1. c4d0 SATA2 cyl 60797 alt 2 hd 255 sec 63
  /p...@0,0/pci-...@1f,2/i...@1/c...@0,0
Specify disk (enter its number): 1
selecting c4d0
Controller working list found
[disk formatted, defect list found]


FORMAT MENU:
disk   - select a disk
type   - select (define) a disk type
partition  - select (define) a partition table
current- describe the current disk
format - format and analyze the disk
fdisk  - run the fdisk program
repair - repair a defective sector
show   - translate a disk address
label  - write label to the disk
analyze- surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save   - save new disk/partition definitions
volname- set 8-character volume name
!cmd - execute cmd, then return
quit
format partition


PARTITION MENU:
0  - change `0' partition
1  - change `1' partition
2  - change `2' partition
3  - change `3' partition
4  - change `4' partition
5  - change `5' partition
6  - change `6' partition
7  - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name   - name the current table
print  - display the current table
label  - write partition map and label to the disk
!cmd - execute cmd, then return
quit
partition print
Current partition table (original):
Total disk cylinders available: 60797 + 2 (reserved cylinders)

Part  TagFlag Cylinders SizeBlocks
  0 unassignedwm   00 (0/0/0) 0
  1 unassignedwm   00 (0/0/0) 0
  2 backupwu   0 - 60796  465.73GB(60797/0/0) 976703805
  3 unassignedwm   00 (0/0/0) 0
  4 unassignedwm   00 (0/0/0) 0
  5 unassignedwm   00 (0/0/0) 0
  6 unassignedwm   00 (0/0/0) 0
  7 unassignedwm   00 (0/0/0) 0
  8   bootwu   0 - 07.84MB(1/0/0) 16065
  9 alternateswm   1 - 2   15.69MB(2/0/0) 32130

format disk


AVAILABLE DISK SELECTIONS:
   0. c3d0 DEFAULT cyl 60797 alt 2 hd 255 sec 63
  /p...@0,0/pci-...@1f,2/i...@0/c...@0,0
   1. c4d0 SATA2 cyl 60797 alt 2 hd 255 sec 63
  /p...@0,0/pci-...@1f,2/i...@1/c...@0,0
Specify disk (enter its number)[1]: 0
selecting c3d0
NO Alt slice
No defect list found
[disk formatted, no defect list found]
/dev/dsk/c3d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
format partition


PARTITION MENU:
0  - change `0' partition
1  - change `1' partition
2  - change `2' partition
3  - change `3' partition
4  - change `4' partition
5  - change `5' partition
6  - change `6' partition
7  - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name   - name the current table
print  - display the current table
label  - write partition map and label to the disk
!cmd - execute cmd, then 

Re: [indiana-discuss] Cannot Mirror RPOOL, Can't Label Disk to SMI

2009-02-04 Thread Ivan Wang
Hi there,

I think you are just one step away from success, please do allocate space of 
the whole disk to c4d0s0 before issuing zpool attach -f rpool c3d0s0 c4d0s0

Current slice layout on your c4d0 does not allocate space to slice 0, only a 
small s8, s2 is traditionally a special slice to indicate the whole disk (for 
using in backup utility,) use a big s0 instead.

Cheers,
Ivan. 

 Dear Candy,
 
 This is the log of zpool status, along with partition
 of c3d0 and c4d0
 
 1. It appears to me that once I destroy the partition
 of c4d0 and recreate it again, I get different
 slices in c4d0. I forgot which fdisk partition I
 chose, it is either Solaris, Solaris2, or Unix
 System, and it gives the default location like that
 
 I think I must manually create slice, but If I look
 at c3d0, which slice should I mirror ? root ? backup
 ?
 
 2. And, for mirror to works, does it have to reside
 in the same cylinder in the other disk ?
 
 3. For mirroring an IDE device ( since this SATA
 drive is translated into IDE, which is visible if we
 see in format ), Is it correct that it have to be
 slice that is being mirrored, and can't be the whole
 disk like what I did in Fedora 10, using software
 raid at the installation time ?
 
 Thank you for everyone's guidance
 
 ==
 =
 hando...@opensolaris:~# zpool status
   pool: rpool
 tate: ONLINE
  scrub: none requested
 onfig:
 
   NAMESTATE READ WRITE CKSUM
   rpool   ONLINE   0 0 0
 c3d0s0ONLINE   0 0 0
 
 errors: No known data errors
 hando...@opensolaris:~# format
 Searching for disks...done
 
 
 AVAILABLE DISK SELECTIONS:
 0. c3d0 DEFAULT cyl 60797 alt 2 hd 255 sec
  63
  /p...@0,0/pci-...@1f,2/i...@0/c...@0,0
  c4d0 SATA2 cyl 60797 alt 2 hd 255 sec 63
  /p...@0,0/pci-...@1f,2/i...@1/c...@0,0
 isk (enter its number): 1
 selecting c4d0
 Controller working list found
 [disk formatted, defect list found]
 
 
 FORMAT MENU:
 disk   - select a disk
 type   - select (define) a disk type
 partition  - select (define) a partition
  table
current- describe the current disk
  format - format and analyze the disk
fdisk  - run the fdisk program
  repair - repair a defective sector
show   - translate a disk address
  label  - write label to the disk
analyze- surface analysis
  defect - defect list management
backup - search for backup labels
  verify - read and display labels
 save   - save new disk/partition
  definitions
volname- set 8-character volume name
  !cmd - execute cmd, then return
quit
  partition
 
 
 PARTITION MENU:
 0  - change `0' partition
 1  - change `1' partition
 2  - change `2' partition
 3  - change `3' partition
 4  - change `4' partition
 5  - change `5' partition
 6  - change `6' partition
 7  - change `7' partition
 select - select a predefined table
 modify - modify a predefined partition table
 name   - name the current table
 print  - display the current table
 label  - write partition map and label to the
  disk
!cmd - execute cmd, then return
  quit
 artition print
 Current partition table (original):
 Total disk cylinders available: 60797 + 2 (reserved
 cylinders)
 
 Part  TagFlag Cylinders Size
Blocks
 nedwm   00 (0/0/0)
 0
 edwm   00 (0/0/0)
 0
 upwu   0 - 60796  465.73GB(60797/0/0)
 976703805
 3 unassignedwm   00
 (0/0/0) 0
 signedwm   00 (0/0/0)
 0
 edwm   00 (0/0/0)
 0
 edwm   00 (0/0/0)
 0
 edwm   00 (0/0/0)
 0
 otwu   0 - 07.84MB(1/0/0)
 16065
 rnateswm   1 - 2   15.69MB(2/0/0)
 32130
  disk
 
 
 AVAILABLE DISK SELECTIONS:
 0. c3d0 DEFAULT cyl 60797 alt 2 hd 255 sec
  63
  /p...@0,0/pci-...@1f,2/i...@0/c...@0,0
  c4d0 SATA2 cyl 60797 alt 2 hd 255 sec 63
  /p...@0,0/pci-...@1f,2/i...@1/c...@0,0
 isk (enter its number)[1]: 0
 selecting c3d0
 NO Alt slice
 No defect list found
 [disk formatted, no defect list found]
 /dev/dsk/c3d0s0 is part of active ZFS pool rpool.
 Please see zpool(1M).
 format partition
 
 
 PARTITION MENU:
 0  - change `0' partition
 1  - change `1' partition
 2  - change `2' partition
 3  - change `3' partition
 4  - change `4' partition
 5  - change `5' partition
 6  - change `6' partition
 7  - change `7' partition
 select - select a predefined table
 modify - modify a predefined 

[indiana-discuss] Cannot Mirror RPOOL, Can't Label Disk to SMI

2009-02-03 Thread Handojo
Dear ZFS experts,

I have 2 SATA 500 GB Hard Drive on my Dual Core PC

I have installed OpenSolaris 2008.11 using Live CD I got from Sun Tech Days in 
Singapore

Now, using all the guidelines I got here at Indiana Discussion, I can't attach 
my second drive to rpool to make them mirror

Initially I was playing around with similar configuration in VirtualBox, and it 
does not succeed. Finally I am trying it with my real machine, and it still 
hasn't work

I Logged the steps, and attach it here. I hope someone who is expert can tell 
me which part that I did went wrong.

Thank You,

Handojo

These are the description of the first drive  using format :
==
Searching for disks...done


AVAILABLE DISK SELECTIONS:
   0. c3d0 DEFAULT cyl 60797 alt 2 hd 255 sec 63
  /p...@0,0/pci-...@1f,2/i...@0/c...@0,0
   1. c4d0 DEFAULT cyl 60797 alt 2 hd 255 sec 63
  /p...@0,0/pci-...@1f,2/i...@1/c...@0,0
Specify disk (enter its number): 0 
selecting c3d0
No defect list found
[disk formatted, no defect list found]
/dev/dsk/c3d0s0 is part of active ZFS pool rpool. Please see zpool(1M).


FORMAT MENU:
disk   - select a disk
type   - select (define) a disk type
partition  - select (define) a partition table
current- describe the current disk
format - format and analyze the disk
fdisk  - run the fdisk program
repair - repair a defective sector
show   - translate a disk address
label  - write label to the disk
analyze- surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save   - save new disk/partition definitions
volname- set 8-character volume name
!cmd - execute cmd, then return
quit
format part 


PARTITION MENU:
0  - change `0' partition
1  - change `1' partition
2  - change `2' partition
3  - change `3' partition
4  - change `4' partition
5  - change `5' partition
6  - change `6' partition
7  - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name   - name the current table
print  - display the current table
label  - write partition map and label to the disk
!cmd - execute cmd, then return
quit
partition print 
Current partition table (original):
Total disk cylinders available: 60797 + 2 (reserved cylinders)

Part  TagFlag Cylinders SizeBlocks
  0   rootwm   1 - 60795  465.71GB(60795/0/0) 976671675
  1 unassignedwm   00 (0/0/0) 0
  2 backupwu   0 - 60796  465.73GB(60797/0/0) 976703805
  3 unassignedwm   00 (0/0/0) 0
  4 unassignedwm   00 (0/0/0) 0
  5 unassignedwm   00 (0/0/0) 0
  6 unassignedwm   00 (0/0/0) 0
  7 unassignedwm   00 (0/0/0) 0
  8   bootwu   0 - 07.84MB(1/0/0) 16065
  9 unassignedwm   00 (0/0/0) 0

partition quit 


FORMAT MENU:
disk   - select a disk
type   - select (define) a disk type
partition  - select (define) a partition table
current- describe the current disk
format - format and analyze the disk
fdisk  - run the fdisk program
repair - repair a defective sector
show   - translate a disk address
label  - write label to the disk
analyze- surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save   - save new disk/partition definitions
volname- set 8-character volume name
!cmd - execute cmd, then return
quit
format quit 

==

These are the log that I capture to change EFI labeling to SMI before adding to 
rpool ( and it failed. I followed this guide, and several other guide, which is 
exactly the same, but it doesn't work for me )

Here's the links :
http://opensolaris.org/jive/thread.jspa?messageID=331284

Here's the log :
==
hando...@opensolaris:~# zpool add rpool c4d0
cannot label 'c4d0': EFI labeled devices are not supported on root pools.
hando...@opensolaris:~# format -e c4d0
selecting c4d0
No defect list found
[disk formatted, no defect list found]


FORMAT 

Re: [indiana-discuss] Cannot Mirror RPOOL, Can't Label Disk to SMI

2009-02-03 Thread Cindy . Swearingen
To create a mirrored root pool, you need to use the zpool attach 
command. In addition, you need to specify the slice identifier.
For example:

# zpool attach rpool c1t0d0s0 c1t1d0s0

On an x86 system, you also must have a Solaris fdisk partition.

If you can provide your existing zpool status output, we could
provide more guidance.

Cindy

Moinak Ghosh wrote:
 On Tue, Feb 3, 2009 at 2:21 PM, Handojo hando...@yahoo.com wrote:
 [...]
 
hando...@opensolaris:~# zpool add rpool c4d0
cannot label 'c4d0': EFI labeled devices are not supported on root pools.
hando...@opensolaris:~#


 
 
Try:
zpool add rpool c4d0p1
 
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Re: [indiana-discuss] Cannot Mirror RPOOL, Can't Label Disk to SMI

2009-02-03 Thread Joao Lavrador
Hi, try to erase all partitions to 0 with format and then label it and try 
again to do the mirror. It happened the same with me.

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