Operating System - Tru64 Unix
1751711 Members
5205 Online
108781 Solutions
New Discussion юеВ

Re: How to split a partition in the same file domain

 
SOLVED
Go to solution
Danesh Qureshi
Regular Advisor

How to split a partition in the same file domain

I am running Tru64 Unix V5.1B patch kit 5 on Alpha server ES47.

Please see attached file displaying current partitions on the ES47 server.

I am running out of disk space on /mdxrpd and /mdxrpl partitions so I need to reorganise these two partitions.

My question is how can I splie the /mdxrpd and /mdxrpl partions out of the data_domain1 and put these two partitions in separate file domains without losing any data on these two partitions?

You can see the data_domain1 consists of 6 partions within this file domain.

Any help would really appreciated.
6 REPLIES 6
Hein van den Heuvel
Honored Contributor

Re: How to split a partition in the same file domain

Those are not partitions, but filesets.
Filesets are very flexible, just names realy. The storage behind it is shared by all filesets inthe domain as you can see from the 'available' column.

Here is what you do.. untested.. check spelling of comands

bring down application

mkfset data_domain2 mdxrpd
mkdir /mdxrpd_old
umount /mdxrpd
mount data_domain1#mdxrpd /mdxrpd_old
mount data_domain2#mdxrpd /mdxrpd
cd /mdxrpd_old
vdump 0f - / | (cd /mdxrpd; vrestore -xf -)

bring up application
change mdxrpd entry in /etc/fstab
wait hours or days to make sure all is well

umount /mdxrpd_old
rmfset data_domain1 mdxrpd
presto, 74M blocks more available on domain1 ready to be used by mdxrpl

hth,
Hein.
Rob Leadbeater
Honored Contributor
Solution

Re: How to split a partition in the same file domain

Hi,

Firstly, may I correct your terminology. They're not partitions they're filesets.

The simple solution is to simply create new filesets in data_domain2 for mdxrpd and mdxrpl and then use vdump and vrestore to copy the data between them.
You'll need to ensure that nothing is changing on these two mount points in order to do this, so shutdown any applications etc.

So...

mkfset data_domain2 mdxrpd
mkfset data_domain2 mdxrpl

mkdir /copy_mdxrpd
mkdir /copy_mdxrpl

mount -t advfs data_domain2#mdxrpd /copy_mdxrpd
mount -t advfs data_domain2#mdxrpl /copy_mdxrpl

vdump -0f - /mdxrpd | vrestore -xf - -D /copy_mdxrpd
vdump -0f - /mdxrpl | vrestore -xf - -D /copy_mdxrpl

umount /copy_mdxrpd
umount /copy_mdxrpl

Modify /etc/fstab and change data_domain1 to data_domain2 for /mdxrpd and /mdxrpl

umount /mdxrpd
umount /mdxrpl
mount /mdxrpd
mount /mdxrpl

Check everything has copied correctly, then remove the old filesets from data_domain1

rmfset data_domain1 mdxrpd
rmfset data_domain1 mdxrpl

Hope this helps,

Regards,

Rob
Rob Leadbeater
Honored Contributor

Re: How to split a partition in the same file domain

Beat me to it Hein !! :-)
Danesh Qureshi
Regular Advisor

Re: How to split a partition in the same file domain

Sorry for the use of incorrect terminology.

Thank you all for your advice and help.
Danesh Qureshi
Regular Advisor

Re: How to split a partition in the same file domain

Very useful and helpful
Rob Leadbeater
Honored Contributor

Re: How to split a partition in the same file domain

Good to know... Feel free to assign points to this and your other questions ...