Scrapping slices


 
Thread Tools Search this Thread
Operating Systems Solaris Scrapping slices
# 1  
Old 01-11-2012
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
# 2  
Old 01-11-2012
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.
# 3  
Old 01-11-2012
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
# 4  
Old 01-11-2012
Well, as you are unfamiliar with the process, please post your partition layout:
partition -> print
# 5  
Old 01-11-2012
Hi,

Code:
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
# 6  
Old 01-12-2012
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

partition of slices

Hello, I am using solaris 10 x86. my root and backup slices is having same memory 10 GB and same cylinders numbers . My root and backup cylinders ends at same cylinder number 1031. so for creating a new slice i am giving starting cylinder from 1302 and this is giving me error as "out of range" .... (2 Replies)
Discussion started by: bhargav90
2 Replies

2. BSD

NetBSD, SPARC, UFS slices

I need to shrink a UFS slice with NetBSD on SPARC. seems the only way is backup+reformat. can someone please give me exact commands for that? presumably backup is file-by-file instead of sector-by-sector, but how to preserve permissions/dates/attributes.. ? thanks. (0 Replies)
Discussion started by: orange47
0 Replies

3. Solaris

ufs slices info in solaris

how do you get start and end sector of a UFS slice? (2 Replies)
Discussion started by: orange47
2 Replies

4. Solaris

Partitioning hard disk. Want 8 slices...have 9

Hi all I'm having difficulty setting up a proper disk structure on a 72GB HDD. The drive was previously part of a zfs pool. The zpool has ben destroyed and now I want to use the disk in a raid 5 array. I need to partition the disk accordingly though. This is what the partition table currently... (7 Replies)
Discussion started by: notreallyhere
7 Replies

5. Solaris

SAN DISKS - Number of slices ?

Good morning to one and all :-) Thank god its Friday, as its bee na rubbish week for me ! So, a quick question. Disks ! Ive got a few local disks, and a few SAN disks used on my solaris server. Whats confusing me, and Im not sure if there's an issue at the SAN end, or my end, regarding the... (3 Replies)
Discussion started by: sbk1972
3 Replies

6. UNIX for Dummies Questions & Answers

Resize root disk slices

I have a Sun box running Solaris 9. My root disk was slices too small when it was installed and I am now at 99% capacity for my root partition. Is it possible, and if so how?, to increase the size of slice 0 and decrease the size of slice 7?? Thanks! Current partition table... (6 Replies)
Discussion started by: FredSmith
6 Replies

7. Filesystems, Disks and Memory

*BSD slices - multiple questions

Can you have a second primary slice on a second hdd? I know that primary slices are defined in the mbr, but where are all the sub partitions defined at? From the OBSD installation FAQ: What exactly is in the PBR? (0 Replies)
Discussion started by: Derrek
0 Replies

8. UNIX for Dummies Questions & Answers

resizing slices

I downloaded the Solaris recommended patched for x86 and tried to install it, but I got the message that I dont have enough disk space. I don't want to install the patches without the option to back out. Anyway I did a df -k and found that my root mount point is in 948MB whereas my /export/home is... (5 Replies)
Discussion started by: dangral
5 Replies

9. UNIX for Dummies Questions & Answers

new disk slices

How do I create new disk slices taking space from an existing slice? Right now I have slice 6 (/usr) with 16G. I'd like to create slices 5 (/opt) and 7 (/export/home) and steal space from slice 6. Thanks (3 Replies)
Discussion started by: kmgrady01
3 Replies

10. UNIX for Dummies Questions & Answers

Solaris 8 installation slices

Anyone know if SUN recommends users to install the root parition on 1 single slice or break out the /var , /etc, /opt etc on separate slices? What if i only have a single hdd that is only 2 GB (1 Reply)
Discussion started by: owls
1 Replies
Login or Register to Ask a Question