Optima Systems
asked on
Sparc M3000 disk issues
We have a Sparc Enterprise M3000 which had a disk out a while ago. An Oracle engineer came out & replaced it.
We noticed today that the same slot has a solid green light. I ran a df -k and got the following results -
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d10 68158426 13480606 53996236 20% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 9544856 1768 9543088 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
sharefs 0 0 0 0% /etc/dfs/sharetab
fd 0 0 0 0% /dev/fd
/dev/md/dsk/d30 4135998 3915557 179082 96% /var
swap 9543832 744 9543088 1% /tmp
swap 9543160 72 9543088 1% /var/run
/dev/md/dsk/d40 207922442 119088351 86754867 58% /uvdrives
/dev/md/dsk/d50 288484400 187881936 97717620 66% /data
/dev/fssnap/0 288484400 183654946 101944610 65% /var/SnapshotMountPoint
This disk - /dev/md/dsk/d30 - is showing 96% full. I have very little knowledge of this machine, how would I go about cleaning this up?
I also ran the raidctl command & got the following -
Controller: 0
Disk: 0.0.0
Disk: 0.1.0
Disk: 0.2.0
Disk: 0.3.0
Controller: 1
Controller: 2
Again little knowledge of this machine, does this show the disks are raided?
We noticed today that the same slot has a solid green light. I ran a df -k and got the following results -
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d10 68158426 13480606 53996236 20% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 9544856 1768 9543088 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
sharefs 0 0 0 0% /etc/dfs/sharetab
fd 0 0 0 0% /dev/fd
/dev/md/dsk/d30 4135998 3915557 179082 96% /var
swap 9543832 744 9543088 1% /tmp
swap 9543160 72 9543088 1% /var/run
/dev/md/dsk/d40 207922442 119088351 86754867 58% /uvdrives
/dev/md/dsk/d50 288484400 187881936 97717620 66% /data
/dev/fssnap/0 288484400 183654946 101944610 65% /var/SnapshotMountPoint
This disk - /dev/md/dsk/d30 - is showing 96% full. I have very little knowledge of this machine, how would I go about cleaning this up?
I also ran the raidctl command & got the following -
Controller: 0
Disk: 0.0.0
Disk: 0.1.0
Disk: 0.2.0
Disk: 0.3.0
Controller: 1
Controller: 2
Again little knowledge of this machine, does this show the disks are raided?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
thank you for your responses. please ignore my ignorance but if there are 4 disks in the server and even if they are using software RAID rather than Hardware RAID and are configured as RAID 1 (Mirrored) then these disks are used in pairs.
1 pair has to be identical in size or at least they will only use as much space as the smallest disk. So how can 1 disk become full and how are they all using different amounts of space on their respective disks?
if the disks are mirrored surely remove files from one disk will cause problems with the mirroring?
thank you for your responses. please ignore my ignorance but if there are 4 disks in the server and even if they are using software RAID rather than Hardware RAID and are configured as RAID 1 (Mirrored) then these disks are used in pairs.
1 pair has to be identical in size or at least they will only use as much space as the smallest disk. So how can 1 disk become full and how are they all using different amounts of space on their respective disks?
if the disks are mirrored surely remove files from one disk will cause problems with the mirroring?
So how can 1 disk become full and how are they all using different amounts of space on their respective disks?
The above is a volume or partition on a RAID set, not an individual disk drive. When drives are bound into RAID sets the individual drives are not visible to the host system. The host operating system has no idea what is on the individual disk drives. In this case /var is mounted on the volume / partition /dev/md/dsk/d30, thus it has limited space available to it, and var can very easily fill up per above.
/dev/md/dsk/d30 4135998 3915557 179082 96% /var
The above is a volume or partition on a RAID set, not an individual disk drive. When drives are bound into RAID sets the individual drives are not visible to the host system. The host operating system has no idea what is on the individual disk drives. In this case /var is mounted on the volume / partition /dev/md/dsk/d30, thus it has limited space available to it, and var can very easily fill up per above.
ASKER
Hi
i thought, obviously incorrectly that the D10, D30, D40 and D50 denoted the actual disks.
we will look at running the clearup commands you mention and cleanup the var section.
i thought, obviously incorrectly that the D10, D30, D40 and D50 denoted the actual disks.
we will look at running the clearup commands you mention and cleanup the var section.
Hi,
note that just cleaning/truncating without any form of archiving might be a problem if your company receives (external) audit requests and you cannot provide any of those logs.
Cheers
note that just cleaning/truncating without any form of archiving might be a problem if your company receives (external) audit requests and you cannot provide any of those logs.
Cheers
If you're running a sensible Distro like Ubuntu, you can find out a good bit of info using mdadm, as in...
The mdadm command can produce a good bit of useful info.
Refer to man page of your exact version installed for various options.
Tip: Takes a while to truly figure out what mdadm is telling you sometimes... so take your time getting into the output...
net14 # mdadm --detail /dev/md2
/dev/md2:
Version : 0.90
Creation Time : Thu Sep 6 18:23:28 2018
Raid Level : raid1
Array Size : 1047488 (1022.94 MiB 1072.63 MB)
Used Dev Size : 1047488 (1022.94 MiB 1072.63 MB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Wed Mar 6 06:18:10 2019
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Consistency Policy : resync
UUID : 26b45e81:aae8bd57:a4d2adc2:26fd5302
Events : 0.19
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2
2 8 34 2 active sync /dev/sdc2
3 8 50 3 active sync /dev/sdd2
The mdadm command can produce a good bit of useful info.
Refer to man page of your exact version installed for various options.
Tip: Takes a while to truly figure out what mdadm is telling you sometimes... so take your time getting into the output...
The solution to this is either (a) periodically (automatically, via cron) compress and journal the logs, or (b) just plain truncate them to a size where if the log is needed, the information wanted will probably still be in it. There's a (c) also, which is have syslog ship the logs off to a logging server, but this is generally used only on fairly large linux networks.
Attached below is a script for a small system which runs out of crontab every week and truncates the logs to an arbitrary, user-chosen size. It is only an example and the truncation sizes are not appropriate for a server system.
Open in new window