Backup RMAN Oracle 12c en modo noarchivelog

Nos connectamos a RMAN

[oracle@vbgeneric oracle]$ rman

Recovery Manager: Release 12.1.0.2.0 – Production on Sun Oct 16 13:17:01 2016

Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.

Nos connectamos con el usuario sys a la instancia orlc12c donde esta la CDB

RMAN> connect target «sys/oracle@localhost:1521/orcl12c as sysdba»

connected to target database: ORCL12C (DBID=743937264)

Ejecutamos el backup

RMAN> backup database;

Starting backup at 16-OCT-16
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=27 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 10/16/2016 13:12:29
RMAN-06149: cannot BACKUP DATABASE in NOARCHIVELOG mode

Nos da error debido a que la base de datos esta en modo noarchivelog

RMAN> exit

Recovery Manager complete.

Revisamos las variables de entorno

[oracle@vbgeneric oracle]$ env|grep SID
ORACLE_SID=orcl12c

Miramos si esta la variable NLS_DATE_FORMAT

[oracle@vbgeneric oracle]$ env|grep NSL

No obtenemos ningun resultado

[oracle@vbgeneric oracle]$ echo «export NLS_DATE_FORMAT=’DD-MM-RRRR HH24:MI:SS'» >> .bash_profile

Agregamos la variable al profile

[oracle@vbgeneric oracle]$ export NLS_DATE_FORMAT=’DD-MM-RRRR HH24:MI:SS’

Exportamos la variable y volvemos a acceder a RMAN

[oracle@vbgeneric oracle]$ rman

Recovery Manager: Release 12.1.0.2.0 – Production on Sun Oct 16 13:17:01 2016

Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.

Nos volvemos a connectar al CDB

RMAN> connect target «sys/oracle@localhost:1521/orcl12c as sysdba»

connected to target database: ORCL12C (DBID=743937264)
using target database control file instead of recovery catalog

Paramos la instancia

RMAN> shutdown immediate;

database closed
database dismounted
Oracle instance shut down

Levantamos la instancia sin abrirla

RMAN> startup mount;

connected to target database (not started)
Oracle instance started
database mounted

Total System Global Area 838860800 bytes

Fixed Size 2929936 bytes
Variable Size 608176880 bytes
Database Buffers 222298112 bytes
Redo Buffers 5455872 bytes

Realizamos el backup

RMAN> backup database;

Starting backup at 16-10-2016 13:19:11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=21 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00011 name=/u01/app/oracle/oradata/orcl12c/orcl/example01.dbf
input datafile file number=00009 name=/u01/app/oracle/oradata/orcl12c/orcl/sysaux01.dbf
input datafile file number=00008 name=/u01/app/oracle/oradata/orcl12c/orcl/system01.dbf
input datafile file number=00010 name=/u01/app/oracle/oradata/orcl12c/orcl/SAMPLE_SCHEMA_users01.dbf
input datafile file number=00012 name=/u01/app/oracle/oradata/orcl12c/orcl/APEX_1851336378250219.dbf
input datafile file number=00013 name=/u01/app/oracle/oradata/orcl12c/orcl/APEX_5457999048253711.dbf
channel ORA_DISK_1: starting piece 1 at 16-10-2016 13:19:13
channel ORA_DISK_1: finished piece 1 at 16-10-2016 13:20:08
piece handle=/u01/app/oracle/fast_recovery_area/ORCL12C/344AC7178F061E05E0530100007F0C70/backupset/2016_10_16/o1_mf_nnndf_TAG20161016T131912_d07fnl03_.bkp tag=TAG20161016T131912 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:55
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00003 name=/u01/app/oracle/oradata/orcl12c/sysaux01.dbf
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl12c/system01.dbf
input datafile file number=00017 name=/u01/app/oracle/oradata/orcl12c/undotbs2.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/orcl12c/users01.dbf
channel ORA_DISK_1: starting piece 1 at 16-10-2016 13:20:09
channel ORA_DISK_1: finished piece 1 at 16-10-2016 13:20:44
piece handle=/u01/app/oracle/fast_recovery_area/ORCL12C/backupset/2016_10_16/o1_mf_nnndf_TAG20161016T131912_d07fp9hs_.bkp tag=TAG20161016T131912 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00015 name=/u01/app/oracle/oradata/orcl12c/ORDS/sysaux01.dbf
input datafile file number=00014 name=/u01/app/oracle/oradata/orcl12c/ORDS/system01.dbf
input datafile file number=00016 name=/u01/app/oracle/oradata/orcl12c/ORDS/users01.dbf
channel ORA_DISK_1: starting piece 1 at 16-10-2016 13:20:45
channel ORA_DISK_1: finished piece 1 at 16-10-2016 13:21:10
piece handle=/u01/app/oracle/fast_recovery_area/ORCL12C/344C19EC2BA1043AE0530100007F8552/backupset/2016_10_16/o1_mf_nnndf_TAG20161016T131912_d07fqfjj_.bkp tag=TAG20161016T131912 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:26
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00007 name=/u01/app/oracle/oradata/orcl12c/pdbseed/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/orcl12c/pdbseed/system01.dbf
channel ORA_DISK_1: starting piece 1 at 16-10-2016 13:21:10
channel ORA_DISK_1: finished piece 1 at 16-10-2016 13:21:36
piece handle=/u01/app/oracle/fast_recovery_area/ORCL12C/344AA75FC7C01B5AE0530100007FDC99/backupset/2016_10_16/o1_mf_nnndf_TAG20161016T131912_d07fr78x_.bkp tag=TAG20161016T131912 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:26
Finished backup at 16-10-2016 13:21:36

