Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GNU nano 2.5.3 Файл: cock.py
- import re
- import subprocess
- import os
- import time
- def main():
- #create_extent()
- create_raid()
- def create_raid():
- i = 92
- f=open('logi.txt','w')
- while(i<200):
- ch=str(i)
- ch_p=str(i+1)
- os.system("mdadm --create --metadata=1.2 --force /dev/md"+ch+" --level=1 --raid-devices=2 /dev/dm-"+ch+" /dev/dm-"+ch_p+"<<EOF")
- time.sleep(0.25)
- os.system(">yes")
- f.write(ch)
- i=i+2
- '''def create_extent():
- i = 0
- f = open('logi.txt','w')
- while(i<200):
- os.system("dmsetup create disk1_extent"+str(i)+" --table '0 2000 linear /dev/sdc " + str(i)+"'")
- f.write(str(i))
- i=i+1
- time.sleep(0.25)
- '''
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement