Troublesome Unmirror of Swap metadevice

  • Follow


Group,

I'm trying to completely remove mirroring between two disks, I've cleared
all the metadevices except for the device previously used for swap, which is
proving troublesome. Its consistently saying that the device is open,
however it's not being used so far as I can see - I've tried rebooting, and
also double checked my vfstab file to ensure it's pointing only to the
slice, and also tried the -f option with metaclear:

Any help removing it would be much appreciated.

# metastat
d2: Mirror
    Submirror 0: d21
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 5121944 blocks (2.4 GB)

d21: Submirror of d2
    State: Okay
    Size: 5121944 blocks (2.4 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c0t0d0s1          0     No            Okay   Yes


Device Relocation Information:
Device   Reloc  Device ID
c0t0d0   Yes    id1,sd@w5005076506cf656a

# metaclear -r d2
metaclear: clus-01.localnet: d2: metadevice is open

# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s1   32,1      16 5121920 5121920

clus-01:/# 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      -
/dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3    /usr    ufs     1       no      -
/dev/dsk/c0t0d0s4 /dev/rdsk/c0t0d0s4    /var    ufs     1       no      -
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5    /export ufs     2       yes     -
/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6    /usr/local ufs  2       yes     -
swap    -       /tmp    tmpfs   -       yes     -



0
Reply Gareth 5/23/2004 12:29:25 AM

RESOLVED

Booting in Single user mode was enough to fix this... sorry for the time
wasting.

Regards,
Gareth Crispin

"Gareth Crispin" <gareth.crispin@ntlworldNOSPAM.com> wrote in message
news:c8or95$io6$1@newsreaderg1.core.theplanet.net...
> Group,
>
> I'm trying to completely remove mirroring between two disks, I've cleared
> all the metadevices except for the device previously used for swap, which
is
> proving troublesome. Its consistently saying that the device is open,
> however it's not being used so far as I can see - I've tried rebooting,
and
> also double checked my vfstab file to ensure it's pointing only to the
> slice, and also tried the -f option with metaclear:
>
> Any help removing it would be much appreciated.
>
> # metastat
> d2: Mirror
>     Submirror 0: d21
>       State: Okay
>     Pass: 1
>     Read option: roundrobin (default)
>     Write option: parallel (default)
>     Size: 5121944 blocks (2.4 GB)
>
> d21: Submirror of d2
>     State: Okay
>     Size: 5121944 blocks (2.4 GB)
>     Stripe 0:
>         Device     Start Block  Dbase        State Reloc Hot Spare
>         c0t0d0s1          0     No            Okay   Yes
>
>
> Device Relocation Information:
> Device   Reloc  Device ID
> c0t0d0   Yes    id1,sd@w5005076506cf656a
>
> # metaclear -r d2
> metaclear: clus-01.localnet: d2: metadevice is open
>
> # swap -l
> swapfile             dev  swaplo blocks   free
> /dev/dsk/c0t0d0s1   32,1      16 5121920 5121920
>
> clus-01:/# 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      -
> /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3    /usr    ufs     1       no      -
> /dev/dsk/c0t0d0s4 /dev/rdsk/c0t0d0s4    /var    ufs     1       no      -
> /dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5    /export ufs     2       yes     -
> /dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6    /usr/local ufs  2       yes     -
> swap    -       /tmp    tmpfs   -       yes     -
>
>
>


0
Reply Gareth 5/23/2004 12:34:52 AM


It turns out, that after removing the mirror that my core dump location was
the metadevice, which was holding the metadevice open:

savecore: open("/dev/md/dsk/d2"): No such device or address
dumpadm: cannot use /dev/md/dsk/d2 as dump device: No such device or address


0
Reply Gareth 5/23/2004 12:37:37 AM

2 Replies
700 Views

(page loaded in 0.038 seconds)

Similiar Articles:




7/23/2012 5:31:29 AM


Reply: