@devops_ru

Страница 2654 из 4568
Alexander
03.05.2017
20:27:00
u s

p

Aion
03.05.2017
20:27:11
Disk /dev/sdc: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000e17fe Device Boot Start End Blocks Id System /dev/sdc1 1 5222 41942016 83 Linux

было

Google
Alexander
03.05.2017
20:27:16
перед началом удаления

Aion
03.05.2017
20:27:24
isk /dev/sdc: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000e17fe Device Boot Start End Blocks Id System /dev/sdc1 1 6527 52428096 83 Linux

стало

Hackru
03.05.2017
20:28:00
эм, у тебя почему в двух случаях одинаковый размер всего диска?

Aion
03.05.2017
20:28:17
был диск 40Гб

на нем раздел dev/sdc1

добавили 10Гб диску

стал 50Гб

Alexander
03.05.2017
20:29:00
rescan сделал?

Aion
03.05.2017
20:29:08
что это?

Alexander
03.05.2017
20:29:42
физический размер диска не поменялся, с точки зрения системы

Hackru
03.05.2017
20:29:56
и чего?

Google
Hackru
03.05.2017
20:30:00
суперблок куда делся?

Alexander
03.05.2017
20:30:06
goggle: rescan disk

а это вопрос к виртуализатору

Aion
03.05.2017
20:30:43
суперблок куда делся?
потом я полез читать как отресайзить раздел /dev/sdc1 (40Gb) на весь диск

fdisk: удалить и заного создать

Alexander
03.05.2017
20:31:50
сделать пересоздание на старом размере через fdisk

сказать fsck -n /dev/sdc1

запомнить смещения (адреса) суперблоков

чтоб было потом откуда резервные копии читать

Aion
03.05.2017
20:33:24
Alexander
03.05.2017
20:33:39
ох, тогда давай так

1. сделай scsi rescan

Aion
03.05.2017
20:34:35
echo 1 > /sys/class/scsi_device/device/rescan <- оно?

Alexander
03.05.2017
20:34:42
echo '- - -' ... - нагуглишь :)

ну, sdc только поставь

в логах должен увидеть, что размер изменился

ну, или по fdisk -l /dev/sdc

а, твой вариант корректнее

Aion
03.05.2017
20:36:28
Disk /dev/sdc: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000e17fe Device Boot Start End Blocks Id System /dev/sdc1 1 6527 52428096 83 Linux

Alexander
03.05.2017
20:37:11
чего-то не очень поменялось

Google
Aion
03.05.2017
20:37:37
диск уже имеет актуальный размер

т.е. он был 40Гб

сейчас 50Гб

Alexander
03.05.2017
20:38:14
лады, fsck -n /dev/sdc1

наверное, extfs по-умолчанию

Aion
03.05.2017
20:38:40
root@jenkins:~# fsck -n /dev/sdc1 fsck from util-linux-ng 2.17.2 e2fsck 1.41.12 (17-May-2010) fsck.ext2: Superblock invalid, trying backup blocks... fsck.ext2: Bad magic number in super-block while trying to open /dev/sdc1 The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>

root@jenkins:~# fsck.ext4 -n /dev/sdc1 e2fsck 1.41.12 (17-May-2010) fsck.ext4: Superblock invalid, trying backup blocks... fsck.ext4: Bad magic number in super-block while trying to open /dev/sdc1 The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>

Alexander
03.05.2017
20:39:22
mount|grep sdc1

ext3?

Aion
03.05.2017
20:39:47
ext4

в fstab числится ext4

Alexander
03.05.2017
20:40:41
ладно, давай через mkfs

Aion
03.05.2017
20:40:58
погоди но оно перетрет мне данные?

Alexander
03.05.2017
20:41:01
mkfs -t ext4 -n /dev/sdc1

нет

Aion
03.05.2017
20:41:13
точно?

Alexander
03.05.2017
20:41:14
ключик -n

man mkfs

Aion
03.05.2017
20:42:39
в мане про него не написано о_О

нашел

