resizing the partition table

Host 1
-------

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 1911 18.56GB (1912/0/0) 38913024
1 swap wu 1912 - 5434 34.19GB (3523/0/0) 71700096
2 backup wm 0 - 14086 136.71GB (14087/0/0) 286698624
3 usr wm 5435 - 7145 16.60GB (1711/0/0) 34822272
4 unassigned wm 7146 - 8856 16.60GB (1711/0/0) 34822272
5 var wm 8857 - 10768 18.56GB (1912/0/0) 38913024
6 unassigned wm 10769 - 12479 16.60GB (1711/0/0) 34822272
7 home wm 12480 - 14086 15.60GB (1607/0/0) 32705664

Host 2
------
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 12074 - 14086 19.54GB (2013/0/0) 40968576
1 swap wu 0 - 3220 31.26GB (3221/0/0) 65553792
2 backup wm 0 - 14086 136.71GB (14087/0/0) 286698624
3 usr wm 8300 - 10060 17.09GB (1761/0/0) 35839872
4 unassigned wm 6539 - 8299 17.09GB (1761/0/0) 35839872
5 var wm 10061 - 12073 19.54GB (2013/0/0) 40968576
6 unassigned wm 4778 - 6538 17.09GB (1761/0/0) 35839872
7 home wm 3221 - 4777 15.11GB (1557/0/0) 31688064

Hi,

Is there way to resize the partition tables?
I want to make host 1 exactly same as host2.
This involves decrasing/increasing the size of the partitions.
The above are system disk partitions.
I was asked to build host 1 exactly like Host 2 after I have installed the solaris 9 on Host 1.

Please help me.

Thanks.
Srini

You will need to reinstall the OS to accomplish your goal. If you resize the slices, it will corrupt the data if it is mounted.

How do I do it while installing.
I can re-install..but I need to have exact partitions as Host 2.
Does install allow me to give block/cylinders when I use the custom option as opposed default.
If you see host 2..Swap started with 0-3220 ans so on.
Please help on this.

Thanks.

Yes you can change the layout of your partition table during your install

which OS exactly are you on???

If your OS allows you to use LVM then best option will be to reinstall the distribution and while installing you should use LVM for creating partitions so that in future if you want to change the slice size then you can do it without reinstalling OS.

Regards,

Harinder Singh.

you will need to re-install. partition it out during the install process.

-S