SUMMARY: Moving disk slice.

From: Joohyun Cha <zoo11_at_hst.co.kr>
Date: Wed Jan 26 2005 - 19:57:17 EST
Hi. Managers.

Thanks for your kind reply.

Nearly all admin. said that I can't do it without rebuilding slice table and
file system. 

but hhuseman@aragorn.dh9dat.de gave me mail like this.

---
two questions before:
What OS is the machine running?? Solaris 8 or greater? If yes, there IS a
+possibility to solve this - if no, sorry, no idea...
Do you have some place to copy away root.back and home.back? This one's have to
+be empty...

If the answer to both questions is "YES", you can solve the problem:

Install "Solstice DiskSuite" (if it's Sol 9, SDS is part of the OS, and called
+"LVM" - but, it's exactly the same stuff, :-) ).
Then, create a one-way-mirror out of user.back, and reboot the machine to mount
+it. Afterwards, add the other two slices as additional
stripes, and allow SDS to do a "growfs". That should do the trick, I did it very
+often in the past.
The best tool for the SDS-stuff is the GUI, called metatool. Just take a look in
+the documentation, metatool is quite nice, :-))
---
Although OS isn't Solaris 8 (it's 7), I could do it with Disksuit 4.2.1
without any problem. Here's the way I got...

1) backup /root.back and /home.back
2) install SDS 4.2.1/patches and reboot.
3) delete slice s0, s5 of c0t1d0 and make three small (4MB) slice to 
   maintain metadb. make another big slice to attach s6 after doing SDS-stuff.
4) metadb init 
   # metadb -a -f /dev/rdsk/c0t1d0s0 
   # metadb -a /dev/rdsk/c0t1d0s1
   # metadb -a /dev/rdsk/c0t1d0s3
5) make s5 and existing s6 metadevice. (concat)
   # metainit d10 2 1 c0t1d0s6 1 c0t1d0s5
   Device order is important.
6) grow its filesystem
   # growfs /dev/md/rdsk/d10
7) mount/test it.

Thanks all!

My origianl query....
---
Hi. Managers.

I have disk that has 3 slices in it and is growing data
size rapidly. Here's df -k output and slice table.

/dev/dsk/c0t1d0s0     288603   42112  217631    17%    /root.back
/dev/dsk/c0t1d0s5    2056211  184984 1809541    10%    /home.back
/dev/dsk/c0t1d0s6    15042643 14141316  750901    95%    /user.back

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 -  130      301.40MB    (131/0/0)    617272
  1 unassigned    wu       0               0         (0/0/0)           0
  2     backup    wm       0 - 7505       16.86GB    (7506/0/0) 35368272
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm     131 - 1021        2.00GB    (891/0/0)   4198392
  6 unassigned    wm    1022 - 7505       14.57GB    (6484/0/0) 30552608
  7 unassigned    wm       0               0         (0/0/0)           0

I want to make big one slice by adding all 3 slices so that /user.back
can contain more data.

Is there any method for this except rebuild whole slice table and file
system?

Thanks in advance!
---

-- 
------------------------------------------------------------------------------
From:
main(){int a=122,j=11;while(a>-50){a=a>0?a:111;printf("%c",a);a=j==49?46:a-j;
j*=j;j=j%2?j:7;j*=j%8?1:0;}printf("%c1\n",49);}
------------------------------------------------------------------------------
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Jan 26 19:57:36 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:42 EST