openSUSE Forums > Install/Boot/Login » Resizing partitions non-destructively

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 18-Aug-2009, 11:36
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 2
vicrussell hasn't been rated much yet
Default Resizing partitions non-destructively

We have a new Dell PowerEdge T300 server with SuSE 11 and 3 RAID 5 disks giving around 900 GB of disk space. The default partitioning is very conservative and I need to allocate around 800 GB of free space.

A df -h gives:-
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/system-root_lv
4.0G 1.6G 2.3G 41% /
udev 1.9G 224K 1.9G 1% /dev
/dev/sda3 198M 30M 158M 17% /boot
/dev/mapper/system-opt_lv
4.0G 165M 3.6G 5% /opt
/dev/mapper/system-srv_lv
4.0G 137M 3.7G 4% /srv
/dev/mapper/system-tmp_lv
3.0G 74M 2.8G 3% /tmp
/dev/mapper/system-usr_lv
7.9G 4.3G 3.3G 58% /usr
/dev/mapper/system-var_lv
6.0G 3.1G 2.6G 55% /var
/dev/mapper/system-home_lv
8.1G 38M 8.0G 1% /home

Can I use YaST2 to resize /var and /usr without destroying the data?

Kind regards,

Vic
Reply With Quote
  #2 (permalink)  
Old 18-Aug-2009, 11:50
ionmich's Avatar
Explorer Penguin
 
Join Date: Aug 2008
Location: Mexico and Sweden
Posts: 124
ionmich hasn't been rated much yet
Default Re: Resizing partitions non-destructively

I can't verify the Yast solution but I have used GParted a number of times to resize/move with excellent results. You can download and burn it to CD for a bootable solution from GParted -- Welcome
Reply With Quote
  #3 (permalink)  
Old 18-Aug-2009, 12:39
goldie
Guest
 
Posts: n/a
Default Re: Resizing partitions non-destructively

> Can I use YaST2 to resize /var and /usr without destroying the data?

of course you *would* backup all in those directories even i said
absolutely, no problem--YaST will do it perfectly and all your data
will be as safe as if it were in a Lehman Brothers vault in August
2008.....right?

i am NOT saying that, btw..

i guess your new PowerEdge came with SUSE Linux Enterprise Server 11,
aka SLES 11, and not with openSUSE 11.0 or 11.1

while you _might_ get a top shelf answer here you do know (i guess)
that you have paid for support from the folks you bought the software
(or hardware, i don't know which) from...for that reason and for the
reason that SLES 11 and openSUSE 11.x are not identical, i strongly
suggest you seek assistance at novell.com while waiting for competent
help here (which won't come from me...though, i'm years ahead of most
posters here)

btw, you ARE very welcome here...it is just not the best place to seek
aid for SLES..

--
goldie
Reply With Quote
  #4 (permalink)  
Old 18-Aug-2009, 13:49
ionmich's Avatar
Explorer Penguin
 
Join Date: Aug 2008
Location: Mexico and Sweden
Posts: 124
ionmich hasn't been rated much yet
Default Re: Resizing partitions non-destructively

My apologies, I mis-read your question. A number of people have had problems with GParted and Raid 5.
Reply With Quote
  #5 (permalink)  
Old 01-Sep-2009, 03:07
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 2
vicrussell hasn't been rated much yet
Default Re: Resizing partitions non-destructively

Thank you for all your replies. All resized OK now typically as fololows:-

(as root)

init 1

lvextend -L 500 GB /dev/mapper/system-usr_lv
e2fsck -f /dev/mapper/system-usr_lv
resize2fs -f /dev/mapper/system-usr_lv
Reply With Quote
Reply

Bookmarks

Tags
non-destructive, resize partition, yast2


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2