LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Removing an SVM mirror (https://www.linuxquestions.org/questions/solaris-opensolaris-20/removing-an-svm-mirror-472340/)

sKiBa 08-09-2006 11:55 AM

Removing an SVM mirror
 
Hi guys,

I havea box that is configured with 2 disks in Raid 1 using SVM. I am running out of space and want to break the mirror (just my test box) but am new to SVM. Can someone point me in the right direction. Do I need to use metaoffline? How do I then go about expanding the root filesystem with the created space on the second disk? Any help much appreciated.

The 1.1GB is unassigned, 538mb is swap and the 6GB is / Would also like to incorporate the spare 1gb too.


Code:

d5: Mirror
    Submirror 0: d15
      State: Okay       
    Submirror 1: d25
      State: Okay       
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 2215647 blocks (1.1 GB)

d15: Submirror of d5
    State: Okay       
    Size: 2215647 blocks (1.1 GB)
    Stripe 0:
        Device    Start Block  Dbase        State Reloc Hot Spare
        c0t0d0s5          0    No            Okay  Yes


d25: Submirror of d5
    State: Okay       
    Size: 2215647 blocks (1.1 GB)
    Stripe 0:
        Device    Start Block  Dbase        State Reloc Hot Spare
        c0t1d0s5          0    No            Okay  Yes


d1: Mirror
    Submirror 0: d11
      State: Okay       
    Submirror 1: d21
      State: Okay       
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 1102437 blocks (538 MB)

d11: Submirror of d1
    State: Okay       
    Size: 1102437 blocks (538 MB)
    Stripe 0:
        Device    Start Block  Dbase        State Reloc Hot Spare
        c0t0d0s1          0    No            Okay  Yes


d21: Submirror of d1
    State: Okay       
    Size: 1102437 blocks (538 MB)
    Stripe 0:
        Device    Start Block  Dbase        State Reloc Hot Spare
        c0t1d0s1          0    No            Okay  Yes


d0: Mirror
    Submirror 0: d10
      State: Okay       
    Submirror 1: d20
      State: Okay       
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 14338863 blocks (6.8 GB)

d10: Submirror of d0
    State: Okay       
    Size: 14338863 blocks (6.8 GB)
    Stripe 0:
        Device    Start Block  Dbase        State Reloc Hot Spare
        c0t0d0s0          0    No            Okay  Yes


d20: Submirror of d0
    State: Okay       
    Size: 14338863 blocks (6.8 GB)
    Stripe 0:
        Device    Start Block  Dbase        State Reloc Hot Spare
        c0t1d0s0          0    No            Okay  Yes


shizzy-t 08-11-2006 12:45 PM

Use the metadetach command.

For the root slice you'd want to do a
metaclear d0 d20

Then change the root device back to user the orginal no-mirrored slice
metaroot /dev/dsk/c0t0d0s0

Reboot

Then use metaclear to remove the rest of the mirror

metaclear -r d0 (this will remove d0 and unattach d10)

As to growing the / file system over the unassigned area of the secondary disk...i think you'd have to backup everything then distroy the partitions make root bigger then recreate the raid 1.


All times are GMT -5. The time now is 02:18 AM.