Scrapping slices

Hi Admins,

Server is sparc solaris 9

I am new into solaris with little experiemce with SVM.
/dev/dsk/c3t0d1s4 /u05
/dev/dsk/c3t0d1s3 /u02
/dev/dsk/c3t0d1s5 /u11
There are 3 file system created on slices of disk c3t0d1. Now i want to scrap all the slices and mount as a single FS.
What steps i have to follow to achieve the same.

Regards
newsol

You cannot merge file systems. You need to backup their data, destroy two slices and enlarge the one starting at the lower location (old three slices must be contiguous on disk for this to work), rebuild a single file system on the new large slice and restore your data there.

jlliagre,

Thanks for the suggestion. I have experience with building slice as mount points. But how to destroy the single slice from a disk.

In format menu, i can see a option format. But using the same , i can not destroy a single slice.

In svm, i use metaclear command to destroy a soft partition.

Thanks for your time.

Regards
newsol

Well, as you are unfamiliar with the process, please post your partition layout:
partition -> print

Hi,

partition> p
Current partition table (original):
Total disk cylinders available: 56761 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 - 15480       60.00GB    (15481/0/0) 125829568
  1       swap    wu   15481 - 23737       32.00GB    (8257/0/0)   67112896
  2     backup    wu       0 - 56760      219.99GB    (56761/0/0) 461353408
  3 unassigned    wm   23738 - 32768       35.00GB    (9031/0/0)   73403968
  4 unassigned    wm   32769 - 36639       15.00GB    (3871/0/0)   31463488
  5 unassigned    wm   36640 - 40510       15.00GB    (3871/0/0)   31463488
  6 unassigned    wm   40511 - 50831       40.00GB    (10321/0/0)  83889088
  7 unassigned    wm   50832 - 56760       22.98GB    (5929/0/0)   48190912
partition>

If i want to clear slice 5 what is the procedure.

Regards
newsol

You can not really clear slice 5. Slice 5 is just a region on the disk starting at 36640 and ending at 40510.

It depends on what you want to do with slice 5.

  • If you need another file system: umount fs, run newfs, mount fs again

  • If you want the slice to not hold information: run newfs , do not mount the file system, or ...

  • Set the start and end of the slice to 40000 (or any other address with the 36641-40509 range)

  • Merge with other slices: can only be done with slice 4 and 6 and will result in loss of data in slice 4, 5 and 6
    Umount file systems in slice 4, 5 and 6
    Backup file systems
    Set begin and end of slice 5 to 0
    Set begin and end of slice 6 to 0
    Set begin of slice 4 to 32769 and end of slice to 50831
    newfs slice4
    mount new fs
    (maybe) restore backup of slice 4, 5 and 6 to new file system in slice 4