hey everyone, hope you guys can help me out with this. i thought i was a decent user level linux person but i'm going nuts trying to figure out what's going on. here's the situation:
i've got a linux server with an internal IDE hard drive running redhat 8.0. i also have an external scsi raid drive where data files are stored. now to access the data files on the drive, i do the following...
boot up server
at prompt, type "mount /dev/sda1 /data" (i do NOT hit enter)
power up scsi device
when scsi device comes online (green light turns on), hit enter
after that, the drive properly mounts and the contents are accessible in the /data directory. what's odd at first is that, the above commands have to be done in that order. if i just wait at the blank prompt, power on the scsi device, and then TYPE the command, i get a mount error, as if the disk did not exist. in fact, at that point i am unable to mount the drive at all even if i restart the scsi device. instead, i have the restart the server completely and type the command... start scsi device... and then hit enter! is that supposed to happen because i've never experienced that before? once i mount the drive successfully, i can unmount and mount if freely without any problem. df shows it there just fine.
anyways, next. so my current situation is as such, the external scsi drive is nearly full, and i want to migrate the data files to a new external scsi drive that i got. would i be correct in trying to mount one drive to /data as shown above, and then mount the second drive as /data2 for example and then cp -a all the files from /data to /data2? the old drive has a scsi id of 0, and i set the new one to 1. they're daisy chain connected, but i am having trouble mounting or even getting the second (new) drive to connect. i figured out that i need to partition and format the new drive first right? does linux automatically recognize the drive as /dev/sdb1? moreover, since there is that weird mounting/not hitting enter/powering up issue mentioned above, how does that affect running two scsi devices at the same time? i tried treating the new drive by connecting it the same way as the old drive and doing something like mount or fdisk, but it doesn't find the drive either as sda1 or sdb1. from my point of view, i guess i can't tell how to recognize whether the server even recognizes the new disk. is there a command to list what devices are actively connected?
i supposed my goal eventually is to hit something like this:
mount /dev/sda1 /data
mount /dev/sdb1 /data2
cp -a /data /data2
does that sound right? now if i could only figure out how to get that all to work.
i hope this makes some sense. sorry if i seem to be out of my league, i'm trying to help someone and it's been awhile since i have last messed around with linux. please let me know if more information is needed. thanks so much for any help!
i've got a linux server with an internal IDE hard drive running redhat 8.0. i also have an external scsi raid drive where data files are stored. now to access the data files on the drive, i do the following...
boot up server
at prompt, type "mount /dev/sda1 /data" (i do NOT hit enter)
power up scsi device
when scsi device comes online (green light turns on), hit enter
after that, the drive properly mounts and the contents are accessible in the /data directory. what's odd at first is that, the above commands have to be done in that order. if i just wait at the blank prompt, power on the scsi device, and then TYPE the command, i get a mount error, as if the disk did not exist. in fact, at that point i am unable to mount the drive at all even if i restart the scsi device. instead, i have the restart the server completely and type the command... start scsi device... and then hit enter! is that supposed to happen because i've never experienced that before? once i mount the drive successfully, i can unmount and mount if freely without any problem. df shows it there just fine.
anyways, next. so my current situation is as such, the external scsi drive is nearly full, and i want to migrate the data files to a new external scsi drive that i got. would i be correct in trying to mount one drive to /data as shown above, and then mount the second drive as /data2 for example and then cp -a all the files from /data to /data2? the old drive has a scsi id of 0, and i set the new one to 1. they're daisy chain connected, but i am having trouble mounting or even getting the second (new) drive to connect. i figured out that i need to partition and format the new drive first right? does linux automatically recognize the drive as /dev/sdb1? moreover, since there is that weird mounting/not hitting enter/powering up issue mentioned above, how does that affect running two scsi devices at the same time? i tried treating the new drive by connecting it the same way as the old drive and doing something like mount or fdisk, but it doesn't find the drive either as sda1 or sdb1. from my point of view, i guess i can't tell how to recognize whether the server even recognizes the new disk. is there a command to list what devices are actively connected?
i supposed my goal eventually is to hit something like this:
mount /dev/sda1 /data
mount /dev/sdb1 /data2
cp -a /data /data2
does that sound right? now if i could only figure out how to get that all to work.
i hope this makes some sense. sorry if i seem to be out of my league, i'm trying to help someone and it's been awhile since i have last messed around with linux. please let me know if more information is needed. thanks so much for any help!