Starting Control File and SPFILE Autobackup at 16-10-2016 13:21:36
piece handle=/u01/app/oracle/fast_recovery_area/ORCL12C/autobackup/2016_10_16/o1_mf_s_925391901_d07fs6gx_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 16-10-2016 13:21:51

El backup ha finalizado correctamente, hacemos un listado de los backups

RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
——- —- — ———- ———– ———— ——————-
1 Full 1.46G DISK 00:00:44 16-10-2016 13:19:57
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20161016T131912
Piece Name: /u01/app/oracle/fast_recovery_area/ORCL12C/344AC7178F061E05E0530100007F0C70/backupset/2016_10_16/o1_mf_nnndf_TAG20161016T131912_d07fnl03_.bkp
List of Datafiles in backup set 1
Container ID: 3, PDB Name: ORCL
File LV Type Ckp SCN Ckp Time Name
—- — —- ———- ——————- —-
8 Full 2817455 16-10-2016 13:18:07 /u01/app/oracle/oradata/orcl12c/orcl/system01.dbf
9 Full 2817455 16-10-2016 13:18:07 /u01/app/oracle/oradata/orcl12c/orcl/sysaux01.dbf
10 Full 2817455 16-10-2016 13:18:07 /u01/app/oracle/oradata/orcl12c/orcl/SAMPLE_SCHEMA_users01.dbf
11 Full 2817455 16-10-2016 13:18:07 /u01/app/oracle/oradata/orcl12c/orcl/example01.dbf
12 Full 2817455 16-10-2016 13:18:07 /u01/app/oracle/oradata/orcl12c/orcl/APEX_1851336378250219.dbf
13 Full 2817455 16-10-2016 13:18:07 /u01/app/oracle/oradata/orcl12c/orcl/APEX_5457999048253711.dbf

BS Key Type LV Size Device Type Elapsed Time Completion Time
——- —- — ———- ———– ———— ——————-
2 Full 1.18G DISK 00:00:29 16-10-2016 13:20:38
BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20161016T131912
Piece Name: /u01/app/oracle/fast_recovery_area/ORCL12C/backupset/2016_10_16/o1_mf_nnndf_TAG20161016T131912_d07fp9hs_.bkp
List of Datafiles in backup set 2
File LV Type Ckp SCN Ckp Time Name
—- — —- ———- ——————- —-
1 Full 2817670 16-10-2016 13:18:21 /u01/app/oracle/oradata/orcl12c/system01.dbf
3 Full 2817670 16-10-2016 13:18:21 /u01/app/oracle/oradata/orcl12c/sysaux01.dbf
6 Full 2817670 16-10-2016 13:18:21 /u01/app/oracle/oradata/orcl12c/users01.dbf
17 Full 2817670 16-10-2016 13:18:21 /u01/app/oracle/oradata/orcl12c/undotbs2.dbf

BS Key Type LV Size Device Type Elapsed Time Completion Time
——- —- — ———- ———– ———— ——————-
3 Full 614.79M DISK 00:00:19 16-10-2016 13:21:03
BP Key: 3 Status: AVAILABLE Compressed: NO Tag: TAG20161016T131912
Piece Name: /u01/app/oracle/fast_recovery_area/ORCL12C/344C19EC2BA1043AE0530100007F8552/backupset/2016_10_16/o1_mf_nnndf_TAG20161016T131912_d07fqfjj_.bkp
List of Datafiles in backup set 3
Container ID: 4, PDB Name: ORDS
File LV Type Ckp SCN Ckp Time Name
—- — —- ———- ——————- —-
14 Full 2817454 16-10-2016 13:18:06 /u01/app/oracle/oradata/orcl12c/ORDS/system01.dbf
15 Full 2817454 16-10-2016 13:18:06 /u01/app/oracle/oradata/orcl12c/ORDS/sysaux01.dbf
16 Full 2817454 16-10-2016 13:18:06 /u01/app/oracle/oradata/orcl12c/ORDS/users01.dbf

