Ubuntu Pastebin

Paste from nitegreen at Fri, 1 Apr 2016 21:38:44 +0000

Download as text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
@ubuntu:~# fdisk -l /dev/sda
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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
Disklabel type: dos
Disk identifier: 0x000d8608

Device     Boot      Start        End   Sectors   Size Id Type
/dev/sda1  *          2048     499711    497664   243M 83 Linux
/dev/sda2           501758 1000000000 999498243 476.6G  5 Extended
/dev/sda3       1440530432 1953525167 512994736 244.6G 83 Linux
/dev/sda5           501760  999999487 999497728 476.6G 8e Linux LVM

Partition table entries are not in disk order.

@ubuntu:~# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda5
  VG Name               root_vg
  PV Size               512.00 GiB / not usable 3.00 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              131071
  Free PE               14362
  Allocated PE          116709
  PV UUID               OgbrGh-m632-xfDN-2LPz-YOfV-a92l-tnGdAJ
   

@ubuntu:~# vgdisplay
  --- Volume group ---
  VG Name               root_vg
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  20
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               512.00 GiB
  PE Size               4.00 MiB
  Total PE              131071
  Alloc PE / Size       116709 / 455.89 GiB
  Free  PE / Size       14362 / 56.10 GiB
  VG UUID               2z70QA-EyRN-2uvN-Sb5h-Kk0b-rY8q-rIfJA2
   

@ubuntu:~# lvdisplay
  --- Logical volume ---
  LV Path                /dev/root_vg/root
  LV Name                root
  VG Name                root_vg
  LV UUID                eYiD8o-vpnf-IkCb-mvyS-L24K-J2YC-AeLzis
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2014-03-04 02:47:55 +0000
  LV Status              suspended
  # open                 0
  LV Size                240.00 GiB
  Current LE             61440
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0
   
  --- Logical volume ---
  LV Path                /dev/root_vg/swap_1
  LV Name                swap_1
  VG Name                root_vg
  LV UUID                m0dtIk-dziE-Wcnm-PoRP-b7rU-yMFo-Cp6zqM
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2014-03-04 02:47:55 +0000
  LV Status              available
  # open                 0
  LV Size                15.89 GiB
  Current LE             4069
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1
   
  --- Logical volume ---
  LV Path                /dev/root_vg/lv_var_opt
  LV Name                lv_var_opt
  VG Name                root_vg
  LV UUID                bwcezd-MwgU-uVDL-mnJt-J0EI-b2x8-A2C8U5
  LV Write Access        read/write
  LV Creation host, time nimbus, 2015-03-18 03:39:40 +0000
  LV Status              available
  # open                 1
  LV Size                200.00 GiB
  Current LE             51200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:2
   

@ubuntu:~# pvscan
  PV /dev/sda5   VG root_vg   lvm2 [512.00 GiB / 56.10 GiB free]
  Total: 1 [512.00 GiB] / in use: 1 [512.00 GiB] / in no VG: 0 [0   ]

@ubuntu:~# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "root_vg" using metadata type lvm2

@ubuntu:~# lvscan
  ACTIVE            '/dev/root_vg/root' [240.00 GiB] inherit
  ACTIVE            '/dev/root_vg/swap_1' [15.89 GiB] inherit
  ACTIVE            '/dev/root_vg/lv_var_opt' [200.00 GiB] inherit

@ubuntu:~# pvs
  PV         VG      Fmt  Attr PSize   PFree 
  /dev/sda5  root_vg lvm2 a--  512.00g 56.10g

@ubuntu:~# vgs
  VG      #PV #LV #SN Attr   VSize   VFree 
  root_vg   1   3   0 wz--n- 512.00g 56.10g

@ubuntu:~# lvs
  LV         VG      Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  lv_var_opt root_vg -wi-ao---- 200.00g                                                    
  root       root_vg -wi-s----- 240.00g                                                    
  swap_1     root_vg -wi-a-----  15.89g                                                    

@ubuntu:~# dumpe2fs -h /dev/root_vg/roo
dumpe2fs 1.42.12 (29-Aug-2014)
dumpe2fs: No such file or directory while trying to open /dev/root_vg/root
Couldn't find valid filesystem superblock.

@ubuntu:~# dumpe2fs -h /dev/root_vg/lv_var_opt
dumpe2fs 1.42.12 (29-Aug-2014)
Filesystem volume name:   <none>
Last mounted on:          /media/ubuntu/835a2e08-3bd8-4b69-905c-4d89c94f38e1
Filesystem UUID:          835a2e08-3bd8-4b69-905c-4d89c94f38e1
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              13107200
Block count:              52428800
Reserved block count:     2304246
Free blocks:              20977115
Free inodes:              13085168
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1011
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
RAID stride:              32744
Flex block group size:    16
Filesystem created:       Wed Mar 18 03:44:05 2015
Last mount time:          Thu Mar 31 22:35:13 2016
Last write time:          Thu Mar 31 22:35:13 2016
Mount count:              2
Maximum mount count:      -1
Last checked:             Tue Mar 22 18:15:07 2016
Check interval:           0 (<none>)
Lifetime writes:          3538 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      420fb49b-9628-4afc-9f31-c3af313ac8c0
Journal backup:           inode blocks
Journal features:         journal_incompat_revoke
Journal size:             128M
Journal length:           32768
Journal sequence:         0x00199921
Journal start:            1
Download as text