[tor-bugs] #32644 [Internal Services/Tor Sysadmin Team]: Please double the disk space in colchicifolium.torproject.org

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Dec 2 20:48:18 UTC 2019


#32644: Please double the disk space in colchicifolium.torproject.org
-------------------------------------------------+-------------------------
 Reporter:  irl                                  |          Owner:  anarcat
     Type:  task                                 |         Status:  closed
 Priority:  Medium                               |      Milestone:
Component:  Internal Services/Tor Sysadmin Team  |        Version:
 Severity:  Normal                               |     Resolution:  fixed
 Keywords:                                       |  Actual Points:
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------
Changes (by anarcat):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 here's what i did on the parent host to free up more space for the VM:

 {{{
 root at kvm5:~# df -h
 Sys. de fichiers     Taille Utilisé Dispo Uti% Monté sur
 udev                    32G       0   32G   0% /dev
 tmpfs                  6,3G     66M  6,3G   2% /run
 /dev/md0                20G    2,3G   17G  13% /
 tmpfs                   32G    128K   32G   1% /dev/shm
 tmpfs                  5,0M       0  5,0M   0% /run/lock
 tmpfs                   32G       0   32G   0% /sys/fs/cgroup
 tmpfs                  4,0G    4,0K  4,0G   1% /tmp
 /dev/mapper/csrv       246G    118G  116G  51% /srv
 /dev/mapper/csrv-big   1,5T    1,2T  208G  86% /srv/big
 tmpfs                  6,3G       0  6,3G   0% /run/user/0
 root at kvm5:# lvresize -L +200g vg_kvm5-rust/srv-big
   Size of logical volume vg_kvm5-rust/srv-big changed from 1,50 TiB
 (393216 extents) to 1,70 TiB (444416 extents).
   Logical volume vg_kvm5-rust/srv-big successfully resized.
 root at kvm5:~# cryptsetup resize /dev/mapper/csrv-big
 root at kvm5:~# resize2fs /dev/mapper/csrv-big
 resize2fs 1.44.5 (15-Dec-2018)
 Filesystem at /dev/mapper/csrv-big is mounted on /srv/big; on-line
 resizing required
 old_desc_blocks = 192, new_desc_blocks = 217
 The filesystem on /dev/mapper/csrv-big is now 455081472 (4k) blocks long.

 root at kvm5:~# df -h /srv/big
 Sys. de fichiers     Taille Utilisé Dispo Uti% Monté sur
 /dev/mapper/csrv-big   1,7T    1,2T  396G  76% /srv/big
 root at kvm5:~# du -h /srv/big/vmstore-
 big/colchicifolium.torproject.org/colchicifolium.torproject.org-lvm
 195G    /srv/big/vmstore-
 big/colchicifolium.torproject.org/colchicifolium.torproject.org-lvm
 }}}

 Then the guest was shutdown and the magic qemu command was ran:

 {{{
 root at kvm5:~# qemu-img resize  /srv/big/vmstore-
 big/colchicifolium.torproject.org/colchicifolium.torproject.org-lvm 300G
 Image resized.
 }}}

 Then in the guest, those commands still had to be ran:

 {{{
 root at colchicifolium:~# df -h  /srv
 Sys. de fichiers                  Taille Utilisé Dispo Uti% Monté sur
 /dev/mapper/vg_colchicifolium-srv   242G    181G   59G  76% /srv
 root at colchicifolium:~# pvs
   PV         VG                Fmt  Attr PSize   PFree
   /dev/sdb   vg_colchicifolium lvm2 a--  250,00g 5,00g
 root at colchicifolium:~# pvresize /dev/sdb
   Physical volume "/dev/sdb" changed
   1 physical volume(s) resized / 0 physical volume(s) not resized
 root at colchicifolium:~# vgs
   VG                #PV #LV #SN Attr   VSize   VFree
   vg_colchicifolium   1   1   0 wz--n- 300,00g 55,00g
 root at colchicifolium:~# lvextend /dev/vg_colchicifolium/srv -L +50g
   Size of logical volume vg_colchicifolium/srv changed from 245,00 GiB
 (62720 extents) to 295,00 GiB (75520 extents).
   Logical volume vg_colchicifolium/srv successfully resized.
 root at colchicifolium:~# resize2fs /dev/vg_colchicifolium/srv
 resize2fs 1.43.4 (31-Jan-2017)
 Le système de fichiers de /dev/vg_colchicifolium/srv est monté sur /srv ;
 le changement de taille doit être effectué en ligne
 old_desc_blocks = 16, new_desc_blocks = 19
 Le système de fichiers sur /dev/vg_colchicifolium/srv a maintenant une
 taille de 77332480 blocs (4k).
 root at colchicifolium:~# df -h /srv/
 Sys. de fichiers                  Taille Utilisé Dispo Uti% Monté sur
 /dev/mapper/vg_colchicifolium-srv   291G    181G  108G  63% /srv
 }}}

 i documented (summarily) parts of the procedure in the wiki and i think
 we're all done.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32644#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list