BS Key Type LV Size Device Type Elapsed Time Completion Time
——- —- — ———- ———– ———— ——————-
4 Full 606.45M DISK 00:00:21 16-10-2016 13:21:31
BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20161016T131912
Piece Name: /u01/app/oracle/fast_recovery_area/ORCL12C/344AA75FC7C01B5AE0530100007FDC99/backupset/2016_10_16/o1_mf_nnndf_TAG20161016T131912_d07fr78x_.bkp
List of Datafiles in backup set 4
Container ID: 2, PDB Name: PDB$SEED
File LV Type Ckp SCN Ckp Time Name
—- — —- ———- ——————- —-
5 Full 2013568 02-06-2016 07:48:44 /u01/app/oracle/oradata/orcl12c/pdbseed/system01.dbf
7 Full 2013568 02-06-2016 07:48:44 /u01/app/oracle/oradata/orcl12c/pdbseed/sysaux01.dbf

BS Key Type LV Size Device Type Elapsed Time Completion Time
——- —- — ———- ———– ———— ——————-
5 Full 17.20M DISK 00:00:05 16-10-2016 13:21:42
BP Key: 5 Status: AVAILABLE Compressed: NO Tag: TAG20161016T132136
Piece Name: /u01/app/oracle/fast_recovery_area/ORCL12C/autobackup/2016_10_16/o1_mf_s_925391901_d07fs6gx_.bkp
SPFILE Included: Modification time: 16-10-2016 13:19:11
SPFILE db_unique_name: ORCL12C
Control File Included: Ckp SCN: 2817670 Ckp time: 16-10-2016 13:18:21

Volvemos a abrir la base de datos

RMAN> startup

database is already started
database opened

RMAN>exit

[oracle@vbgeneric oracle]$ sqlplus /nolog

SQL*Plus: Release 12.1.0.2.0 Production on Sun Oct 16 14:35:11 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

SQL> conn hr
Enter password:
Connected.

SQL> SELECT con_name, instance_name, state FROM dba_pdb_saved_states;

CON_NAME
———-
INSTANCE_N
———-
STATE
———-
ORCL
orcl12c
OPEN

 

Ejecutar php sin servidor web

Hoy continuo realizando un proyecto, he tenido la necesidad de ver vía navegador parte de código antiguo que esta en php, pues bien, normalmente suelo ejecutar :

python -m SimpleHTTPServer 80

Serving HTTP on 0.0.0.0 port 80 ...
192.168.1.90 - - [08/Sep/2016 08:40:21] "GET / HTTP/1.1" 200 -
192.168.1.90 - - [08/Sep/2016 08:40:51] "GET /test HTTP/1.1" 200 -

Esto va muy bien si lo que necesitas ver es html o descargar algún fichero, normalmente lo utilizo para descargar algún pdf o música al móvil, entre otras.

El problema que surgía hoy es que tenia un antiguo proyecto en php, puedo arrancar alguna maquina virtual, subir el proyecto y listo, pero, por que no lo puedo visualizar desde mi equipo tal y como esta, la solución esta en php.

En mi caso como ejecutable php tengo el siguiente binario :

/usr/bin/php5

Este lo utilizo por consola para ejecutar algunos scripts en php.

Ahora bien, ¿como hago para poder poner en escucha el equipo en el puerto 80 y poder interpretar en código php?
Se hace de la siguiente forma:

Accedemos como superuser al directorio donde tenemos nuestro código php y ejecutamos:

php5 -S 127.0.0.1:80 -t .
php5 [options] -S <addr>:<port> [-t docroot]

 

Si os fijáis hay un punto al final, este indica el directorio actual, también podríamos indicar el directorio a publicar :

php5 -S 127.0.0.1:80 -t /home/test/project_php

De esta forma se pone a la escucha.

PHP 5.6.17-3 Development Server started at Thu Sep 8 08:26:26 2016
Listening on https://127.0.0.1:80
Document root is /home/test/project_php
Press Ctrl-C to quit.

Si accedemos vía navegador, veremos como se ejecuta correctamente:

captura-de-pantalla-de-2016-09-08-082931

También podemos observar a que fichero hemos accedido, con su código de estado:

