Reduce Size of serveur in LINUX-Suse

 
Thread Tools Search this Thread
Operating Systems Linux SuSE Reduce Size of serveur in LINUX-Suse
# 1  
Old 05-20-2010
Reduce Size of serveur in LINUX-Suse

Hello,

I do not know Linux. It is a black box.

We have 2 virtuals servers (SAPVM01 and SAPVM06) in one physical server.

The first virtual system (SAPVM01) has a total size of 420 Gb and a free space of 170 GB. A SAP system is running.
The second virtual system (SAPVM06) has a total size of 200GB and it is a new system. it is empty.

The goal is to reduce SAPVM01 of 150 Gb and to add this space to SAPVM06.
Is it possible to do this??

Hereafter, some commands that they can help you:


we have VMWARE

the version of LINUX is [FONT=Arial]SUSE Linux ES 10.

Code:
SERVEUR20:~ # uname -a
Linux SERVEUR20 2.6.16.60-0.21-smp #1 SMP Tue May 6 12:41:02 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux SERVEUR20:~ # 
 
 
SERVEUR20:~ # vgdisplay
  --- Volume group ---
  VG Name               system
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               429.92 GB
  PE Size               4.00 MB
  Total PE              110060
  Alloc PE / Size       110058 / 429.91 GB
  Free  PE / Size       2 / 8.00 MB
  VG UUID               C2YYyy-iLrN-BrRv-MbmK-lHxP-fhbV-otbZCZ
 
SERVEUR20:~ #
 
 
SERVEUR20:~ # lvdisplay
  --- Logical volume ---
  LV Name                /dev/system/root_lv
  VG Name                system
  LV UUID                iLVWmc-cqTP-x1ZV-WjY9-BYX7-dE1G-OQvl1b
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                407.91 GB
  Current LE             104426
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0
 
  --- Logical volume ---
  LV Name                /dev/system/swap_lv
  VG Name                system
  LV UUID                e8hpKQ-44R2-B8V9-jp7K-qtKx-LX7K-tAeZuv
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                22.00 GB
  Current LE             5632
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:1
 
SERVEUR20:~ #
 
 
SERVEUR20:~ # fdisk -l
 
Disk /dev/sda: 461.7 GB, 461708984320 bytes
255 heads, 63 sectors/track, 56132 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           9       72261   83  Linux
/dev/sda2              10       56132   450807997+  8e  Linux LVM
 
Disk /dev/dm-0: 437.9 GB, 437994389504 bytes
255 heads, 63 sectors/track, 53249 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
 
Disk /dev/dm-0 doesn't contain a valid partition table
 
Disk /dev/dm-1: 23.6 GB, 23622320128 bytes
255 heads, 63 sectors/track, 2871 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
 
Disk /dev/dm-1 doesn't contain a valid partition table SERVEUR20:~ #
 
 
SERVEUR20:~ # mount
/dev/mapper/system-root_lv on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) debugfs on /sys/kernel/debug type debugfs (rw) udev on /dev type tmpfs (rw,size=22g) devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda1 on /boot type ext3 (rw,acl,user_xattr) SERVEUR20:~ #
 
 
SERVEUR20:/etc # cat SuSE-release
SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 2 SERVEUR20:/etc #
 
 
SERVEUR20:/ # cat /etc/fstab
/dev/system/root_lv  /                    ext3       defaults              1 1
/dev/sda1            /boot                ext3       acl,user_xattr        1 2
/dev/system/swap_lv  swap                 swap       defaults              0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
/dev/fd0             /media/floppy        auto       noauto,user,sync      0 0
SERVEUR20:/ #
 
 
 
SERVEUR20:/ # apropos reiser
debugfs.reiserfs (8) - The debugging tool for the ReiserFS filesystem.
reiserfsck (8)       - The checking tool for the ReiserFS filesystem.
mkreiserfs (8)       - The create tool for the Linux ReiserFS filesystem.
tunefs.reiserfs (8)  - The tunning tool for the ReiserFS filesystem.
reiserfstune (8)     - The tunning tool for the ReiserFS filesystem.
fsck.reiserfs (8)    - The checking tool for the ReiserFS filesystem.
mkfs.reiserfs (8)    - The create tool for the Linux ReiserFS filesystem.
resize_reiserfs (8)  - resizer tool for the ReiserFS filesystem
debugreiserfs (8)    - The debugging tool for the ReiserFS filesystem.
SERVEUR20:/ #

Is there someone to help me ??
thanks in advance for your help
Daniel

Last edited by pludi; 05-20-2010 at 07:41 AM.. Reason: code tags, please...
# 2  
Old 05-20-2010
Is this output from within one of the VMs, or from the server hosting the VMs?
# 3  
Old 05-20-2010
Reduce Size of serveur in LINUX-Suse

it is from VM
# 4  
Old 05-20-2010
It appears as though the disk was already allocated to the VM. Also, in this way, I personally believe it was done in an inefficient way.

What is the output of
Code:
df -h

Also, could you add disk to the physical server and then allocate that to the second virtual server?

How much memory exists on the physical machine as well as each virtual machine?

Code:
vmstat -s -S M | egrep 'mem|swap'

You may also want to run top on the physical machine, not to mention, if these are running SAP, depending on the disk subsystem, you may run into contention for I/O and slow both of them down.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Shrink ext4 filesystem and reduce the size of a Logical Volume in Linux

Hello guys, I would like to ask you kindly if you don't know some quick and safe method how to shrink ext4 filesystem and reduce the size of a Logical Volume in Linux, please? Thank you very much. (2 Replies)
Discussion started by: los_bandidos
2 Replies

2. Red Hat

How to reduce the LVM Size in RHEL/Centos 7 ?

Hi All, I have one logical volume with size as 900G and it is mounted as xfs file system. Now I want to reduce this partition to 500G. So I followed the below steps. unmount the mount point /home Reduced the volume using the command Now I remounted the partition. But the problem... (3 Replies)
Discussion started by: kalpeer
3 Replies

3. Red Hat

How to reduce inode size of /var?

Hi, inode size reached its 100% in /var Due to this i'am getting the error No space left on device my crond process is stopped and when i want to restart it it is showing the below error Starting crond: crond: can't open or create /var/run/crond.pid: No space left on device df -i o/p ... (3 Replies)
Discussion started by: Mohamed Thamim
3 Replies

4. UNIX for Dummies Questions & Answers

Unable to reduce the size of volume group?

My volume group of size 200 gb. out of which only 100 gb is used by 2 logical volumes /dev/vg00/lvol0 and /dev/vg00/lvol0 respectively (both are 50 gb each). Whenever i use vgreduce command to reduce the size of volume group i get below error. # vgreduce vg00 -a Physical volume... (16 Replies)
Discussion started by: pinga123
16 Replies

5. Shell Programming and Scripting

reduce pdf file size through multiple folders

Dear all, i have a lot of .pdf files that i need to reduce size with pdf2ps and ps2pdf app. I need a script which i can reduce file size of all .pdf files in every subfolder of WORKDIR folder. folder tree like: WORKDIR SUBBWORK DIR1 SUB_SUB_WORKDIR1 ... (1 Reply)
Discussion started by: migor78
1 Replies

6. Solaris

reduce hard drive size

I'm trying to reduce hard drive size (number of cylinders) in SPARC Solaris. Its easy to change last cylinder of last slice, but that cannot be done for slice2/backupslice because it insists on whole disk. If I try to change disk type/geometry, all slices get replaced with some 'default'... (1 Reply)
Discussion started by: orange47
1 Replies

7. Shell Programming and Scripting

command to reduce size of file/directory???

Hello, I want to compress any given file or directory. I used 1)gzip 2)zip But when I do "ls -l". I found that the zipped file is in fact greater in size than the original file. Can you please tell me the commands which will show me the difference in its size. (2 Replies)
Discussion started by: nsharath
2 Replies

8. Shell Programming and Scripting

How to reduce font size in a file

HPUX 11iv2 #!/bin/sh Hi all. I have a script that results in the creation of an ascii file which is ultimately emailed out to several people. The email wraps each line so I would like to reduce the font size of the ascii file. I looked at nroff and also tr but it wasn't clear to me how to do... (2 Replies)
Discussion started by: lyoncc
2 Replies

9. HP-UX

How to reduce fil system size seen in bdf!

When i execute bdf, /home direcory seems 100% full. But when i check /home with 'du', total used memory is 30 MB in 1,4 Gb. how can I reduce this 100% to its real state? (11 Replies)
Discussion started by: akyuceisik
11 Replies

10. Solaris

How to reduce the size of a logical volume in solaris 9

Hi, I have the following problem. I just have a new machine with mirroring. The logical volume for /opt is dimensionned to 75 GB which is to much. I want a volume of 10 GB. How can I reduce the size ? I tried to reduce the size of the slice from 75 GB to 10 GB, but the size of the logical volume... (6 Replies)
Discussion started by: aribault
6 Replies
Login or Register to Ask a Question