Create XFS volume on /dev/sg* device

Posted by cpt.Buggy on Server Fault See other posts from Server Fault or by cpt.Buggy
Published on 2012-10-28T23:02:25Z Indexed on 2012/10/28 23:05 UTC
Read the original article Hit count: 275

Filed under:
|
|
|
|

Now I have couple of Supermicro 24x2Tb SATA servers and I have now idea how to get access to disks. I need to create XFS volume on each of them but really don't know how to do it, because fdisk doesn't see them.

# sg_scan -i
/dev/sg0: scsi0 channel=0 id=0 lun=0 [em]
    ATA       ST3250318AS       CC38 [rmb=0 cmdq=0 pqual=0 pdev=0x0] 
/dev/sg1: scsi1 channel=0 id=0 lun=0 [em]
    ATA       ST3250318AS       CC38 [rmb=0 cmdq=0 pqual=0 pdev=0x0] 
/dev/sg2: scsi6 channel=1 id=8 lun=0 [em]
    Hitachi   HDS722020ALA330   JKAO [rmb=0 cmdq=1 pqual=1 pdev=0x0] 
... ... ...
/dev/sg25: scsi6 channel=1 id=31 lun=0 [em]
    Hitachi   HDS722020ALA330   JKAO [rmb=0 cmdq=1 pqual=1 pdev=0x0] 
/dev/sg26: scsi6 channel=3 id=0 lun=0 [em]
    LSILOGIC  SASX36 A.1        7017 [rmb=0 cmdq=1 pqual=0 pdev=0xd] 

# sg_map
/dev/sg0  /dev/sda
/dev/sg1  /dev/sdb
/dev/sg2
.. ... ...
/dev/sg25
/dev/sg26

I can't use fdisk and mkfs, what should I do?

© Server Fault or respective owner

Related posts about linux

Related posts about hard-drive