I have just added 2 hard drives to my 7.2-RELEASE-p4 server.
These drives are identical WD 500GB 7200 SATA drives.
The server is a Tyan GX28 (B2881G28S4H if you want the specific model for any reason).
I;m having trouble getting the system to format these correctly. I sadly have relied on sysinstall too much for my drive partitioning/labeling and I can't quite seem to get this gmirror 100% working.
Now on the the specifics of the problem!
*** OH! And please note that mirror/gm0 works perfectly and I'm only needing any changes/help to mirror/500GB. ***
The apparent problem is not that I can't get gmirror to setup the mirror with the 2 drives added. Or that I can mount the mirror in a location and it shows the full drive size.
But it does appear to be with the actual formatting of the drive and the slice creation. Like I mentioned earlier I was used to doing drive partitioning/slicing by sysinstall and I tried some newfs / bsdlabel stuff by hand on this one and need some baby-stepping to get this figured out. Oh when I did mount up the slice I thought I had created and it showed the full size in "df -h", I tried copying to it and it ran out of room and did a kernel panic. I *believe* it actually was a 24MB slice. Something is amiss here!
I do want both 500GB drives in a mirror with 1 partition using the full disk on both mounted at /500GB labeled 500GB in gmirror.
Any help would be awfully appreciated!
These drives are identical WD 500GB 7200 SATA drives.
The server is a Tyan GX28 (B2881G28S4H if you want the specific model for any reason).
I;m having trouble getting the system to format these correctly. I sadly have relied on sysinstall too much for my drive partitioning/labeling and I can't quite seem to get this gmirror 100% working.
Now on the the specifics of the problem!
*** OH! And please note that mirror/gm0 works perfectly and I'm only needing any changes/help to mirror/500GB. ***
Code:
[root@abyss ~]# gmirror status
Name Status Components
mirror/gm0 COMPLETE ad4
ad6
mirror/500GB COMPLETE ad8
ad10
[root@abyss ~]#
Code:
[root@abyss ~]# gmirror list
Geom name: gm0
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 2
ID: 3317308697
Providers:
1. Name: mirror/gm0
Mediasize: 320072932864 (298G)
Sectorsize: 512
Mode: r6w6e7
Consumers:
1. Name: ad4
Mediasize: 320072933376 (298G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: DIRTY
GenID: 0
SyncID: 2
ID: 3601985553
2. Name: ad6
Mediasize: 320072933376 (298G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: DIRTY
GenID: 0
SyncID: 2
ID: 4042299093
Geom name: 500GB
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 3601984412
Providers:
1. Name: mirror/500GB
Mediasize: 500107861504 (466G)
Sectorsize: 512
Mode: r0w0e0
Consumers:
1. Name: ad8
Mediasize: 500107862016 (466G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 1809492736
2. Name: ad10
Mediasize: 500107862016 (466G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 3231205766
[root@abyss ~]#
Code:
[root@abyss /dev/mirror]# ls -lah
total 1
dr-xr-xr-x 2 root wheel 512 Oct 20 19:33 .
dr-xr-xr-x 6 root wheel 512 Oct 20 15:33 ..
crw-r----- 1 root operator 0, 163 Oct 20 19:33 500GB
crw-r----- 1 root operator 0, 166 Oct 22 22:50 500GBa
crw-r----- 1 root operator 0, 167 Oct 20 19:33 500GBc
crw-r----- 1 root operator 0, 83 Oct 20 19:33 gm0
crw-r----- 1 root operator 0, 85 Oct 20 19:33 gm0s1
crw-r----- 1 root operator 0, 89 Oct 20 15:33 gm0s1a
crw-r----- 1 root operator 0, 90 Oct 20 19:35 gm0s1b
crw-r----- 1 root operator 0, 91 Oct 20 19:33 gm0s1c
crw-r----- 1 root operator 0, 92 Oct 20 15:33 gm0s1d
crw-r----- 1 root operator 0, 93 Oct 20 15:33 gm0s1e
crw-r----- 1 root operator 0, 94 Oct 20 15:33 gm0s1f
crw-r----- 1 root operator 0, 95 Oct 20 15:33 gm0s1g
[root@abyss /dev/mirror]#
The apparent problem is not that I can't get gmirror to setup the mirror with the 2 drives added. Or that I can mount the mirror in a location and it shows the full drive size.
But it does appear to be with the actual formatting of the drive and the slice creation. Like I mentioned earlier I was used to doing drive partitioning/slicing by sysinstall and I tried some newfs / bsdlabel stuff by hand on this one and need some baby-stepping to get this figured out. Oh when I did mount up the slice I thought I had created and it showed the full size in "df -h", I tried copying to it and it ran out of room and did a kernel panic. I *believe* it actually was a 24MB slice. Something is amiss here!
I do want both 500GB drives in a mirror with 1 partition using the full disk on both mounted at /500GB labeled 500GB in gmirror.
Any help would be awfully appreciated!