We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Format Scsi disk

Aida2
Aida2 asked
on
Medium Priority
394 Views
Last Modified: 2013-12-16
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
Comment
Watch Question

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.

Author

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

Commented:
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?)

Author

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
....
....


Author

Commented:
Hello,
Can be something about fdisk?
i am using fdisk version v2.11y
And i hven't cfdisk.
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.

Author

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.
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.