Google
Alexander
03.05.2017
20:43:22
неужели запамятовал :(

минуту

Aion
03.05.2017
20:43:46
-n Causes mke2fs to not actually create a filesystem, but display what it would do if it were to create a filesystem. This can be used to determine the location of the backup superblocks for a particular filesystem, so long as the mke2fs parameters that were passed when the filesystem was originally created are used again. (With the -n option added, of course!)

Alexander
03.05.2017
20:45:03
ну и что выдаёт?

Hackru
03.05.2017
20:45:21
слышь братуха, а у тебя точно не xfs там была?

Aion
03.05.2017
20:45:30
у меня centos

и ты не первый кто грешит на xfs

но у меня вопрос

если у меня в fstab указано что там ext4, может ли он его туда мантировать с xfs?

Admin
ERROR: S client not available

Aion
03.05.2017
20:47:08
ну и что выдаёт?
root@jenkins:~# mkfs.ext4 -n /dev/sdc1 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 3276800 inodes, 13107024 blocks 655351 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 400 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424

Alexander
03.05.2017
20:48:26
fsck.ext4 -n -b 32768 /dev/sdc1

Hackru
03.05.2017
20:48:46
олсо, может у тебя там вообще был md/lvm?

Aion
03.05.2017
20:48:52
root@jenkins:~# fsck.ext4 -n -b 32768 /dev/sdc1 e2fsck 1.41.12 (17-May-2010) fsck.ext4: Bad magic number in super-block while trying to open /dev/sdc1 The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>

Hackru
03.05.2017
20:48:52
blkid /dev/sdc1 что-нибудь говорит?

Aion
03.05.2017
20:49:14
Hackru
03.05.2017
20:49:31
это как это сейчас нет?

Aion
03.05.2017
20:49:59
Hackru
03.05.2017
20:50:11
кек

у кого-то будет завтра болеть одно место

Google
Aion
03.05.2017
20:52:23
может попробовать ребутнуть машинку?

Hackru
03.05.2017
20:52:39
мне кажется, ты что-то сделал до этого и не хочешь сознаваться

Alexander
03.05.2017
20:52:44
partprobe запусти

Aion
03.05.2017
20:53:19
мне кажется, ты что-то сделал до этого и не хочешь сознаваться
если бы я что-то сделал, то не строил бы из себя Ваньку и написал бы

ибо чем искренее я - тем быстрее шанс найти помощь

Alexander
03.05.2017
20:53:50
чудес не бывает, раз суперблок потерялся

lsblk

Aion
03.05.2017
20:54:42
lsblk
root@jenkins:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sda 8:0 0 10G 0 disk └─sda1 8:1 0 10G 0 part /var sdb 8:16 0 20G 0 disk └─sdb1 8:17 0 20G 0 part / sdc 8:32 0 50G 0 disk └─sdc1 8:33 0 50G 0 part

Alexander
03.05.2017
20:55:10
fsck.ext4 -n -b 32768 /dev/sdc1

повторяю же

Aion
03.05.2017
20:56:04
fsck.ext4 -n -b 32768 /dev/sdc1
я же выше дал вывод этой команды

Alexander
03.05.2017
20:56:35
а, тогда меняй на 98304

Aion
03.05.2017
20:57:03
root@jenkins:~# fsck.ext4 -n -b 98304 /dev/sdc1 e2fsck 1.41.12 (17-May-2010) fsck.ext4: Bad magic number in super-block while trying to open /dev/sdc1 The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>

Alexander
03.05.2017
20:57:26
забавно

hexdump -C /dev/sdc1|head

Aion
03.05.2017
20:59:47
root@jenkins:~# partprobe /dev/sdc <- не выводит ничего

root@jenkins:~# hexdump -C /dev/sdc1|head 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000f8600 00 00 28 00 00 ff 9f 00 f3 ff 07 00 63 da 08 00 |..(.........c...| 000f8610 6e 01 1c 00 00 00 00 00 02 00 00 00 02 00 00 00 |n...............| 000f8620 00 80 00 00 00 80 00 00 00 20 00 00 86 2c 0a 59 |......... ...,.Y| 000f8630 92 2c 0a 59 0e 00 ff ff 53 ef 01 00 01 00 00 00 |.,.Y....S.......| 000f8640 28 ea ff 57 00 00 00 00 00 00 00 00 01 00 00 00 |(..W............| 000f8650 00 00 00 00 0b 00 00 00 00 01 00 00 3c 00 00 00 |............<...| 000f8660 42 02 00 00 7b 00 00 00 b2 48 d1 7d fe ec 44 f6 |B...{....H.}..D.| 000f8670 91 ea 25 25 57 d5 31 a8 00 00 00 00 00 00 00 00 |..%%W.1.........|

Alexander
03.05.2017
21:02:02
ух ты ... как занулило ...

а что за диск-то ресайзился, под каким гипервизором и как?

Aion
03.05.2017
21:03:07
VMware

от ИТ-града

Страница 2654 из 4568