Paste #93

Welcome On LodgeIt

Welcome to the LodgeIt pastebin. In order to use the notification feature a 31 day cookie with an unique ID was created for you. The lodgeit database does not store any information about you, it's just used for an advanced pastebin experience :-). Read more on the about lodgeit page. Have fun :-)

hide this notification

 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
z2-4:~# ls -l /var/run/ganeti/instance-disks/drupal-404.pokersource.vm.gnt\:0 
lrwxrwxrwx 1 root root 11 2009-12-21 11:39 /var/run/ganeti/instance-disks/drupal-404.pokersource.vm.gnt:0 -> /dev/drbd10
z2-4:~# kpartx -av /dev/drbd10
add map drbd10p1 (253:28): 0 48132 linear /dev/drbd10 63
add map drbd10p2 (253:29): 0 2040255 linear /dev/drbd10 48195
add map drbd10p3 (253:30): 0 18876375 linear /dev/drbd10 2088450
z2-4:~# fdisk -l /dev/drbd10

Disk /dev/drbd10: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0009fd38

       Device Boot      Start         End      Blocks   Id  System
/dev/drbd10p1               1           3       24066   83  Linux
/dev/drbd10p2               4         130     1020127+  8e  Linux LVM
/dev/drbd10p3             131        1305     9438187+  83  Linux
z2-4:~# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "debian" using metadata type lvm2
  Found volume group "all" using metadata type lvm2
z2-4:~# vgchange -ay
  1 logical volume(s) in volume group "debian" now active
  28 logical volume(s) in volume group "all" now active
z2-4:~# fsck /dev/debian/root 
fsck from util-linux-ng 2.16.1
e2fsck 1.41.9 (22-Aug-2009)
/dev/mapper/debian-root: recovering journal
Clearing orphaned inode 21047 (uid=102, gid=104, mode=0100600, size=0)
Clearing orphaned inode 21046 (uid=102, gid=104, mode=0100660, size=0)
Illegal inode 1262787365 in orphaned inode list.
/dev/mapper/debian-root was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Deleted inode 20872 has zero dtime.  Fix<y>? yes



Pass 2: Checking directory structure
Entry 'items.sql' in /root (15939) has deleted/unused inode 20870.  Clear<y>? yes

Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -100338
Fix<y>? yes

Free blocks count wrong for group #2 (4177, counted=4178).
Fix<y>? yes

Free blocks count wrong for group #3 (2441, counted=2442).
Fix<y>? yes

Free blocks count wrong (1950035, counted=1950037).
Fix<y>? yes

Free inodes count wrong for group #2 (2197, counted=2202).
Fix<y>? yes

Free inodes count wrong (512311, counted=512316).
Fix<y>? yes


/dev/mapper/debian-root: ***** FILE SYSTEM WAS MODIFIED *****
/dev/mapper/debian-root: 125124/637440 files (0.9% non-contiguous), 664235/2614272 blocks
z2-4:~# mount -o ro /dev/mapper/debian-root /mnt/drupal-404/
z2-4:~# ls /mnt/drupal-40
ls: cannot access /mnt/drupal-40: No such file or directory
z2-4:~# ls /mnt/drupal-404/
bin  boot  cdrom  dev  etc  home  initrd.img  lib  lost+found  media  mnt  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var  vmlinuz