Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

Format Scsi disk

Hello,
I have some 300 Gig Scsi disk under Adaptec i can see it's 279 gig, i giv et a drive name (dev/sdb).
Then i boot linux. Under fdisk -l i find the disk but it's only 140,8 gig. I am running redhat Es 3.1
with kernel 2.4.21-9.0.1.ELsmp.

HELP
0
Aida2
Asked:
Aida2
  • 4
  • 3
1 Solution
 
sheetbirdCommented:
Can you post the output of "fdisk -l /dev/sdb" ?  What filesystem are you using? (check in /etc/fstab or /proc/mounts)

The partition may not be taking up the full disk, also the filesystem will have some overhead, but it should be closer to 5%-10% or so (I just pulled that number out of the air but you get the idea) for journaling and other things.
0
 
Aida2Author Commented:

Helle
Tanks for resp.
I am using ext3 and it's /dev/sdb and /dev/sdc i just mark et down i send my full /dev/sd* later
Here is my proc/mounts

 rootfs / rootfs rw 0 0
/dev/root / ext3 rw 0 0
/proc /proc proc rw 0 0
none /dev/pts devpts rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/sda1 /boot ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
0
 
leisnerCommented:
better yet post what's in the kernel bootup from dmesg -- see what the kernel identifies...

I've never used a 300g scsi disk -- is this one disk or a raid array or something?
What model is it (dmesg will show).  Its conceivable 2.4.21 may not work with right with
something that size (how old is 2.4.21 -- 3 years?)

0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
Aida2Author Commented:
Hello,
This my fdisk
Disk /dev/sda: 109.1 GB, 109156761600 bytes
255 heads, 63 sectors/track, 13270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1        13    104391   83  Linux
/dev/sda2            14     13016 104446597+  83  Linux
/dev/sda3         13017     13270   2040255   82  Linux swap

Disk /dev/sdb: 146.5 GB, 146590924800 bytes
255 heads, 63 sectors/track, 17821 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1             1     17821 143147151   83  Linux

Disk /dev/sdc: 146.5 GB, 146590924800 bytes
255 heads, 63 sectors/track, 17821 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdc1             1     17821 143147151   83  Linux

Disk /dev/sdd: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdd4             1     19457 156288321   83  Linux

--------------------------------
And dmesg
...
...
dpti: If you have a lot of devices this could take a few minutes.
dpti0: Reading the hardware resource table.
TID 008  Vendor: ADAPTEC      Device: AIC-7902     Rev: 00000001
TID 009  Vendor: ADAPTEC      Device: AIC-7902     Rev: 00000001
TID 516  Vendor: SDR     G    Device: GEM318       Rev: 0
TID 524  Vendor: ADAPTEC A    Device: ARRAY_0      Rev: FS13D
TID 527  Vendor: ADAPTEC J    Device: JBOD PASSTHR Rev: FS13D
TID 528  Vendor: ADAPTEC J    Device: JBOD PASSTHR Rev: FS13D
scsi0 : Vendor: Adaptec  Model: 2010S            FW:FS13
Starting timer : 0 0
  Vendor: ADAPTEC   Model: ARRAY_0           Rev: FS13
  Type:   Direct-Access                      ANSI SCSI revision: 02
Starting timer : 0 0
  Vendor: SDR       Model: GEM318            Rev: 0
  Type:   Processor                          ANSI SCSI revision: 02
Starting timer : 0 0
  Vendor: ADAPTEC   Model: JBOD PASSTHRU     Rev: FS13
  Type:   Direct-Access                      ANSI SCSI revision: 02
Starting timer : 0 0
  Vendor: ADAPTEC   Model: JBOD PASSTHRU     Rev: FS13
  Type:   Direct-Access                      ANSI SCSI revision: 02
Starting timer : 0 0
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi disk sdb at scsi0, channel 0, id 13, lun 0
Attached scsi disk sdc at scsi0, channel 0, id 14, lun 0
SCSI device sda: 213196800 512-byte hdwr sectors (109157 MB)
Partition check:
 sda: sda1 sda2 sda3
SCSI device sdb: 286310400 512-byte hdwr sectors (146591 MB)
 sdb: sdb1
SCSI device sdc: 286310400 512-byte hdwr sectors (146591 MB)
 sdc: sdc1
Journalled Block Device driver loaded
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 224k freed
....
....


0
 
Aida2Author Commented:
Hello,
Can be something about fdisk?
i am using fdisk version v2.11y
And i hven't cfdisk.
0
 
sheetbirdCommented:
I looks like you have 4 SCSI disks, 109, 2x146 and a 160.  It sounds like you want to make them all one big filesystem (at least 3 of the disks).  So to do this you should you LVM

http://www.tldp.org/HOWTO/LVM-HOWTO/index.html

It's pretty straight forward to set up following the how-to.  You will need to change the partition types on the partitions you include on LVM to "Linux LVM" (8e) using fdisk.  I would leave my / filesystem alone.  Not having / under LVM keeps / safe if there are LVM problems.
0
 
Aida2Author Commented:
no i don't want make a big file system 2x146 is actually 2x300(289) and this is what i want to use for backup
(to mount/umount and remove) no raid no logical filesystem or somthing else only 2x300 formatt disk for daylig backup.
0
 
sheetbirdCommented:
I see what you mean now.  This is either a problem with the Adaptec Firmware or the Driver.  Contact Adaptec and see if they can help you.

http://adaptec-tic.adaptec.com/cgi-bin/adaptec_tic.cfg/php/enduser/home.php
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now