unmirroring swap partition



Hi dear friends;
i want to make unmirroring swap partition. But i could not achieve it
eventhough i could make unmointing of /.
i need your help;


1.
format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
/pci@1f,4000/scsi@3/sd@0,0
1. c0t1d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
/pci@1f,4000/scsi@3/sd@1,0

2.
metastat
d2: Mirror
Submirror 0: d20
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 2100735 blocks (1.0 GB)

d20: Submirror of d2
State: Okay
Size: 2100735 blocks (1.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s1 0 No Okay Yes




3.
i want to remove d2 mirror with its submirror

i chahged /etc/vfstab

root@ultra # more /etc/vfstab
#device device mount FS fsck mount
mount
#to mount to fsck point type pass at boot
options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1
no -
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
#NetBackup Binaries
#
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 /NetBackup ufs
1 yes -
#


and
i rebooted machine.
then
i wrote
#metaclear -r d2
metaclear: ultra: d2: metadevice is open

what can i do in order to remove d2 and d21?

Best Regards.

.



Relevant Pages

  • metadb question (flags missing)
    ... d10: Mirror ... d11: Submirror of d10 ... d21: Submirror of d20 ... d61: Submirror of d60 ...
    (SunManagers)
  • Re: unmirroring swap partition
    ... eventhough i could make unmointing of /. ... Submirror 0: d20 ... i want to remove d2 mirror with its submirror ...
    (comp.unix.solaris)
  • Re: Live Upgrade.
    ... Initialize the new disk slice as metadevice d30 ... Initialize the new mirror device d1 using d30 as a submirror ... IF ALL IS WELL with the new BE, remove the d20 submirror from d0 ...
    (comp.unix.solaris)
  • How to break a mirror?
    ... I have some bad disks on (d20: Submirror of d30). ... d30: Mirror ...
    (comp.unix.solaris)
  • How to break a mirror?
    ... I have some bad disks on (d20: Submirror of d30). ... d30: Mirror ...
    (comp.sys.sun.admin)