| YaST2 Developers Documentation: configuration of raid: | ![]() |
![]() functions files intro |
Build raid dev item list e.g.: [`item (`id ("2//dev/md"), "/dev/md2", false)]
Checks if a RAID is currently created or if it was already
Update Raid ComboBox
Get the current sum of raid devices which belong to raid "current_raid" [ $[ "fsid":142, "fstype":"RAID", "nr":"var", "region":[255, 16], "type":`primary, "fsid":131, "fstype":"Linux native", "nr":4, "region":[271, 844], ... out: 10000000200
add a partition to the current raid
Removes a partition from its current raid.
belongs the the partition "id" already to a raid if YES: popup a proper Message and return(false)
belongs the the partition "id" already to a raid? if NO: popup a proper Message and return(false)
belongs the the partition "id" already to a raid
partition list to widget table in: [ $["fsid":142, "fstype":"Linux raid", "nr":"var", "region":[255, 16], "type":`primary], $[ "fsid":131, "fstype":"Linux native", "nr":4, "region":[271, 844], ... out: [ `item(`id("/dev/hda1"), "/dev/hda1 ", " 2G ", " LVM ", "md1"), `item(`id("/dev/hda2"), "/dev/hda2 ", " 1G ", " Linux ", " ") ];
number for /dev/mdX, 0 for /dev/md0, 1 for /dev/md1
Create one raidtab entry.
Add the main device ( "/dev/hda") to the partition map. partition = $[ "nr" : 1, "main_dev": "/dev/hda", ...... ]; Use change !!!!!!!!!
Build the initial /etc/raidtab by installation. If no raids are to be created, an empty string in returned.
Change an existing /etc/raidtab ( in running system ) -> add new entries for new raids -> remove entries of deleted raids -> FIXME -> no change in /etc/raidtab for modified raids
|
| YaST2 Developers Documentation | ![]() |