PHP 5.6.17-3 Development Server started at Thu Sep  8 08:26:26 2016
Listening on https://127.0.0.1:80
Document root is /home/test/project_php
Press Ctrl-C to quit.
[Thu Sep  8 08:27:45 2016] 127.0.0.1:60148 [200]: /info.php

 

 

php5 -S 192.168.1.90:80 -t /home/test/project_php

PHP 5.6.17-3 Development Server started at Thu Sep  8 08:36:21 2016
Listening on https://192.168.1.35:80
Document root is /home/test/project_php
Press Ctrl-C to quit.
[Thu Sep  8 08:36:25 2016] 192.168.1.33:60045 [200]: /info.php
[Thu Sep  8 08:36:26 2016] 192.168.1.33:60046 [404]: /favicon.ico - No such file or directory
[Thu Sep  8 08:36:26 2016] 192.168.1.33:60047 [404]: /favicon.ico - No such file or directory

Bien de una forma u otra podemos interpretar el código php para visualizarlo en el navegador, también recordemos como lo hemos hecho con python.

Mysql consultas

SELECT table_name AS "Tables", round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB" FROM information_schema.TABLES ORDER BY (data_length + index_length) DESC;

SELECT TABLE_SCHEMA AS 'Database', TABLE_NAME AS 'Table', CONCAT(ROUND(((DATA_LENGTH + INDEX_LENGTH - DATA_FREE) / 1024 / 1024),2)," Mb") AS Size FROM INFORMATION_SCHEMA.TABLES;

SELECT TABLE_SCHEMA AS 'Database', TABLE_NAME AS 'Table', CONCAT(ROUND(((DATA_LENGTH + INDEX_LENGTH - DATA_FREE) / 1024 / 1024),2)," MB") AS Size FROM INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA like '%YOUR_DB_NAME%' ;

SELECT CONCAT(sum(ROUND(((DATA_LENGTH + INDEX_LENGTH - DATA_FREE) / 1024 / 1024),2))," MB") AS Size FROM INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA like '%YOUR_DB_NAME%' ;

 

SELECT table_schema "databases", sum( data_length + index_length ) / 1024 / 1024 "data length", sum( data_free )/ 1024 / 1024  "data free" FROM info
rmation_schema.TABLES GROUP BY table_schema ;

 

SELECT unix_timestamp()-31*86400 "unix time";

 

SELECT count(*) TABLES, concat(round(sum(table_rows)/1000000,2),'K') rows, concat(round(sum(data_length)/(1024*1024*1024),2),'G') DATA, concat(round(sum(index_length)/(1024*1024*1024),2),'G') index, concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'G') total_size, round(sum(index_length)/sum(data_length),2) indexfrac FROM information_schema.TABLES;

 

SELECT count(*) TABLES,table_schema,concat(round(sum(table_rows)/1000000,2),'M') rows, concat(round(sum(data_length)/(1024*1024*1024),2),'G') DATA, concat(round(sum(index_length)/(1024*1024*1024),2),'G') index, concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'G') total_size, round(sum(index_length)/sum(data_length),2) indexfrac FROM information_schema.TABLES GROUP BY table_schema ORDER BY sum(data_length+index_length) DESC LIMIT 10;

 

SELECT engine, count(*) TABLES, concat(round(sum(table_rows)/1000000,2),'M') rows, concat(round(sum(data_length)/(1024*1024*1024),2),'G') DATA, concat(round(sum(index_length)/(1024*1024*1024),2),'G') index, concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'G') total_size, round(sum(index_length)/sum(data_length),2) indexfrac FROM information_schema.TABLES GROUP BY engine ORDER BY sum(data_length+index_length) DESC LIMIT 10;

Reset password user Mysql

Hi all,

Working on a project Today I found I needed the password of user admin mysql database in windows, as well to perform the reset of the database execute the following command :

mysqld.exe -u admin --skip-grant-tables

Then:

mysql.exe

select user from mysql.user;

update mysql.user set password = password('new password') where user = 'admin';

flush privileges;

\q

And this is all

C:\Parallels\Plesk\Databases\MySQL51\bin>mysql -u admin -p
Enter password: *********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.73-community MySQL Community Server (GPL)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
+--------------------+
2 rows in set (0.02 sec)

btrfs

$ btrfs filesystem defrag -v -r dir/

Recursively defragment files under dir/, print files as they are processed. The file names will be printed in batches, similarly the amount of data triggered by defragmentation will be proportional to last N printed files. The system dirty memory throttling will slow down the defragmentation but there can still be a lot of IO load and the system may stall for a moment.

$ btrfs filesystem defrag -v -r -f dir/

Recursively defragment files under dir/, be verbose and wait until all blocks are flushed before processing next file. You can note slower progress of the output and lower IO load (proportional to currently defragmented file).

$ btrfs filesystem defrag -v -r -f -clzo dir/

Recursively defragment files under dir/, be verbose, wait until all blocks are flushed and force file compression.

$ btrfs filesystem defrag -v -r -t 64M dir/

Recursively defragment files under dir/, be verbose and try to merge extents to be about 64MiB. As stated above, the success rate depends on actual free space fragmentation and the final result is not guaranteed to meet the target even if run repeatedly.

$ btrfs filesystem resize -1G /path

$ btrfs filesystem resize 1:-1G /path

Shrink size of the filesystem’s device id 1 by 1GiB. The first syntax expects a device with id 1 to exist, otherwise fails. The second is equivalent and more explicit. For a single-device filesystem it’s typically not necessary to specify the devid though.

$ btrfs filesystem resize max /path

$ btrfs filesystem resize 1:max /path

Let’s assume that devid 1 exists, the filesystem does not occupy the whole block device, eg. it has been enlarged and we wan the grow the filesystem. Simply using max as size we will achieve that.

root@test:/home/test/VMs# gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 7DFD9799-AE91-4827-AC15-E6E15863A453
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries
Total free space is 31459294 sectors (15.0 GiB)

Number Start (sector) End (sector) Size Code Name
1 2048 411647 200.0 MiB EF02 Linux filesystem
2 411648 12994559 6.0 GiB 8200 Swap
3 12994560 65423359 25.0 GiB 8300 System
4 65423360 2162575359 1000.0 GiB 8300 Linux filesystem
5 2319861760 3907029134 756.8 GiB 8300 Linux filesystem
8 2194032640 2319861759 60.0 GiB 8300 Linux filesystem

root@test:/home/test/VMs# df -h
S.ficheros Tamaño Usados Disp Uso% Montado en
/dev/sda3 25G 19G 4,7G 81% /
udev 10M 0 10M 0% /dev
tmpfs 3,2G 9,2M 3,2G 1% /run
tmpfs 7,9G 460K 7,9G 1% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 7,9G 0 7,9G 0% /sys/fs/cgroup
/dev/sda8 60G 58G 2,4G 97% /xfs
/dev/sda4 200G 185G 14G 93% /home
tmpfs 1,6G 4,0K 1,6G 1% /run/user/118
tmpfs 1,6G 12K 1,6G 1% /run/user/1000

root@test:/home/test/VMs# btrfs filesystem df /home/
Data, single: total=188.01GiB, used=185.94GiB
System, DUP: total=8.00MiB, used=48.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=1.50GiB, used=680.66MiB
Metadata, single: total=8.00MiB, used=0.00B
GlobalReserve, single: total=240.00MiB, used=0.00B

root@test:/home/test/VMs# btrfs filesystem show /dev/sda4
Label: none uuid: 3ac934be-2651-48d2-8850-3d3bbc8a98e0
Total devices 1 FS bytes used 186.60GiB
devid 1 size 200.00GiB used 191.04GiB path /dev/sda4
Btrfs v3.17

root@test:/home/test/VMs# btrfs filesystem resize +50G /home
Resize ‘/home’ of ‘+50G’

root@test:/home/test/VMs# btrfs filesystem df /home/
Data, single: total=188.01GiB, used=185.94GiB
System, DUP: total=8.00MiB, used=48.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=1.50GiB, used=680.89MiB
Metadata, single: total=8.00MiB, used=0.00B
GlobalReserve, single: total=240.00MiB, used=0.00B

root@test:/home/test/VMs# df -h
S.ficheros Tamaño Usados Disp Uso% Montado en
/dev/sda3 25G 19G 4,7G 81% /
udev 10M 0 10M 0% /dev
tmpfs 3,2G 9,2M 3,2G 1% /run
tmpfs 7,9G 460K 7,9G 1% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 7,9G 0 7,9G 0% /sys/fs/cgroup
/dev/sda8 60G 58G 2,4G 97% /xfs
/dev/sda4 250G 188G 62G 76% /home
tmpfs 1,6G 4,0K 1,6G 1% /run/user/118
tmpfs 1,6G 12K 1,6G 1% /run/user/1000

root@test:/home/test/VMs# btrfs filesystem show /dev/sda4
Label: none uuid: 3ac934be-2651-48d2-8850-3d3bbc8a98e0
Total devices 1 FS bytes used 179.06GiB
devid 1 size 250.00GiB used 191.04GiB path /dev/sda4

Btrfs v3.17

Por un Sistema Libre !!!