Are there any tools/code to list 'used blocks' on reiser4 volume ? [sdb] ?
Hello,
Are there any tools/code to list 'used blocks' on reiser4 volume ? [/dev/sdb] ? The reason I ask is 57% unused space on volume so [100% - 43% used = 57% unused] # df -h shows: Filesystem Size Used Avail Use% Mounted on /dev/sdb 1.8T 747G 1.0T 43% /media/disk - To identify used blocks of a reiser4 volume, - resize volume to ['last' used block allocated to a file + 1 ] - Is that possible and safe to do so ? - Frees up a lot of the allowable space [ 1.8T - 747G used] - Are there any tools/code to re-size a reiser4 partition-volume ? Thanks --Glenn # fsck.reiser4 --check /dev/sdb shows: file count: 188,313 # fsck.reiser4 --check /dev/sdb Reiser4 fs was detected on /dev/sdb. Master super block (16): magic: ReIsEr4 blksize: 4096 format: 0x0 (format40) uuid: 3006ced1-7490-4ea8-a9b8-d82143c6bede label: <none> Format super block (17): plugin: format40 description: Disk-format plugin. version: 0 magic: ReIsEr40FoRmAt mkfs id: 0x1ddaf754 flushes: 0 blocks: 488378640 free blocks: 217146980 root block: 37017218 tail policy: 0x2 (smart) next oid: 0xedade file count: 188313 tree height: 6 key policy: LARGE Now using, # rpm -qa |grep -i reiser4 |sort kernel-reiser4-4.7.0-9.2.x86_64 libreiser4-1_1-0-1.1.0-13.1.x86_64 libreiser4-minimal-1_1-0-1.1.0-13.1.x86_64 reiser4progs-1.1.0-13.1.x86_64 reiser4progs-devel-1.1.0-13.1.x86_64 kernel now in use: linux-4.7.tar.xz latest reiser4 patch used: reiser4-for-4.7.0.patch # fdisk -l shows: Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes references used: http://www.spinics.net/lists/reiserf.../msg05155.html http://www.spinics.net/lists/reiserf.../msg05154.html |
Not a good idea. Unmount the filesystem, shrink it with resize_reiserfs, then reduce the block device.
|
All times are GMT -5. The time now is 12:09 AM. |