How to check whether the disk in linux machine are internal or external ( from nas or san). How to identify internal(local) and external disks. Following are some details of my server. Thanks.
Code:
#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 15G 3.5G 10G 26% /
/dev/sda5 103G 90G 7.7G 93% /ad01
/dev/sda1 99M 13M 82M 13% /boot
tmpfs 7.9G 0 7.9G 0% /dev/shm
#lsusb
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 004: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 002 Device 003: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 002 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 002 Device 005: ID 0928:0007 Oxford Semiconductor, Ltd
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 04b3:4010 IBM Corp.
Bus 006 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
# ls -ltr
total 0
lrwxrwxrwx 1 root root 10 Oct 7 21:51 usb-HL-DT-ST_DVDRAM_GSA-T50N_M2I98H90832 -> ../../scd0
lrwxrwxrwx 1 root root 9 Oct 7 21:51 scsi-3600508e000000000ff85ab918d3ce200 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 7 21:51 scsi-3600508e000000000ff85ab918d3ce200-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Oct 7 21:51 scsi-3600508e000000000ff85ab918d3ce200-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 7 21:51 scsi-3600508e000000000ff85ab918d3ce200-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 7 21:51 scsi-3600508e000000000ff85ab918d3ce200-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct 7 21:51 scsi-3600508e000000000ff85ab918d3ce200-part5 -> ../../sda5
Last edited by Franklin52; 10-23-2013 at 08:59 AM..
Reason: Please use code tags
Morning,
I'm trying step up my scripting game .. :rolleyes::confused::D
Is there a way to do the replacement with an or without using an external command ?
I did try but no joy.
var=${var//\(|\)/}
#!/bin/bash
var="lulus.UbiRwidgets.com (10.1.1.1)"
var=${var//\(/}... (5 Replies)
Hi there, I'm new to shell scripting and need some help if possible?
I need to create a shell script (.sh) to run as a cron job on an ubuntu linux server to connect to an external sftp sites directory using credentials (which I have) and then download to our internal ftp server and then copy... (3 Replies)
Hello,
I am running a bash script under linux which first defines an CA-array like
j=0
num1=120.00
num2=10.00
until
do
CA='echo $num1 + $j*$num2'
j=$
done
within the later awk section of this same script I want to read data from a file. If the value of the second column is... (3 Replies)
Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b:
I stopped at .. :(
#!/bin/sh
A=`hostname -i`
echo "server ip address is $A"... (4 Replies)
Hello,
We are running sun solaris and it is connected to SAN storage. How do I find what are the disks are internal and what are the disks are connected to SAN? (0 Replies)
Any help on this would be greatly appreciated. I have read other threads on similar subject but still not clear on what this is telling me and what action to take. Do I have a couple of disks that are slowly dying?
While checking disk usage on the V880 I noticed the following:
# format... (3 Replies)