Repartition existing partition...

Good day, guys.

I am wondering if there is a way to repartition an existing partition? Like for example, my /home filesystem is 10GB in size... I want to make it smaller and make it to 5GB and make another filesystem in the other 5GB... Is there a way to do this?

Thanks and God bless.

midnytblu

[320 byte] By [midnytblu] at [2007-11-26 8:23:43]
# 1
If it is ufs then take the backup of the existing data.then repartition the volumeand restore the dataIf it is zfs, you can shrink the filesystem online
RajeshPS at 2007-7-6 21:33:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
thanks sir for the quick reply...but, unfortunately, i don't have a backup drive as of now... is there any other way to do it? and it is ufs...and you partition the drive using the format command right?thanks again and looking forward for your
midnytblu at 2007-7-6 21:33:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
You can use ufsdump to backup to file (if you have the space somewhere else in your system).ufsdump 0f /var/tmp/my_home_backup /home
Gunnar_Gustafsson at 2007-7-6 21:33:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4
... but befor running ufsdump stop ntp serverand run fssnap and on device created with fssnap run ufsdump.paul
PiffPaffcio at 2007-7-6 21:33:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5

fssnap: something new even for me..

But if space is the issue, maybe single user mode and backup of /home is easier.

As I understand fssnap will use the same amount of data on another disk that is used by /home (in his example).

Reading about it

http://docs.sun.com/app/docs/doc/817-5093/6mkisoq9q?q=fssnap&a=view

one idea can be to use fssnap and mount the "blockdevice" and use tar later to unpack the files when repartitioning has been done.

Gunnar_Gustafsson at 2007-7-6 21:33:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...