Project

General

Profile

Bug #17772 » NewCommands.txt

Jayashree Ajay Candadai, 11/01/2016 07:47 PM

 
[ajdev0@osd1 ~]$ sudo ceph-disk zap /dev/sdc
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries.
The operation has completed successfully.


[ajdev0@osd1 ~]$ sudo ceph-disk zap /dev/sdd
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries.
The operation has completed successfully.


[ajdev0@osd1 ~]$ sudo ceph-disk zap /dev/sde
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries.
The operation has completed successfully.

######################################################################################################

[ajdev0@osd1 ~]$ sudo ceph-disk list
/dev/sda :
/dev/sda1 other, ext3, mounted on /
/dev/sda2 other, 0x0
/dev/sda3 other, swap
/dev/sda4 other, 0x0
/dev/sdb other, unknown
/dev/sdc other, unknown
/dev/sdd other, unknown
/dev/sde other, unknown

######################################################################################################

[ajdev0@osd1 ~]$ sudo rm -f /tmp/ramdisk/journal-sdc.journal
[ajdev0@osd1 ~]$ sudo rm -f /tmp/ramdisk/journal-sdd.journal
[ajdev0@osd1 ~]$ sudo rm -f /tmp/ramdisk/journal-sde.journal

######################################################################################################

[ajdev0@osd1 ~]$ sudo ceph-disk prepare /dev/sdc /tmp/ramdisk/journal-sdc.journal
prepare_file: OSD will not be hot-swappable if journal is not the same device as the osd data
The operation has completed successfully.
specified blocksize 4096 is less than device physical sector size 8192
switching to logical sector size 512
meta-data=/dev/sdc1 isize=2048 agcount=4, agsize=7324095 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=29296379, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal log bsize=4096 blocks=14304, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.


[ajdev0@osd1 ~]$ sudo ceph-disk prepare /dev/sdd /tmp/ramdisk/journal-sdd.journal
prepare_file: OSD will not be hot-swappable if journal is not the same device as the osd data
The operation has completed successfully.
specified blocksize 4096 is less than device physical sector size 8192
switching to logical sector size 512
meta-data=/dev/sdd1 isize=2048 agcount=4, agsize=7324095 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=29296379, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal log bsize=4096 blocks=14304, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.


[ajdev0@osd1 ~]$ sudo ceph-disk prepare /dev/sde /tmp/ramdisk/journal-sde.journal
prepare_file: OSD will not be hot-swappable if journal is not the same device as the osd data
The operation has completed successfully.
specified blocksize 4096 is less than device physical sector size 8192
switching to logical sector size 512
meta-data=/dev/sde1 isize=2048 agcount=4, agsize=7324095 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=29296379, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal log bsize=4096 blocks=14304, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.

#########################################################################################################

[ajdev0@osd1 ~]$ sleep 10

#########################################################################################################

[ajdev0@osd1 ~]$ sudo ceph-disk list
/dev/sda :
/dev/sda1 other, ext3, mounted on /
/dev/sda2 other, 0x0
/dev/sda3 other, swap
/dev/sda4 other, 0x0
/dev/sdb other, unknown
/dev/sdc :
/dev/sdc1 ceph data, prepared, cluster ceph, osd.3
/dev/sdd :
/dev/sdd1 ceph data, prepared, cluster ceph, osd.4
/dev/sde :
/dev/sde1 ceph data, prepared, cluster ceph, osd.5

#########################################################################################################
(4-4/6)