Dariush Debian Diary

Diariusz Dariusza

, 09, 2004

Permanent URL Extending your filesystem

  1. create partition on new disk with type 8e
  2. goliat:/fs/samba# pvcreate /dev/hdd2 pvcreate -- physical volume "/dev/hdd2" successfully created
goliat:/fs/samba# vgextend share_vg /dev/hdd2
vgextend -- INFO: maximum logical volume size is 255.99 Gigabyte
vgextend -- doing automatic backup of volume group "share_vg"
vgextend -- volume group "share_vg" successfully extended

goliat:/fs/samba# lvextend /dev/share_vg/share_lv 
lvextend -- please enter l or L option

goliat:/fs/samba# pvscan 
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE   PV "/dev/hdc3" of VG "share_vg" [70.37 GB / 416 MB free]
pvscan -- ACTIVE   PV "/dev/hdd2" of VG "share_vg" [74.41 GB / 74.41 GB free]
pvscan -- ACTIVE   PV "/dev/hda2" of VG "home_vg"  [992 MB / 0 free]
pvscan -- ACTIVE   PV "/dev/hda3" of VG "share_vg" [69.64 GB / 0 free]
pvscan -- total: 4 [215.41 GB] / in use: 4 [215.41 GB] / in no VG: 0 [0]

goliat:/fs/samba# lvextend -L+74G /dev/share_vg/share_lv 
lvextend -- extending logical volume "/dev/share_vg/share_lv" to 213.60 GB
lvextend -- doing automatic backup of volume group "share_vg"
lvextend -- logical volume "/dev/share_vg/share_lv" successfully extended

goliat:/fs/samba# lvextend -L+1G /dev/share_vg/share_lv 
lvextend -- only 208 free physical extents in volume group "share_vg"

goliat:/fs/samba# lvextend -L+500M /dev/share_vg/share_lv 
lvextend -- extending logical volume "/dev/share_vg/share_lv" to 214.09 GB
lvextend -- doing automatic backup of volume group "share_vg"
lvextend -- logical volume "/dev/share_vg/share_lv" successfully extended

goliat:/fs/samba# lvextend -L+500M /dev/share_vg/share_lv 
lvextend -- only 83 free physical extents in volume group "share_vg"

goliat:/fs/samba# lvextend -L+50M /dev/share_vg/share_lv 
lvextend -- rounding relative size up to physical extent boundary
lvextend -- extending logical volume "/dev/share_vg/share_lv" to 214.14 GB
lvextend -- doing automatic backup of volume group "share_vg"
lvextend -- logical volume "/dev/share_vg/share_lv" successfully extended

goliat:/fs/samba# xfs   
xfs_admin     xfs_check     xfs_estimate  xfs_fsr       xfs_info      xfs_mkfile    xfs_repair    xfsdq         xfsinvutil    xfsrq         
xfs_bmap      xfs_db        xfs_freeze    xfs_growfs    xfs_logprint  xfs_ncheck    xfs_rtcp      xfsdump       xfsrestore    
goliat:/fs/samba# xfs_growfs /dev/share_vg/share_lv 
xfs_growfs: /dev/share_vg/share_lv is not a filesystem mount point, according to /etc/mtab
goliat:/fs/samba# xfs_growfs /fs/s                  
s2     samba  
goliat:/fs/samba# xfs_growfs /fs/samba/Inne/
meta-data=/fs/samba/Inne         isize=256    agcount=35, agsize=1048576 blks
data     =                       bsize=4096   blocks=36595712, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=0
naming   =version 2              bsize=4096  
log      =internal               bsize=4096   blocks=2227
realtime =none                   extsz=65536  blocks=0, rtextents=0
data blocks changed from 36595712 to 56135680
goliat:/fs/samba# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hde1             3.9G  919M  3.0G  23% /
/dev/home_vg/home_lv  987M  699M  289M  71% /home
/dev/share_vg/share_lv
                      214G  139G   75G  65% /fs/samba/Inne
goliat:/fs/samba# 


Last modified on

powered by blosxom  Creative Commons License

Copyright ©1995-2004 Dariush Pietrzak. All content on this website, unless otherwise noted, is licensed under a Creative Commons License.
Using desktop theme, version 0.5. Check the Blosxom site for the latest copy.

Calendar

September 2007
Sun Mon Tue Wed Thu Fri Sat
           
           

Archives

Categories

Subscribe

Subscribe to a syndicated feed of this weblog, brought to you by the power of RSS.

XML