We are using four 300G disks to create disk mirror. c1t0d0 and c1t1d0 are mirrored , and c1t2d0 and c1t3d0 are palned to set up mirror.
One sample for the 3rd disk (c1t2d0 ) partition layout :
Part Tag Flag Cylinders Size Blocks
0 usr wm 0 - 46850 279.25GB (46851/0/0) 585637500
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 46872 279.38GB (46873/0/0) 585912500
3 unassigned wu 0 0 (0/0/0) 0
4 unassigned wu 0 0 (0/0/0) 0
5 unassigned wu 0 0 (0/0/0) 0
6 unassigned wu 0 0 (0/0/0) 0
7 unassigned wm 46851 - 46872 134.28MB (22/0/0) 275000
After mirrored c1t0d0 and c1t1d0, we want to use format to see current disk partion , also newfs to setup filesystem on c1t2d0, but these two commands are failed.
Example : ( we have to use Ctrol+C to stop format because the command is hung )
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
1. c1t1d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
2. c1t2d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
3. c1t3d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
Specify disk (enter its number): 2
Could you give some clues ? Thanks !
I can't tell if the format hangs before or after the newfs or mkfs.
If format is hanging when reviewing device info, then something is wrong from the device level.
Another way to test this to create a ZFS storage pool on one of the devices that is hanging:
# zpool create test c1t2d0
That will tell us that something is wrong with the devices and not newfs or mkfs.
Hi Cindy :
Thanks your help. I have tried zpool command and device is ok. Same as what i mentioned in the first message, i have created disk mirror and format/newfs is slow. After searching forum , i found one thread ( newfs "hangs" for almost 30 minute delay! ) is similar to my problems. If network is down ( on my system, it is e1000g0), format/newfs will be very slow. But if network is up ( on my system, it will be fast ).
So , my question is same as this thread, what's the relationship between network, metadb and format/newfs ?
I did not enable NIS or mpxio.
I don't know SVM well enough to comment but I do know that there are meta* services
in inetadm so maybe its SVM that needs network access. I do remember that in the
previous /etc/inetd.conf there was a SVM-related service.
I hope some more knowledgeable can comment.