LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-09-2006, 11:55 AM   #1
sKiBa
Member
 
Registered: Jun 2004
Posts: 49

Rep: Reputation: 15
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
 
Old 08-11-2006, 12:45 PM   #2
shizzy-t
Member
 
Registered: Dec 2003
Location: Maine/USA
Distribution: Fedora Core, Centos, Solaris
Posts: 34

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
removing text shadows in kde; removing taskbar color gradient webazoid Linux - Software 1 04-11-2006 02:56 AM
Become a mirror? 123 Paul Linux - General 9 12-06-2005 03:59 PM
Removing files wihtout removing containing Direcotry caps_phisto Linux - General 2 10-07-2004 08:16 AM
mirror BRAHmS Linux - General 1 05-08-2004 07:31 PM
How to Mirror HD? sikandar Linux - Software 4 08-25-2003 11:16 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration