Reducing logical volume space. Will it destroy the data Please advice.

unix syzadmin unixsyzadmin at gmail.com
Thu Feb 16 10:15:05 UTC 2006


Hi,

We have a RHEL AS3 server.
I want to execute the following command to reduce logical volume space.
Will it destroy the data  Please advice.

"e2fsadm  -L -15G /dev/vg00/backup"

I want to increase the /logs by 15GB.  That is what I am planning to do.
Find below the output of few command related to my query.

root at bangapps root]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda6              4127076    318044   3599388   9% /
/dev/sda1               101089     25878     69992  27% /boot
/dev/sda9            107470556  74238944  27772328  73% /installers
/dev/vg00/LV00       102488500  92909036   4373448  96% /export/home
/dev/vg00/backup     102002024  16453584  80367000  17% /backup
/dev/vg00/logs        35886164  34063444         0 100% /logs
/dev/vg00/bealogs      5039616   4627776    155840  97% /bealogs
/dev/sda3              6048352     34604   5706508   1% /opt
none                   2045776         0   2045776   0% /dev/shm
/dev/sda8              2063504     32872   1925812   2% /tmp
/dev/sda2             15116868   2067472  12281492  15% /usr
/dev/sda7              2063504    145112   1813572   8% /var

[root at bangapps root]# more /proc/mdstat
Personalities : [raid5]
read_ahead 1024 sectors
Event: 1
md0 : active raid5 sde1[3] sdd1[2] sdc1[1] sdb1[0]
      430115904 blocks level 5, 64k chunk, algorithm 0 [4/4] [UUUU]

unused devices: <none>


[root at bangapps root]# more /etc/raidtab
raiddev             /dev/md0
raid-level                  5
nr-raid-disks               4
chunk-size                  64k
persistent-superblock       1
nr-spare-disks              0
    device          /dev/sdb1
    raid-disk     0
    device          /dev/sdc1
    raid-disk     1
    device          /dev/sdd1
    raid-disk     2
    device          /dev/sde1
    raid-disk     3

Thanks & Regards,

-GnanaShekar-



More information about the redhat-list mailing list