Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

Non-Destructive Repartitioning redhat enterprise 3

As the title says I need to repartition my rhe3 system.  I have SSH access and am kinda new at this.  If somebody can give me a step by step that would be great.  Currently the structure looks like the following...

                     Total                  Used

/dev/sda9       22 908.27 MB                         2 565.49 MB
 

/dev/sda8       493.75 MB                          437.67 MB
 
/dev/sda2            12 129.60 MB                     123.28 MB  

As you can see sda9 has tons of space and probably won't grow much beyond what it is, so I would like to scale down sda9 tp about 4 gigs, sda8 to 1 gig and the rest to sda2.  If anybody can help me do this I would be very thankful.

I have been all over then net and I ready alot about that it can be done just not how.  Thanks for any help.

IC
0
InnerChild
Asked:
InnerChild
  • 3
  • 2
1 Solution
 
wesly_chenCommented:
> I have SSH access
You can not do non-destructive repartition or partition resizing through remote login.
You need to be in front of that machine and boot into single user mode to do it.

But you can do symbolic link from sda2 and sda8 to sda9.
Say /dev/sda9 is mount as /data8.
mkdir /data8/4sda2   (for sda2)
mkdir /data8/4sda8
ln -s /data8/4sda2   /path-under-sda2
ln -s /data8/4sda8   /path-under-sda8

Otherwise, you need to partition your disk with LVM first, which allow you to resize the filesysterm online.
0
 
InnerChildAuthor Commented:
I hope you don't mind answsering a few questions for me, I am new but learning.  I don't know what symbolic linking is.  Is there any benefit or disadvantage to using it?  Also is there a way to use LVM without destroying the data on the drive?  The way I am reading this I don't think so but if you could give me a yes or no it would help.

Thanks

IC
0
 
InnerChildAuthor Commented:
I also have been reading a applications calls FIPS.  Would that be of any help?
0
 
wesly_chenCommented:
FIPS need to boot from floppy or CD. You can not do it from remote login.
As I mentioned before, from remote login, no, so far you can not do it.
Most of repartition software require you to boot from either other media or single user mode, which you need to
be in front of machine, unless you have remote KVM terminal.

>  there a way to use LVM without destroying the data on the drive?
no.
For more details about LVM, you can check:
http://www.tldp.org/HOWTO/LVM-HOWTO/

Symbolic is similar to "shortcut" in M$ Windows.
So your actual data is on some other partition but you can see it from your directory/partition.
0
 
InnerChildAuthor Commented:
Alright thatnks for all the good info, can I can get in front of the computer but was hopeing that I could do it remotly.  Can you help with the process for resizing for that?  As before step by step if it can be done.

Thanks

IC
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now