Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UnMirroring two disks

Status
Not open for further replies.

stevenriz

IS-IT--Management
May 21, 2001
1,069
I need to unmirror a mirrored pair of disks. What would I need to do to do this? Here is some preliminary information.
======
df -k returns only two physical disks.... c0t0d0 and c1t6d0.
format returns 4 formatted disks. So am I safe assuming that 2 disks are mirrored to 2 others? What steps would I take to unmirror at least one of the pairs?
Thanks a lot! I hope you can help.
Steve
 
Hi,
The best way to see all the disks that are mirrored is by using the command metastat.It shows u what all slices of the disk are used in mirroring.
U can then use the following commands to un-mirror a metadevice :-
#metadetach d4 d24(where d24 is a submirror of d4)
#metaclear d24
Then edit /etc/vfstab and make appropriate changes in it.
If u are unmirroring completely, edit /etc/system also.

I hope this helps....
 
I'm doing a find on metastat and the other files now. It doesn't come up in the path and it isn't in any of the bin directories. Is this an addon piece of software? Format will not give me the opportunity to unmirror?

 
Hi,
I doubt that your disks are mirrored because if the disks are mirrored then format command will show the device as /dev/md/dsk/d1 (where md shows metadevice).
The metastat command is in /usr/sbin.
See if this helps.....
 
Here's what is in my /usr/bin directory. Could it be formatted using other means?

application# ls m*
m68k mailstats mc68010 mesg more
mach mailx mc68020 mkdir mpstat
mail makedev mc68030 mkfifo msgfmt
mailcompat man mc68040 mkmsgs mt
mailq mc68000 mconnect montbl mv
application#
 
Hey,
I can help u if u show me the results of following commands:
1)format
2)ls -l /usr/sbin/meta*
 
Format and ls -l /usr/sbin/meta
------
application# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w22000020379c3511,0
1. c0t2d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w22000020379c358b,0
2. c1t4d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd@w22000020379c3242,0
3. c1t6d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd@w22000020379c45f6,0
Specify disk (enter its number):
-------------
application# ls -l meta*
No match
application#
 
Ok.....so u have 4 disks.....
But since there are no meta* files, I think there is no software on your system for mirroring.
Give the output of df -k command as well.....
 
Here it is. The reason I think at least one disk is mirrored is because when I go through the Format command it says the disk is already formatted. Then when I do
newfs -m 1 /dev/dsk/c0t2d0s0
it tells me that /POS is already mounted there but as you can see from df -k, /POS is mounted on c1t6d0s0. I don't get why that is if it isn't mirrored in some way.

-------------
df -k command
application# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 962571 364513 540304 41% /
/dev/dsk/c0t0d0s6 1987399 834726 1093052 44% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t0d0s5 962571 68706 836111 8% /var
/dev/dsk/c0t0d0s7 10084696 7499288 2484562 76% /opt
/dev/dsk/c1t6d0s5 4032142 2937691 1054130 74% /workspace1
swap 3244848 70384 3174464 3% /tmp
/dev/dsk/c1t6d0s0 4032142 2786451 1205370 70% /POS
 
Hi,
Does the output look like this:-
# newfs -m 1 /dev/dsk/c0t1d0s4
newfs: /dev/rdsk/c0t1d0s4 last mounted as /bkp_root
newfs: construct a new file system /dev/rdsk/c0t1d0s4:(y/n)?
If it looks like this ,then it shows that the device was last mounted as /bkp_root.However there is no such FS on it now and u can create a newfs on it.

See if this helps....
 
ok, I'll try it. I will backup whatever is in /POS anyways. I usually don't do things unless I'm confident it's ok to do so. Thanks for henging in there with me. I'll let you know what happens.
steve
 
Seems to have worked. Because slice 6 had all of the 16gb assigned to it, I first &quot;unassigned&quot; slice 6 on the disk and split 16gb up to make slices 5 and 6 each 8gb. Then I mounted them to a new directory I created in root. This was trmendous help and I thank you all. I hope someday I could do the same for you or others.
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top